Is it possible to spawn a car into the game yet?
Solved Spawning a car?
Discussion in 'Rust Discussion' started by Togoshige, Sep 21, 2017.
-
on staging yes, "spawn sedan" in console
-
how to leave ??
-
-
E to enter/mount, Spacebar to leave/dismount
-
what is car GetComponent ??
-
I have a server with GameServers, what is staging? I can't get this to work.
-
-
Don't need staging branch, works on stable branch just go to console and type: spawn sedan
-
anyway to get my npc to spawn the sedans i have this in my shop but it takes the coins but no cars spawn i was told about adding auth level 2 to my npcs but i dont know how to do this here is my code i have at the moment
Code:"Car": { "buy": "2000", "img": "", "cmd": ["spawnsedan 727.4265 0.3007777 -1580.33" ], "cooldown": "60", "sell": "0" },
-
Code:
"Car": { "buy": "30000000", "cmd": [ "spawn sedan \"$player.x $player.y $player.z\"" ], "cooldown": "7200", "img": "http://i.imgur.com/mWP6Qec.png", "sell": "-1" },
-
-
-
i managed to sort it out here is what i did
Code:"Car": { "buy": "2000", "img": "", "cmd": ["spawn sedan \"727.0599 1.191193 -1580.163\"" ], "cooldown": "60", "sell": "0" },
Last edited by a moderator: Sep 22, 2017 -
How to check whether the coordinate of any car?
I mean, if create cars spawn point.
Example: the car will spawn at the coordinates 727.0599 1.191193 -1580.163 every 5 min.
But if no one will take the car, will be a congestion cars?Last edited by a moderator: Sep 23, 2017 -
-
any way to get the car in the serverrewards shop ? then can spawn players by yours self ?
that people can buy a car in the shop with RP PointsLast edited by a moderator: Sep 23, 2017 -
this is the code you need to add but it may be diffrent on rewardshop
Code:"Car": { "buy": "2000", "img": "", "cmd": ["spawn sedan \"732.6604 0.3015063 -1575.397\"" ], "cooldown": "60", "sell": "0" },
Code:"589463004": { <---- change to your shop id "buy": [ "Car" ], "description": "You currently have {0} coins to spend ", "name": "Car_Dealer", "sell": [] },
Last edited by a moderator: Sep 23, 2017 -
works this with plugin ServerRewards ?
i have only in data filme something like this:
"ammo.pistol_0": {
"shortname": "ammo.pistol",
"displayName": "Pistol Bullet",
"customIcon": null,
"amount": 100,
"cost": 2000,
"skinId": 0,
"category": 9
},
it looks like not the same code -
should be in the json file config folder