ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client events
  3. onClientElementStreamIn

Event

onClientElementStreamIn

ClientElementsIdentical to MTA:SA

An element appeared near the player (the game loaded it and draws it).

Handler

addEventHandler("onClientElementStreamIn", root, function() ... end)

Source

source is the element.

Example

addEventHandler("onClientElementStreamIn", root, function()
    if getElementType(source) == "player" then outputChatBox(getPlayerName(source) .. " jest blisko") end
end)

See also