Scripting/Client/Functions/GetVehicleName
Names; GetVehicleIDFromName returns -1 if unknown.
Syntax
GetVehicleName(model)GetVehicleIDFromName(name)GetWeaponName(id)GetBodyPartName(id)GetDistrictName(x, y)Arguments
- int model
- string name
- int id
- float x
- float y
Example
function onScriptLoad()
{
GetVehicleName( 95 );
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
Section: Utility
Categories: Client functions | Utility