ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server events
  3. onElementModelChange

Event

onElementModelChange

ServerElementsIdentical to MTA:SA

An element's model changed (e.g. a player's skin or a car model).

Handler

addEventHandler("onElementModelChange", root, function(oldModel, newModel) ... end)

Parameters

oldModelint
Old model.
newModelint
New model.

Source

source is the element.

Example

addEventHandler("onElementModelChange", root, function(old, new)
    if getElementType(source) == "player" then outputChatBox("Nowy skin: " .. new, source) end
end)

See also