Skip to content

ReferenceStates, zones, net events, instances, decals

Zones watched by the server ​

lua
RLX.AddZoneTrigger({ id = "safe_pillbox", coords = { x = 298.0, y = -584.0, z = 43.0 }, radius = 60 }, function(source, event)
  if event == "enter" then RLX.Notify(source, "Safe zone", "info") end
end)
RLX.AddZoneTrigger({ id = "lot", box = { center = c, size = { x = 30, y = 12, z = 8 }, heading = 35 } }, fn)
RLX.AddZoneTrigger({ id = "turf", poly = { { x = 80, y = -1900 }, { x = 160, y = -1880 }, { x = 120, y = -1980 } }, minZ = 10, maxZ = 50, job = "ballas" }, fn)
RLX.GetPlayersInZone("lot")   RLX.IsPlayerInZone(source, "lot")   RLX.RemoveZoneTrigger("lot")

Checked every second on the server, from the players' real positions: a client cannot fake it. Options: dimension, job (only the players of a job). A player who leaves the server leaves the zone (exit).