SetVehiclePos

From SA-MP Wiki

Jump to: navigation, search

SetVehiclePos


Set new position for vehicle


Note: This function works if vehicle was spawned.


Important Note: An empty vehicle will not fall after being teleported into the air.


Parameters:
(vehicleid, Float:x, Float:y, Float:z)
vehicleidVehicle ID that you want set new position.
Float:xA float to store the X coordinate, passed by reference.
Float:yA float to store the Y coordinate, passed by reference.
Float:zA float to store the Z coordinate, passed by reference.


This function does not return a specific value.


// Set Vehicle №1 new position:
SetVehiclePos(1, 123.456, 123.456, 12.34);

Related Functions

The following functions might be useful as well, as they're related to this function in one way or another.

Personal tools
In other languages