HasPlayerWorldDoorAccess

From Wiki G1R-MP G1 Remake Multiplayer
Jump to navigation Jump to search

hasPlayerWorldDoorAccess

Available from 0.1.9. Use matching updated server and clients.

Server Lua. Part of custom keys and shared placed doors.

Syntax

allowed = hasPlayerWorldDoorAccess(playerId, id)

Parameters and behavior

playerId is a connected player; id is an owned placed door. Checks only its server key requirement and authoritative inventory. This is NOT a range, alive, readiness, busy-state, reservation or animation check.

Returns

Boolean; false for unknown/not-owned doors or disconnected players. No assigned/enabled key requirement means true for a connected player. The operation itself independently revalidates access.

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.