Files
Elite-Gaming-FiveM/resources/Supply-Line/config.lua
T
KingMcDonalds 765aa151a3 fixing vehicles
2026-03-13 23:31:07 -07:00

502 lines
24 KiB
Lua

Config = {
SupplyLineKeys = {
ConnectHydrant = 20, -- Z
StartStopFilling = 74, -- H
},
Debug = true,
KeepEngineOnAfterPumpOff = true,
-- if useBone = true, "offsets" field will be ignored; otherwise custom offsets are enabled.
VehicleSettings = {
[`britishladder`] = {
useBone = false,
bones = {}, -- to add bones do "bone_name" you can have multiple by doing "bonename", "bonename_2"
offsets = {
{ x = 1.340, y = -0.205, z = 0.000, rx = -39.000, ry = 0.000, rz = -94.750, depth = 0.335},
},
},
[`lafdxt6700`] = {
useBone = false,
bones = {}, -- to add bones do "bone_name" you can have multiple by doing "bonename", "bonename_2"
offsets = {
{ x = 1.045, y = -0.095, z = -0.060, rx = -19.000, ry = 0.000, rz = -88.500, depth = 0.525 },
{ x = -0.605, y = -4.155, z = -0.355, rx = -41.750, ry = 0.000, rz = -184.250, depth = 0.525 },
},
},
[`engine`] = {
useBone = false,
bones = {}, -- to add bones do "bone_name" you can have multiple by doing "bonename", "bonename_2"
offsets = {
{ x = 1.045, y = -0.095, z = -0.060, rx = -19.000, ry = 0.000, rz = -88.500, depth = 0.525 },
{ x = -0.605, y = -4.155, z = -0.355, rx = -41.750, ry = 0.000, rz = -184.250, depth = 0.525 },
},
},
[`lafdengine`] = {
useBone = false,
bones = {}, -- to add bones do "bone_name" you can have multiple by doing "bonename", "bonename_2"
offsets = {
{ x = 1.045, y = -0.095, z = -0.060, rx = -19.000, ry = 0.000, rz = -88.500, depth = 0.525 },
{ x = -0.605, y = -4.155, z = -0.355, rx = -41.750, ry = 0.000, rz = -184.250, depth = 0.525 },
},
},
[`lacofdeng`] = {
useBone = false,
bones = {}, -- to add bones do "bone_name" you can have multiple by doing "bonename", "bonename_2"
offsets = {
{ x = 1.045, y = -0.095, z = -0.060, rx = -19.000, ry = 0.000, rz = -88.500, depth = 0.525 },
{ x = -0.605, y = -4.155, z = -0.355, rx = -41.750, ry = 0.000, rz = -184.250, depth = 0.525 },
},
},
[`lacofdt3`] = {
useBone = false,
bones = {}, -- to add bones do "bone_name" you can have multiple by doing "bonename", "bonename_2"
offsets = {
{ x = 1.045, y = -0.095, z = -0.060, rx = -19.000, ry = 0.000, rz = -88.500, depth = 0.525 },
{ x = -0.605, y = -4.155, z = -0.355, rx = -41.750, ry = 0.000, rz = -184.250, depth = 0.525 },
},
},
[`EnforcerEng`] = {
useBone = false,
bones = {}, -- to add bones do "bone_name" you can have multiple by doing "bonename", "bonename_2"
offsets = {
{ x = 1.045, y = -0.095, z = -0.060, rx = -19.000, ry = 0.000, rz = -88.500, depth = 0.525 },
{ x = -0.605, y = -4.155, z = -0.355, rx = -41.750, ry = 0.000, rz = -184.250, depth = 0.525 },
},
},
[`enforcer`] = {
useBone = false,
bones = {}, -- to add bones do "bone_name" you can have multiple by doing "bonename", "bonename_2"
offsets = {
{ x = 1.045, y = -0.095, z = -0.060, rx = -19.000, ry = 0.000, rz = -88.500, depth = 0.525 },
{ x = -0.605, y = -4.155, z = -0.355, rx = -41.750, ry = 0.000, rz = -184.250, depth = 0.525 },
},
},
[`enforcerta`] = {
useBone = false,
bones = {}, -- to add bones do "bone_name" you can have multiple by doing "bonename", "bonename_2"
offsets = {
{ x = 1.045, y = -0.095, z = -0.060, rx = -19.000, ry = 0.000, rz = -88.500, depth = 0.525 },
{ x = -0.605, y = -4.155, z = -0.355, rx = -41.750, ry = 0.000, rz = -184.250, depth = 0.525 },
},
},
[`enforcerf`] = {
useBone = false,
bones = {}, -- to add bones do "bone_name" you can have multiple by doing "bonename", "bonename_2"
offsets = {
{ x = 1.045, y = -0.095, z = -0.060, rx = -19.000, ry = 0.000, rz = -88.500, depth = 0.525 },
{ x = -0.605, y = -4.155, z = -0.355, rx = -41.750, ry = 0.000, rz = -184.250, depth = 0.525 },
},
},
[`brush`] = {
useBone = false,
bones = {}, -- to add bones do "bone_name" you can have multiple by doing "bonename", "bonename_2"
offsets = {
{ x = 1.045, y = -0.095, z = -0.060, rx = -19.000, ry = 0.000, rz = -88.500, depth = 0.525 },
{ x = -0.605, y = -4.155, z = -0.355, rx = -41.750, ry = 0.000, rz = -184.250, depth = 0.525 },
},
},
[`brushram`] = {
useBone = false,
bones = {}, -- to add bones do "bone_name" you can have multiple by doing "bonename", "bonename_2"
offsets = {
{ x = 1.045, y = -0.095, z = -0.060, rx = -19.000, ry = 0.000, rz = -88.500, depth = 0.525 },
{ x = -0.605, y = -4.155, z = -0.355, rx = -41.750, ry = 0.000, rz = -184.250, depth = 0.525 },
},
},
[`firef350`] = {
useBone = false,
bones = {}, -- to add bones do "bone_name" you can have multiple by doing "bonename", "bonename_2"
offsets = {
{ x = 1.045, y = -0.095, z = -0.060, rx = -19.000, ry = 0.000, rz = -88.500, depth = 0.525 },
{ x = -0.605, y = -4.155, z = -0.355, rx = -41.750, ry = 0.000, rz = -184.250, depth = 0.525 },
},
},
[`bulldog`] = {
useBone = false,
bones = {}, -- to add bones do "bone_name" you can have multiple by doing "bonename", "bonename_2"
offsets = {
{ x = 1.045, y = -0.095, z = -0.060, rx = -19.000, ry = 0.000, rz = -88.500, depth = 0.525 },
{ x = -0.605, y = -4.155, z = -0.355, rx = -41.750, ry = 0.000, rz = -184.250, depth = 0.525 },
},
},
[`ftanker`] = {
useBone = false,
bones = {}, -- to add bones do "bone_name" you can have multiple by doing "bonename", "bonename_2"
offsets = {
{ x = 1.045, y = -0.095, z = -0.060, rx = -19.000, ry = 0.000, rz = -88.500, depth = 0.525 },
{ x = -0.605, y = -4.155, z = -0.355, rx = -41.750, ry = 0.000, rz = -184.250, depth = 0.525 },
},
},
[`heavypump`] = {
useBone = false,
bones = {}, -- to add bones do "bone_name" you can have multiple by doing "bonename", "bonename_2"
offsets = {
{ x = 1.045, y = -0.095, z = -0.060, rx = -19.000, ry = 0.000, rz = -88.500, depth = 0.525 },
{ x = -0.605, y = -4.155, z = -0.355, rx = -41.750, ry = 0.000, rz = -184.250, depth = 0.525 },
},
},
[`heavytank`] = {
useBone = false,
bones = {}, -- to add bones do "bone_name" you can have multiple by doing "bonename", "bonename_2"
offsets = {
{ x = 1.045, y = -0.095, z = -0.060, rx = -19.000, ry = 0.000, rz = -88.500, depth = 0.525 },
{ x = -0.605, y = -4.155, z = -0.355, rx = -41.750, ry = 0.000, rz = -184.250, depth = 0.525 },
},
},
[`heavywild`] = {
useBone = false,
bones = {}, -- to add bones do "bone_name" you can have multiple by doing "bonename", "bonename_2"
offsets = {
{ x = 1.045, y = -0.095, z = -0.060, rx = -19.000, ry = 0.000, rz = -88.500, depth = 0.525 },
{ x = -0.605, y = -4.155, z = -0.355, rx = -41.750, ry = 0.000, rz = -184.250, depth = 0.525 },
},
},
[`panther`] = {
useBone = false,
bones = {}, -- to add bones do "bone_name" you can have multiple by doing "bonename", "bonename_2"
offsets = {
{ x = 1.045, y = -0.095, z = -0.060, rx = -19.000, ry = 0.000, rz = -88.500, depth = 0.525 },
{ x = -0.605, y = -4.155, z = -0.355, rx = -41.750, ry = 0.000, rz = -184.250, depth = 0.525 },
},
},
[`t3engine1`] = {
useBone = false,
bones = {}, -- to add bones do "bone_name" you can have multiple by doing "bonename", "bonename_2"
offsets = {
{ x = 1.045, y = -0.095, z = -0.060, rx = -19.000, ry = 0.000, rz = -88.500, depth = 0.525 },
{ x = -0.605, y = -4.155, z = -0.355, rx = -41.750, ry = 0.000, rz = -184.250, depth = 0.525 },
},
},
[`enladder`] = {
useBone = false,
bones = {}, -- to add bones do "bone_name" you can have multiple by doing "bonename", "bonename_2"
offsets = {
{ x = 1.045, y = -0.095, z = -0.060, rx = -19.000, ry = 0.000, rz = -88.500, depth = 0.525 },
{ x = -0.605, y = -4.155, z = -0.355, rx = -41.750, ry = 0.000, rz = -184.250, depth = 0.525 },
},
},
[` `] = {
useBone = false,
bones = {}, -- to add bones do "bone_name" you can have multiple by doing "bonename", "bonename_2"
offsets = {
{ x = 1.045, y = -0.095, z = -0.060, rx = -19.000, ry = 0.000, rz = -88.500, depth = 0.525 },
{ x = -0.605, y = -4.155, z = -0.355, rx = -41.750, ry = 0.000, rz = -184.250, depth = 0.525 },
},
},
[`britishladderels`] = {
useBone = false,
bones = {}, -- to add bones do "bone_name" you can have multiple by doing "bonename", "bonename_2"
offsets = {
{ x = 1.340, y = -0.205, z = 0.000, rx = -39.000, ry = 0.000, rz = -94.750, depth = 0.335},
},
},
[`rearmount`] = {
useBone = false,
bones = {}, -- to add bones do "bone_name" you can have multiple by doing "bonename", "bonename_2"
offsets = {
{x = -1.345, y = 1.095, z = -0.440, rx = -24.750, ry = 0.000, rz = 72.000, depth = 0.670 },
},
},
[`midmount`] = {
useBone = false,
bones = {}, -- to add bones do "bone_name" you can have multiple by doing "bonename", "bonename_2"
offsets = {
{ x = -1.320, y = 1.370, z = -0.595, rx = -24.250, ry = 0.000, rz = 77.500, depth = 0.860 },
},
},
[`tillertrailer`] = {
useBone = false,
bones = {}, -- to add bones do "bone_name" you can have multiple by doing "bonename", "bonename_2"
offsets = {
{ x = 1.395, y = 0.445, z = 0.175, rx = -22.750, ry = 0.000, rz = -83.750, depth = 0.895 }
},
},
[`tillertrailerels`] = {
useBone = false,
bones = {}, -- to add bones do "bone_name" you can have multiple by doing "bonename", "bonename_2"
offsets = {
{ x = 1.395, y = 0.445, z = 0.175, rx = -22.750, ry = 0.000, rz = -83.750, depth = 0.895 }
},
},
[`rearmountels`] = {
useBone = false,
bones = {}, -- to add bones do "bone_name" you can have multiple by doing "bonename", "bonename_2"
offsets = {
{x = -1.345, y = 1.095, z = -0.440, rx = -24.750, ry = 0.000, rz = 72.000, depth = 0.670 },
},
},
[`midmountels`] = {
useBone = false,
bones = {}, -- to add bones do "bone_name" you can have multiple by doing "bonename", "bonename_2"
offsets = {
{ x = -1.320, y = 1.370, z = -0.595, rx = -24.250, ry = 0.000, rz = 77.500, depth = 0.860 },
},
},
[`ldfoam`] = {
useBone = false,
bones = {}, -- to add bones do "bone_name" you can have multiple by doing "bonename", "bonename_2"
offsets = {
{ x = 1.375, y = 1.160, z = 0.000, rx = -20.500, ry = 0.000, rz = -91.000, depth = 0.550 },
},
},
[`ldfoamels`] = {
useBone = false,
bones = {}, -- to add bones do "bone_name" you can have multiple by doing "bonename", "bonename_2"
offsets = {
{ x = 1.375, y = 1.160, z = 0.000, rx = -20.500, ry = 0.000, rz = -91.000, depth = 0.550 },
},
},
[`firerobot`] = {
useBone = false,
bones = {}, -- to add bones do "bone_name" you can have multiple by doing "bonename", "bonename_2"
offsets = {
{ x = 0.225, y = -1.590, z = 0.510, rx = -11.500, ry = 0.000, rz = 183.500, depth = 0.645, type = "hand"},
},
},
},
EnablePositioningCommand = true,
-- This enables the /findhydrantpositioning command to help you find the right hydrant offsets for either
-- the supply connection or the lpp line connection point. See our documentation for more info.
PositioningControls = {
down = 207, -- Page Up
up = 208, -- Page Down
backwards = 173, -- Arrow Down
forwards = 172, -- Arrow Up
left = 174, -- Arrow Left
right = 175, -- Arrow Right
enter = 191, -- Enter Key
},
HydrantOffsets = {
{ model = `prop_fire_hydrant_4`, offsets = { x = 0.000, y = -0.410, z = 0.525, rx = 28.500, ry = 0.000, rz = 0.000, depth = -0.455 } },
{ model = `prop_fire_hydrant_2`, offsets = { x = 0.030, y = -0.585, z = 0.245, rx = -35.250, ry = 0.000, rz = -173.750, depth = 0.465 } },
{ model = `prop_fire_hydrant_1`, offsets = { x = 0.540, y = 0.015, z = 0.540, rx = -13.500, ry = 0.000, rz = -86.250, depth = 0.460 } },
{ model = `bv_water_pump`, offsets = { x = -0.435, y = -0.490, z = 0.145, rx = -17.250, ry = 0.000, rz = 177.250, depth = 0.215 } }
},
Translations = {
stopFilling = "Press Z to disconnect line\nPress H to stop filling",
startFilling = "Press Z to disconnect line\nPress H to fill tank with water",
placeGenerator = "Press ~INPUT_FRONTEND_RDOWN~ to place the generator or ~INPUT_FRONTEND_RRIGHT~ to cancel.",
placePump = "Press ~INPUT_FRONTEND_RDOWN~ to place the pump or ~INPUT_FRONTEND_CANCEL~ to cancel.",
thirdEyeConnect = "Connect line to vehicle",
thirdEyeDisconnect ="Disconnect line from vehicle",
thirdEyeStartFill = "Start filling up vehicle",
thirdEyeStopFill = "Stop filling up vehicle",
connectLine = "Press Z to connect line to truck",
waterLevel = "Water Level:",
noPermission = "You do not have access to use the supply line.",
placeHydrantCommandHelp = "Place or remove a fire hydrant",
placeHydrantCommandHelpArgument = "place/remove",
placeGeneratorCommandHelp = "Place or remove a LPP",
placeGeneratorCommandHelpArgument = "place/remove",
placeHydrantCommandSuccess = "Hydrant placed successfully!",
placeHydrantCommandCancel = "Placement cancelled!",
removeHydrantCommandSuccess = "Hydrant removed!",
placeGeneratorCommandSuccess = "Hydrant placed successfully!",
placeGeneratorCommandCancel = "Placement cancelled!",
removeGeneratorCommandSuccess = "Hydrant removed!",
noVehicleNearby = "No vehicle nearby found!",
cantHoldWater = "This vehicle cannot hold water",
notInShallowWater = "You must be at the shoreline or shallow water to place the pump.",
lppEquipped = "You have equipped the portable generator. Place it near a water source.",
genAndPumpStored = "Generator and pump stored!",
noLppPlaced = "No generator is currently deployed!",
noItem = "You do not have the required item to use an LPP.",
},
PlaceGeneratorCommand = {
Enabled = true,
Inventory = {
ItemName = "lpp",
oxInventory = false,
quasarInventory = false,
coreInventory = false,
ESX = false,
vRP = false,
qbCore = false,
},
CommandName = "lpp",
PlaceArgument = "place",
RemoveArgument = "remove",
Permissions = {
EnablePermissions = false,
AcePermissions = {
Enabled = false,
-- The permission name will be command.hydrant
},
ESX = {
Enabled = false,
CheckJob = {
Enabled = false, -- Enable this to use ESX job check
Jobs = {"fireman"} -- A user can have any of the following jobs, allowing you to add multiple
}
},
-- We've added vRP integration. All you need to do is enable it below. Then, configure if you wish to check for groups or permissions, or even both
vRP = {
Enabled = false,
CheckGroup = {
Enabled = false, -- Enable this to use vRP group check
Groups = {"fireman"}, -- A user can have any of the following groups, meaning you can add different jobs
},
CheckPermission = {
Enabled = false, -- Enable this to use vRP permission check
Permissions = {"fireman.usehose"} -- A user can have any of the following permissions, allowing you to add multiple
},
},
-- We've added QBCore integration. All you need to do is enable it below. Then, configure if you wish to check for jobs or permissions, or even both
QBCore = {
Enabled = false,
CheckJob = {
Enabled = false, -- Enable this to use QBCore job check
Jobs = {"fireman"}, -- A user can have any of the following jobs, meaning you can add different jobs
},
CheckPermission = {
Enabled = false, -- Enable this to use QBCore permission check
permissions = {"fireman.usehose"}, -- A user can have any of the following permissions, allowing you to add multiple
},
},
-- We've added QBX integration. All you need to do is enable it below. Then, configure if you wish to check for jobs or permissions, or even both
QBX = {
Enabled = false,
CheckJob = {
Enabled = false, -- Enable this to use QBX job check
Jobs = {"fireman"}, -- A user can have any of the following jobs, meaning you can add different jobs
}
},
},
},
PlaceHydrantCommand = {
Enabled = true,
CommandName = "hydrant",
PlaceArgument = "place",
RemoveArgument = "remove",
Permissions = {
EnablePermissions = false,
AcePermissions = {
Enabled = false,
-- The permission name will be command.hydrant
},
ESX = {
Enabled = false,
CheckJob = {
Enabled = false, -- Enable this to use ESX job check
Jobs = {"fireman"} -- A user can have any of the following jobs, allowing you to add multiple
}
},
-- We've added vRP integration. All you need to do is enable it below. Then, configure if you wish to check for groups or permissions, or even both
vRP = {
Enabled = false,
CheckGroup = {
Enabled = false, -- Enable this to use vRP group check
Groups = {"fireman"}, -- A user can have any of the following groups, meaning you can add different jobs
},
CheckPermission = {
Enabled = false, -- Enable this to use vRP permission check
Permissions = {"fireman.usehose"} -- A user can have any of the following permissions, allowing you to add multiple
},
},
-- We've added QBCore integration. All you need to do is enable it below. Then, configure if you wish to check for jobs or permissions, or even both
QBCore = {
Enabled = false,
CheckJob = {
Enabled = false, -- Enable this to use QBCore job check
Jobs = {"fireman"}, -- A user can have any of the following jobs, meaning you can add different jobs
},
CheckPermission = {
Enabled = false, -- Enable this to use QBCore permission check
permissions = {"fireman.usehose"}, -- A user can have any of the following permissions, allowing you to add multiple
},
},
-- We've added QBX integration. All you need to do is enable it below. Then, configure if you wish to check for jobs or permissions, or even both
QBX = {
Enabled = false,
CheckJob = {
Enabled = false, -- Enable this to use QBX job check
Jobs = {"fireman"}, -- A user can have any of the following jobs, meaning you can add different jobs
}
},
},
},
Notifications = {
Enabled = true,
Framework = {
QBCore = false,
QBX = false,
ESX = false,
vRP = false,
okok = false,
}
},
InteractType = {
HydrantInteraction = {
Drawtext = true,
ScreenPrompt = false,
WorldInteraction = false,
ThirdEye = {
enabled = false,
qbTarget = false,
oxTarget = false,
}
},
},
JobCheck = {
EnablePermissions = false, -- If set to false, all below job checks will be disabled, even if they are enabled in the config.lua
AcePermissions = {
Enabled = false,
Permission = "usehose"
},
ESX = {
Enabled = false,
CheckJob = {
Enabled = false, -- Enable this to use ESX job check
Jobs = {"fireman"} -- A user can have any of the following jobs, allowing you to add multiple
}
},
-- We've added vRP integration. All you need to do is enable it below. Then, configure if you wish to check for groups or permissions, or even both
vRP = {
Enabled = false,
CheckGroup = {
Enabled = false, -- Enable this to use vRP group check
Groups = {"fireman"}, -- A user can have any of the following groups, meaning you can add different jobs
},
CheckPermission = {
Enabled = false, -- Enable this to use vRP permission check
Permissions = {"fireman.usehose"} -- A user can have any of the following permissions, allowing you to add multiple
},
},
-- We've added QBCore integration. All you need to do is enable it below. Then, configure if you wish to check for jobs or permissions, or even both
QBCore = {
Enabled = false,
CheckJob = {
Enabled = false, -- Enable this to use QBCore job check
Jobs = {"fireman"}, -- A user can have any of the following jobs, meaning you can add different jobs
},
CheckPermission = {
Enabled = false, -- Enable this to use QBCore permission check
permissions = {"fireman.usehose"}, -- A user can have any of the following permissions, allowing you to add multiple
},
},
-- We've added QBX integration. All you need to do is enable it below. Then, configure if you wish to check for jobs or permissions, or even both
QBX = {
Enabled = false,
CheckJob = {
Enabled = false, -- Enable this to use QBX job check
Jobs = {"fireman"}, -- A user can have any of the following jobs, meaning you can add different jobs
}
},
},
}