Files
Elite-Gaming-FiveM/resources/[EGRP-Map-Addons]/[jd-weighstations]/jd-weighstation01/config.lua
T
2025-12-25 13:17:59 -08:00

81 lines
2.4 KiB
Lua

Config = {}
-- =============================================
-- ACE PERMISSIONS
-- =============================================
Config.ACL = {
UseACL = false, -- set to false to disable ACE checks allowing anyone to use the light controls
MainLights = "weighstation.mainlights",
AmberLights = "weighstation.amberlights"
}
-- =============================================
-- MAIN WEIGH STATION TRAFFIC LIGHTS
-- =============================================
Config.MainLights = {
AutoMode = true,
Lanes = {
LaneA = {
Lights = {
{
coords = vector3(2911.517090, 4153.126465, 58.026089),
rotation = vector3(0.0, 0.0, 0.0)
},
{
coords = vector3(2896.470703, 4179.305664, 56.372925),
rotation = vector3(20.0, -90.0, 20.0)
},
},
}
},
ControlCoords = vector3(2920.2078, 4191.4390, 50.4580),
ControlDistance = 1.0,
LightSpawnRange = 1000.0,
ResyncTime = 60000
}
-- =============================================
-- ROAD SIGN / AMBER LIGHT SETS
-- =============================================
Config.RoadSigns = {
LightSets = {
{
name = "San Chainski",
model = `jd_weighstation_lightamber`,
coordsA = vector3(2946.227051, 3795.911865, 54.827042),
rotA = vector3(0.0, 0.0, -18.46),
coordsB = vector3(2947.412842, 3795.516113, 54.827042),
rotB = vector3(0.0, 0.0, -18.46),
control = vector3(2946.8794, 3795.7717, 52.5899),
distance = 1.0
}
}
}
-- =============================================
-- WEIGH STATION RAMP LIGHT SYSTEM
-- =============================================
Config.RampLight = {
AllowedClasses = {
[18] = false,
[20] = false,
},
AllowedModels = { "phantom", "hauler", "packer", "phantom3", "hauler2", "packer2" }, -- ← container truck models
HeavyModels = {
"TRAILER", -- ← container heavy trailers
"TRAILERS", "TRAILER2", "TRAILER3", "TRAILER4",
"trailers", "trailers2", "trailers3", "trailers4",
"freighttrailer", "armytanker", "docktrailer"
},
LightModels = {
"tr2", "tr3", "tr4", "trflat", -- ← container light trailers
"tanker", "tanker2", "trailerlogs",
"tvtrailer", "baletrailer", "graintrailer"
},
}