- Documentation
- Shared functions
- getElementModel
Function
getElementModel
Returns the element's model. For a player -1 means CJ in the outfit chosen in the launcher, and 0 plain CJ.
Syntax
int getElementModel(element theElement)Arguments
theElementelement- The element.
Returns
Model number.
Example
local veh = getPedOccupiedVehicle(player)
if veh and getElementModel(veh) == 411 then
outputChatBox("Ładne Infernus!", player)
end