SA-MP Forums Archive
Adding Vehicles - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Adding Vehicles (/showthread.php?tid=612062)



Adding Vehicles - TheARESguy - 13.07.2016

I'm very new to scripting I need help adding in Vehicles in a certain spot in my server I'm not sure how to do it.


Re: Adding Vehicles - Mencent - 13.07.2016

Hello!

Use CreateVehicle to create vehicles on a certain spot.
(CreateVehicle = https://sampwiki.blast.hk/wiki/CreateVehicle)


Re: Adding Vehicles - WhiteGhost - 13.07.2016

Enter A Vehicle.
Carry it to the spot u want it to be saved and type /save
then go into documents GTA User Files,then savedPositions then u will see the code
Copy And Paste it into your gamemode under

PHP код:
public OnGameModeInit()

Callback.


Re: Adding Vehicles - TheARESguy - 13.07.2016

not sure where to put it tho in the script ?


Re: Adding Vehicles - Mencent - 13.07.2016

Put this in the callback OnGameModeInit.


Re: Adding Vehicles - WhiteGhost - 13.07.2016

Quote:
Originally Posted by TheARESguy
Посмотреть сообщение
not sure where to put it tho in the script ?
PHP код:
public OnGameModeInit()
{
 return 
1;

Callback.