GetWorldDoor
getWorldDoor
Available from 0.1.9 (upcoming; not yet publicly released). Not included in public 0.1.8. Use matching updated server and clients.
Server Lua. Part of custom keys and shared placed doors.
Syntax
door = getWorldDoor(id)
Parameters and behavior
id is the calling resource's local door ID, not a generated actor name or network runtime ID.
Returns
Fresh table: id, prefab, x, y, z, yaw, key (empty string if unassigned), locked, open, busy, revision (decimal string), ownerPlayerId (current interaction lease, 0 if none). Unknown/not-owned/empty ID: nil. Read the latest state; it may be newer than a queued event.
Examples and security
See Custom keys for complete registration, copy issuance, placement, persistence and callback examples. These are server functions, not client RPC endpoints. Do not forward untrusted client arguments without gameplay authorization.