+rep create and destroy vehicles?
#1

hi,

how would i do it like at the beginning i can spawn 30 vehicles and make them disappear after an explosion (so they dont respawn after a vehicle has been destroyed).

thx.
Reply
#2

https://sampwiki.blast.hk/wiki/DestroyVehicle
Reply
#3

in OnVehicleDeath just add

DestroyVehicle(vehid);

To create the vehicles either use the https://sampwiki.blast.hk/wiki/CreateVehicle or the https://sampwiki.blast.hk/wiki/AddStaticVehicle function.
Reply
#4

shit,didnt i just say that?
Reply
#5

Does it look like you just said that? You just gave one single link into a command, you also only answered his first half of the question. Shit what's the reason for your response?
Reply
#6

rofl,open the link and theres the same lines you just gave
Reply
#7

Where in that link does it mention about OnVehicleDeath which is required for where he asked about once a vehicle is destroyed to be removed. Quit your smart comments we have both tried to assist him, no need to make a meal of it. Off to bed anyway, peace.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)