GetKeyDefinitions

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

getKeyDefinitions

Available from 0.1.9. Use matching updated server and clients.

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

Syntax

items = getKeyDefinitions(owner)

Parameters and behavior

owner is an optional exact resource-name string. Omit it to list every active custom key definition. This does not list built-in items or inactive registrations.

Returns

Fresh 1-based array of canonical item strings; empty table when no entries match.

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.