116 lines
3.6 KiB
Lua
116 lines
3.6 KiB
Lua
|
Config = {}
|
||
|
|
||
|
-- NPC Vehicle Lock States
|
||
|
Config.LockNPCDrivingCars = false -- Lock state for NPC cars being driven by NPCs [true = locked, false = unlocked]
|
||
|
Config.LockNPCParkedCars = true -- Lock state for NPC parked cars [true = locked, false = unlocked]
|
||
|
Config.UseKeyfob = false -- you can set this true if you dont need ui
|
||
|
-- Lockpick Settings
|
||
|
Config.RemoveLockpickNormal = 0.8 -- Chance to remove lockpick on fail
|
||
|
Config.RemoveLockpickAdvanced = 0.5 -- Chance to remove advanced lockpick on fail
|
||
|
Config.LockPickDoorEvent = function()
|
||
|
loadAnimDict("veh@break_in@0h@p_m_one@")
|
||
|
TaskPlayAnim(PlayerPedId(), "veh@break_in@0h@p_m_one@", "low_force_entry_ds", 3.0, 3.0, -1, 56, 0, 0, 0, 0)
|
||
|
exports['ps-ui']:Circle(function(success)
|
||
|
if success then
|
||
|
LockpickFinishCallback(success)
|
||
|
else
|
||
|
TriggerServerEvent('hud:server:GainStress', math.random(1, 4))
|
||
|
TriggerEvent("QBCore:Notify", "Lockpicking fejlede.", "error")
|
||
|
end
|
||
|
end, 8, 10) -- NumberOfCircles, MS
|
||
|
end
|
||
|
|
||
|
-- Carjack Settings
|
||
|
Config.CarJackEnable = true -- True allows for the ability to car jack peds.
|
||
|
Config.CarjackingTime = 2500 -- How long it takes to carjack
|
||
|
Config.DelayBetweenCarjackings = 5000 -- Time before you can carjack again
|
||
|
Config.CarjackChance = {
|
||
|
['2685387236'] = 0.0, -- melee
|
||
|
['416676503'] = 0.5, -- handguns
|
||
|
['-957766203'] = 0.75, -- SMG
|
||
|
['860033945'] = 0.90, -- shotgun
|
||
|
['970310034'] = 0.90, -- assault
|
||
|
['1159398588'] = 0.99, -- LMG
|
||
|
['3082541095'] = 0.99, -- sniper
|
||
|
['2725924767'] = 0.99, -- heavy
|
||
|
['1548507267'] = 0.0, -- throwable
|
||
|
['4257178988'] = 0.0, -- misc
|
||
|
}
|
||
|
|
||
|
-- Hotwire Settings
|
||
|
Config.HotwireChance = 0.8 -- Chance for successful hotwire or not
|
||
|
Config.TimeBetweenHotwires = 2000 -- Time in ms between hotwire attempts
|
||
|
Config.minHotwireTime = 10000 -- Minimum hotwire time in ms
|
||
|
Config.maxHotwireTime = 20000 -- Maximum hotwire time in ms
|
||
|
|
||
|
-- Police Alert Settings
|
||
|
Config.AlertCooldown = 10000 -- 10 seconds
|
||
|
Config.PoliceAlertChance = 0.75 -- Chance of alerting police during the day
|
||
|
Config.PoliceNightAlertChance = 0.50 -- Chance of alerting police at night (times:01-06)
|
||
|
|
||
|
-- Job Settings
|
||
|
Config.SharedKeys = { -- Share keys amongst employees. Employees can lock/unlock any job-listed vehicle
|
||
|
['police'] = { -- Job name
|
||
|
requireOnduty = false,
|
||
|
vehicles = {
|
||
|
'police', -- Vehicle model
|
||
|
'police2', -- Vehicle model
|
||
|
'police3', -- Vehicle model
|
||
|
'police4', -- Vehicle model
|
||
|
'police5', -- Vehicle model
|
||
|
'police6', -- Vehicle model
|
||
|
}
|
||
|
},
|
||
|
['ambulance'] = {
|
||
|
requireOnduty = true,
|
||
|
vehicles = {
|
||
|
'ambulance',
|
||
|
}
|
||
|
},
|
||
|
['mechanic'] = {
|
||
|
requireOnduty = false,
|
||
|
vehicles = {
|
||
|
'towtruck',
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
-- These vehicles cannot be jacked
|
||
|
Config.ImmuneVehicles = {
|
||
|
'stockade'
|
||
|
}
|
||
|
|
||
|
-- These vehicles will never lock
|
||
|
Config.NoLockVehicles = {}
|
||
|
|
||
|
-- These weapons cannot be used for carjacking
|
||
|
Config.NoCarjackWeapons = {
|
||
|
"WEAPON_UNARMED",
|
||
|
"WEAPON_Knife",
|
||
|
"WEAPON_Nightstick",
|
||
|
"WEAPON_HAMMER",
|
||
|
"WEAPON_Bat",
|
||
|
"WEAPON_Crowbar",
|
||
|
"WEAPON_Golfclub",
|
||
|
"WEAPON_Bottle",
|
||
|
"WEAPON_Dagger",
|
||
|
"WEAPON_Hatchet",
|
||
|
"WEAPON_KnuckleDuster",
|
||
|
"WEAPON_Machete",
|
||
|
"WEAPON_Flashlight",
|
||
|
"WEAPON_SwitchBlade",
|
||
|
"WEAPON_Poolcue",
|
||
|
"WEAPON_Wrench",
|
||
|
"WEAPON_Battleaxe",
|
||
|
"WEAPON_Grenade",
|
||
|
"WEAPON_StickyBomb",
|
||
|
"WEAPON_ProximityMine",
|
||
|
"WEAPON_BZGas",
|
||
|
"WEAPON_Molotov",
|
||
|
"WEAPON_FireExtinguisher",
|
||
|
"WEAPON_PetrolCan",
|
||
|
"WEAPON_Flare",
|
||
|
"WEAPON_Ball",
|
||
|
"WEAPON_Snowball",
|
||
|
"WEAPON_SmokeGrenade",
|
||
|
}
|