Help with spawning vehicles.
#1

I need some help spawning vehicles. I have my dialogs set up and everything, but I need to find out how to make it so when you spawn a car for example

Player types: /menu *Dialog pops up*
**Dialog shows
Clothes
Weapons
Vehicles
Blabla
Blabla
*Player clicks Vehicles
*Player selects Elegy

How do I make it so the player will spawn inside the elegy, and when the player exits the elegy the car will despawn in 5 seconds.
Reply
#2

https://sampwiki.blast.hk/wiki/ShowPlayerDialog
https://sampwiki.blast.hk/wiki/OnDialogResponse

and use bool that will track is vehicle spawned on that way. If it is create timer that will call function DestroyVehicle
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)