SetVehiclePos
From SA-MP Wiki
(Difference between revisions)
Revision as of 11:55, 3 May 2012 Smithy (Talk | contribs) ← Previous diff |
Revision as of 17:21, 2 February 2014 Connor Mead (Talk | contribs) Next diff → |
||
Line 1: | Line 1: | ||
{{Scripting}} | {{Scripting}} | ||
- | {{Title}} | ||
{{Description|Set a vehicle's position}} | {{Description|Set a vehicle's position}} | ||
Line 27: | Line 26: | ||
[[Category:Scripting Functions]] | [[Category:Scripting Functions]] | ||
+ | [[fr:SetVehiclePos]] | ||
[[ru:SetVehiclePos]] | [[ru:SetVehiclePos]] |
Revision as of 17:21, 2 February 2014
Description:
Set a vehicle's position
(vehicleid, Float:x, Float:y, Float:z)
vehicleid | Vehicle ID that you want set new position. |
Float:x | The X coordinate to position the vehicle at. |
Float:y | The Y coordinate to position the vehicle at. |
Float:z | The Z coordinate to position the vehicle at. |
Return Values:
This function does not return any specific values.
// Put the player's vehicle at the coordinates 0, 0, 3 (center of SA) new vehicleid = GetPlayerVehicleID(playerid); SetVehiclePos(vehicleid, 0, 0, 3);
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- SetPlayerPos: Set a player's position.
- GetVehiclePos: Get the position of a vehicle.
- SetVehicleZAngle: Set the direction of a vehicle.