Advanced Search
Search Results
74 total results found
Requirements & Compatibility
Nord Doorlock can run without a framework or database. Required FiveM server GTA V game build supported by your FiveM server The resource folder must be named nord_doorlock if you use the examples exactly as shown Optional Integrations Category Supported Prov...
Installation
1. Install the Resource Place the resource in your FiveM resources directory: resources/[nord]/nord_doorlock Keep the resource folder name as: nord_doorlock 2. Start the Resource Add to server.cfg: ensure nord_doorlock When using optional integrations, start ...
Quick Start
This is the shortest workflow for creating a working door. Create a Door Open: /doors Select New door. The wizard contains three steps. Step 1 — General Configure: Door name Interaction distance Auto-lock delay Default locked state Lockpick enabled/disabled St...
Admin Panel & Wizard
The administrator UI is designed to keep the main screen focused on saved door cards. Creation and editing are handled through a modal wizard. Opening the Panel Default command: /doors Configured with: Config.AdminCommand = 'doors' Access is validated on the s...
Door Interaction & Visuals
Nord Doorlock can provide interaction through its built-in NUI, supported target systems or supported Text UI providers. Interaction Key Default: Config.ToggleKey = 38 -- E Interaction Distances Config.InteractionDistance = 2.0 Config.DoorUIShowDistance = 6.0 ...
Permissions
Door access can be restricted by jobs, identifiers and ACE permissions. If all access fields are empty, the door is public. Jobs & Grades Wizard format: police:0, ambulance:2 This means: Job Minimum Grade police 0 ambulance 2 A player with the matching job mus...
Lockpicking
Nord Doorlock includes an optional lockpick workflow. Enable Globally Config.EnableLockpick = true Enable Per Door Enable Lockpick in the door wizard. Door structure: lockpick = { enabled = true } Default Key Config.LockpickKey = 74 -- H Lockpick Configura...
Full Configuration Reference
Main configuration file: config/config.lua Locale Config.Locale = 'en' Included locales: en pt Storage Config.Storage = 'json' Values: json mysql auto json uses KVP as the authoritative store and JSON files as mirrors. mysql requires oxmysql. auto uses MySQL w...
Bridges & Integrations
Nord Doorlock keeps integrations outside the core logic. Client Bridges client/bridge/framework.lua client/bridge/notify.lua client/bridge/textui.lua client/bridge/target.lua Server Bridges server/bridge/framework.lua server/bridge/inventory.lua This structure...
Storage & Persistence
Nord Doorlock supports persistence without requiring a database. JSON Mode Default: Config.Storage = 'json' Despite the name, the authoritative store is FiveM Resource KVP. KVP key: nord_doorlock:doors:v2 The resource also mirrors data to: data/doors.json data...
Commands & Diagnostics
/doors Opens the in-game administrator panel. Command name: Config.AdminCommand = 'doors' Default: /doors The server validates administrator permission before opening the panel. doors_storage Displays storage health. Server console: doors_storage Authorized ad...
Server Exports
Server exports provide the authoritative developer API. API version: local version = exports.nord_doorlock:GetApiVersion() Current API version returned by the resource: 1 GetApiVersion local version = exports.nord_doorlock:GetApiVersion() Returns a number. IsR...
Client Exports
Client exports are intended for local door lookup, UI integrations and server-authoritative action requests. Do not use client exports as a security boundary. GetApiVersion local version = exports.nord_doorlock:GetApiVersion() GetDoor local door = exports.nord...
Authorization Hooks
Authorization hooks allow another server resource to extend or override door access without modifying Nord Doorlock. Supported hook event: doorAuthorization Basic Example local hookId = exports.nord_doorlock:RegisterHook( 'doorAuthorization', function(...
Door Data Structure
A Nord Doorlock door is represented as a Lua table. Example — Single Door { id = 1, name = 'Police Front Door', distance = 2.0, autoLock = 0, locked = true, defaultLocked = true, parts = { { model = 123456789, ...
Integration Examples
Lock a Door From Another Server Resource local success, result = exports.nord_doorlock:LockDoor(12) if not success then print(('Failed to lock door: %s'):format(result)) end Unlock a Door Temporarily If the door has an auto-lock delay, using UnlockDoo...
Duplicate Door Protection
A physical GTA door object must only be owned by one Nord Doorlock definition. Duplicate registrations can create conflicting DoorSystem states where one definition unlocks the object while another keeps it locked. Nord Doorlock includes protections for this p...
Security Model
Nord Doorlock treats the server as authoritative for security-sensitive door actions. Server-Side Validation Normal player toggle requests are validated for: Door existence Rate limiting Player proximity Door access rules Authorization hooks Lockpick requests ...