GetPlayerVehicleID: Difference between revisions

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 3: Line 3:
params=<syntaxhighlight lang="lua">playerid</syntaxhighlight>
params=<syntaxhighlight lang="lua">playerid</syntaxhighlight>
<poem>::playerid: The ID of the player whose vehicle's ID you want to get.</poem>|
<poem>::playerid: The ID of the player whose vehicle's ID you want to get.</poem>|
retvals=The ID of the vehicle or '''0''' if not in any vehicle.|
retvals=The ID of the vehicle or '''0''' if not in any vehicle or if the player is not connected.|
}}
}}

Latest revision as of 18:12, 24 March 2022


Description:
Gets the vehicle ID of the specified player.


Parameters:

playerid

playerid: The ID of the player whose vehicle's ID you want to get.


Return Values:
The ID of the vehicle or 0 if not in any vehicle or if the player is not connected.