GetPlayerSurfingVehicleID
From SA-MP Wiki
(Difference between revisions)
Revision as of 23:09, 29 March 2010 Mikep (Talk | contribs) ← Previous diff |
Revision as of 23:59, 31 January 2014 Connor Mead (Talk | contribs) Next diff → |
||
Line 1: | Line 1: | ||
{{Scripting}} | {{Scripting}} | ||
- | {{Title}} | ||
{{0.3Added|function|}} | {{0.3Added|function|}} | ||
Line 21: | Line 20: | ||
[[Category:Scripting Functions]] | [[Category:Scripting Functions]] | ||
+ | |||
+ | [[fr:GetPlayerSurfingVehicleID]] |
Revision as of 23:59, 31 January 2014
Description:
Get the ID of the vehicle that the player is surfing.
(playerid)
playerid | The ID of the player you want to know the surfing vehicle ID of. |
Return Values:
The ID of the vehicle that the player is surfing, or INVALID_VEHICLE_ID if they are not surfing or the vehicle has no driver.
new surf = GetPlayerSurfingVehicleID(playerid); if(surf == INVALID_VEHICLE_ID) SendClientMessage(playerid, COLOR_RED, "You are not surfing.");
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- GetPlayerVehicleID: Get the ID of the vehicle the player is in.
- GetPlayerVehicleSeat: Check what seat a player is in.