GetVehicleModelName

From Onset Developer Wiki
GetVehicleModelName

Type: Function
Context: Server
Introduced: v1.0

Description

Returns the name of the vehicle model by its ID

Syntax

GetVehicleModelName(vehicle)

Parameters

  • vehicle
    Vehicle you want to get the model name of

Return Value

  • The name of the vehicle model

Example

function getVehName(player, vehicle, seat)
   AddPlayerChat(player, "You've entered a " .. GetVehicleModelName(veh))
end
AddEvent('OnPlayerEnterVehicle', getVehName)

See also

__EDIT_ME__