How To Add Cars?
#1

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)
Reply
#2

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.
Reply
#3

OMG! Thanks
100% Works
Reply
#4

https://sampwiki.blast.hk/wiki/Debug_Guide

u can even do /save without debug, in anycar or standing position in anyserver or anywhere
Reply
#5

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
Reply
#6

@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...
Reply
#7

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]
Reply
#8

I just tell you how to have the vehicle position..
But i didn't tell how to have the vehicle id's
Reply
#9

OK Thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)