GetKeyDefinition
Jump to navigation
Jump to search
getKeyDefinition
Available from 0.1.9. Use matching updated server and clients.
Server Lua. Part of custom keys and shared placed doors.
Syntax
definition = getKeyDefinition(item)
Parameters and behavior
item is the full canonical key string returned by registration. Only active definitions are returned, including other resources' definitions.
Returns
Fresh table: item, id, owner, name, description, model, value, weight, maxStack, revision. revision is a decimal string. Unknown/inactive item: nil.
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.