ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. getElementModel

Function

getElementModel

Server and clientElementsIdentical to MTA:SA

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

See also