-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathconfig.lua
More file actions
29 lines (24 loc) · 1.54 KB
/
Copy pathconfig.lua
File metadata and controls
29 lines (24 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Config = Config or {}
Config.Bridge1Position = vector3(353.3317, -2315.838, 6.9134) -- these are static positions, and should not really
Config.Bridge2Position = vector3(219.5085, -2319.442, 5.0135) -- be changed unless you physically move the bridges.
Config.Commands = true -- allow commands to be used to control the bridge, exports are availible no matter what
Config.AutomaticTrafficZones = true -- will automatically handle stopping traffic at red lights at the car bridge.
-- disable for automatic scenarios, running the full bridge sequence or manual control.
Config.ProximityTrafficLights = true -- automatically enable proximity based state-resetting of traffic lights when close to a bridge.
-- Enhanced Features
Config.Permissions = {
UseCommands = false, -- Require permission to use commands (set to ace permission string, e.g., "bridge.commands")
AdminOnly = false, -- Only admins can control bridge (requires ace permission "bridge.admin")
}
Config.StatePersistence = {
Enabled = false, -- Save bridge state to file (persists across restarts)
SaveInterval = 30000, -- Save every 30 seconds (ms)
}
Config.Sequence = {
LockDuringSequence = true, -- Prevent manual control during automatic sequences
MaxConcurrentSequences = 1, -- Maximum number of sequences that can run simultaneously
}
Config.Sync = {
BroadcastInterval = 1000, -- How often to broadcast state to clients (ms)
ValidateState = true, -- Validate state changes server-side
}