How To Add Cars? - 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: How To Add Cars? (
/showthread.php?tid=394118)
How To Add Cars? -
theomanking - 21.11.2012
Acctualy I'm new in Scripting.
And I Join SA-MP Forums 18 hours ago.
How To Add Cars? Example i want add Hydra in area 51... How to do this?
Link me Tutorial or tell me (IF YOU CAN)
Re: How To Add Cars? -
JaKe Elite - 21.11.2012
CreateVehicle, AddStaticVehicle and AddStaticVehicleEx.
You need to save the position where the vehicle will be putted.
1.) Go to position where you want the vehicle to be putted (In Game)
2.) /save Vehicle
3.) Go to My Documents/GTA SA User Files/SAMP
4.) open savedpositions.txt
5.) Copy the x, y, z, angle with the name you type with //Vehicle
example
pawn Код:
AddPlayerClass(165,1736.8427,-1609.5193,20.2110,359.9918,0,0,0,0,0,0); // Vehicle
pawn Код:
1736.8427,-1609.5193,20.2110,359.9918
is the x, y, z, angle.
Re: How To Add Cars? -
theomanking - 21.11.2012
OMG! Thanks
100% Works
Re: How To Add Cars? -
Glad2BeHere - 21.11.2012
https://sampwiki.blast.hk/wiki/Debug_Guide
u can even do /save without debug, in anycar or standing position in anyserver or anywhere
Re: How To Add Cars? -
JaKe Elite - 21.11.2012
In order to create the vehicle model you really like you must also know the Vehicle ID.
go to SA-MP Wiki for vehicle id try to learn your self searching yourself
Re: How To Add Cars? -
theomanking - 21.11.2012
@Glad2BeHere Yea i know.
@Romel But you already say that
Код:
AddPlayerClass(165,1736.8427,-1609.5193,20.2110,359.9918,0,0,0,0,0,0); // CarName
You say that Just right car name not ID...
Re: How To Add Cars? -
Glad2BeHere - 21.11.2012
you have to re adjust it to the creating vehicle variable he said to do it that way to get positions but the easier way is to get in vehicle and /save [name u want here]
Re: How To Add Cars? -
JaKe Elite - 21.11.2012
I just tell you how to have the vehicle position..
But i didn't tell how to have the vehicle id's
Re: How To Add Cars? -
theomanking - 21.11.2012
OK Thanks!