GetVehicleModel

From SA-MP Wiki

Jump to: navigation, search


Description:

Gets the model ID of a vehicle.


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


Return Values:

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


Example Usage:

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.

Personal tools
In other languages