GetVehicleLocation: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
 
Line 1: Line 1:
{{Info|Function|Server & Client|1.0}}
{{Info|Function|Server & Client|1.0}}


{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|Get the vehicle's location.}}


{{FuncSyntax|GetVehicleLocation(vehicle)}}
{{FuncSyntax|GetVehicleLocation(vehicle)}}


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|vehicle|__EDIT_ME__}}
{{FuncParam|vehicle|The vehicle identifier.}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|Returns the XYZ vectors of the vehicle location.}}


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua>
local x, y, z = GetVehicleLocation(vehicleid)
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
{{Template:VehicleFunctions}}

Latest revision as of 13:04, 19 November 2019