SetVehiclePos
From SA-MP Wiki
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.
(vehicleid, Float:x, Float:y, Float:z)
| vehicleid | Vehicle ID that you want set new position. |
| Float:x | A float to store the X coordinate, passed by reference. |
| Float:y | A float to store the Y coordinate, passed by reference. |
| Float:z | A 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.
- GetVehiclePos: Get the position of a vehicle.
