mythic-doors/shared/config/. This page covers the data structures and restriction types.
Door Definition
Each door is a table with the following properties:Property Reference
| Property | Type | Default | Description |
|---|---|---|---|
id | string | nil | Named identifier for scripting |
model | number | required | GTA object model hash |
coords | vector3 | required | Door position in world |
locked | boolean | false | Initial lock state |
maxDist | number | 2.0 | Max interaction distance |
canLockpick | boolean | false | Lockpickable |
holdOpen | boolean | false | Stay open when unlocked |
autoRate | number | 6.0 | Auto-close animation speed |
autoDist | number | nil | Auto-close distance |
autoLock | number | nil | Seconds until auto re-lock |
double | number | nil | Paired door index |
special | any | nil | Custom script data |
restricted | table | Access restrictions |
Restriction Types
Job Restriction
Restrict door access to players with a specific job.Character Restriction
Restrict door access to a specific character by State ID.Property Data Restriction
Restrict door access based on property data values.Multiple Restrictions
A door can have multiple restrictions. A player needs to match any one of them to access the door.Double Doors
Link two doors together so locking/unlocking one affects both.Elevator Definition
Elevators are multi-floor transport points with per-floor access control.Floor Properties
| Property | Type | Description |
|---|---|---|
name | string | Floor display name |
coords | vector4 | Teleport position (x, y, z, heading) |
defaultLocked | boolean | Initial lock state |
restricted | table | Access restrictions (same types as doors) |
bypassLock | table | Restrictions that bypass the lock entirely |
zone | table | Interaction zone definition |
Zone Properties
| Property | Type | Description |
|---|---|---|
center | vector3 | Zone center position |
length | number | Zone length |
width | number | Zone width |
heading | number | Zone rotation |
minZ | number | Zone minimum height |
maxZ | number | Zone maximum height |
Next Steps
Doors - Exports
Door API methods
Jobs API
Job system for restrictions
Admin Callbacks
Admin door management