Doorlock — Client
GetResourceName
Returns the doorlock resource name.
local name = Bridge.Doorlock.GetResourceName()
-- Returns: string (always "default")Description:
Returns the name of the Doorlock module resource. Used for internal identification. Always returns "default" for the built-in Doorlock module.
GetClosestDoor
Returns the closest door to the player.
local door = Bridge.Doorlock.GetClosestDoor()
-- Returns: table | nil