GetVehicleModel

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 13:25, 31 January 2014
Connor Mead (Talk | contribs)
(Add fr link)
← Previous diff
Revision as of 17:14, 2 February 2014
Connor Mead (Talk | contribs)

Next diff →
Line 27: Line 27:
[[Category:Scripting Functions]] [[Category:Scripting Functions]]
-[[nl:GetVehicleModel]] 
[[fr:GetVehicleModel]] [[fr:GetVehicleModel]]
 +[[nl:GetVehicleModel]]

Revision as of 17:14, 2 February 2014



Description:

Gets the model ID of a vehicle.


Parameters:
(vehicleid)
vehicleidThe ID of the vehicle to get the model of.


Return Values:

The vehicle model ID, or 0 if the vehicle doesn't exist.


public OnPlayerEnterVehicle(playerid,vehicleid,ispassenger)
{
    if(GetVehicleModel(vehicleid) == 411) // 411 is the Infernus model
    {
        SendClientMessage(playerid, 0xFFFFFFFF, "Nice Infernus!");
    }
    return 1;
}

Related Functions

The following functions may be useful, as they are related to this function in one way or another.

In other languages