Vehicle's position
#1

Hello guys, is it possible to get the vehicle's spawn position, without using the callback OnVehicleSpawn, because this callback doesn't check the vehicle's position when I spawn it in-game?
If there is function for getting vehicle's spawn position, please give me, I realy need this!
Reply
#2

Use this on OnVehicleSpawn https://sampwiki.blast.hk/wiki/GetVehiclePos
Reply
#3

Quote:
Originally Posted by Sunehildeep
Посмотреть сообщение
Please man first read my post, than reply!
Reply
#4

Quote:
Originally Posted by Kraeror
Посмотреть сообщение
Please man first read my post, than reply!
I did what you said, using that callback and function will give you it's spawn position. No callback has the x y z of spawn pos of the car except createvehicle
Reply
#5

Quote:
Originally Posted by Sunehildeep
Посмотреть сообщение
I did what you said, using that callback and function will give you it's spawn position. No callback has the x y z of spawn pos of the car except createvehicle
Thanks for help, I will try!
Reply
#6

pawn Код:
public OnVehicleSpawn(vehicleid)
{
          new Float:x, Float:y, Float:z;
          GetVehiclePos(vehicleid, x, y, z);
          // your script
          return 1;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)