GetPlayerSurfingVehicleID

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
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



GetPlayerSurfingVehicleID was added in SA-MP 0.3a This function was added in SA-MP 0.3a and will not work in earlier versions!


Description:

Get the ID of the vehicle that the player is surfing.


Parameters:
(playerid)
playeridThe 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.

In other languages