140 lines
3.0 KiB
Lua
140 lines
3.0 KiB
Lua
Config = {}
|
|
|
|
Config.Framework = 'QBCore'
|
|
|
|
Config.Refresh = 'HudRefresh'
|
|
|
|
Config.DefaultSpeedUnit = 'kmh' -- mph or kmh
|
|
|
|
Config.Hud = "hud"
|
|
|
|
Config.StressChance = 0.1 -- Default: 10% -- Percentage Stress Chance When Shooting (0-1)
|
|
Config.MinimumStress = 50 -- Minimum Stress Level For Screen Shaking
|
|
Config.WhitelistedWeaponStress = {
|
|
`weapon_petrolcan`,
|
|
`weapon_hazardcan`,
|
|
`weapon_fireextinguisher`
|
|
}
|
|
|
|
Config.UseStress = false -- if you set this to false the stress hud will be removed
|
|
Config.StressWhitelistJobs = { -- Add here jobs you want to disable stress
|
|
'police', 'ambulance'
|
|
}
|
|
|
|
Config.AddStress = {
|
|
["on_shoot"] = {
|
|
min = 1,
|
|
max = 3,
|
|
enable = true,
|
|
},
|
|
["on_fastdrive"] = {
|
|
min = 1,
|
|
max = 3,
|
|
enable = true,
|
|
},
|
|
}
|
|
|
|
Config.RemoveStress = { -- You can set here amounts by your desire
|
|
["on_eat"] = {
|
|
min = 5,
|
|
max = 10,
|
|
enable = true,
|
|
|
|
},
|
|
["on_drink"] = {
|
|
min = 5,
|
|
max = 10,
|
|
enable = true,
|
|
|
|
},
|
|
["on_swimming"] = {
|
|
min = 5,
|
|
max = 10,
|
|
enable = true,
|
|
|
|
},
|
|
["on_running"] = {
|
|
min = 5,
|
|
max = 10,
|
|
enable = true,
|
|
},
|
|
|
|
}
|
|
|
|
Config.MinimumSpeed = 10 -- Going Over This Speed Will Cause Stress
|
|
Config.MinimumSpeedUnbuckled = 50 -- Going Over This Speed Will Cause Stress
|
|
Config.DisablePoliceStress = true -- If true will disable stress for people with the police job
|
|
|
|
Config.Intensity = {
|
|
[1] = {
|
|
min = 50,
|
|
max = 60,
|
|
intensity = 1500,
|
|
},
|
|
[2] = {
|
|
min = 60,
|
|
max = 70,
|
|
intensity = 2000,
|
|
},
|
|
[3] = {
|
|
min = 70,
|
|
max = 80,
|
|
intensity = 2500,
|
|
},
|
|
[4] = {
|
|
min = 80,
|
|
max = 90,
|
|
intensity = 2700,
|
|
},
|
|
[5] = {
|
|
min = 90,
|
|
max = 100,
|
|
intensity = 3000,
|
|
},
|
|
}
|
|
|
|
Config.EffectInterval = {
|
|
[1] = {
|
|
min = 50,
|
|
max = 60,
|
|
timeout = math.random(50000, 60000)
|
|
},
|
|
[2] = {
|
|
min = 60,
|
|
max = 70,
|
|
timeout = math.random(40000, 50000)
|
|
},
|
|
[3] = {
|
|
min = 70,
|
|
max = 80,
|
|
timeout = math.random(30000, 40000)
|
|
},
|
|
[4] = {
|
|
min = 80,
|
|
max = 90,
|
|
timeout = math.random(20000, 30000)
|
|
},
|
|
[5] = {
|
|
min = 90,
|
|
max = 100,
|
|
timeout = math.random(15000, 20000)
|
|
}
|
|
}
|
|
|
|
|
|
Config.GetVehFuel = function(Veh)
|
|
return exports["qb-fuel"]:GetFuel(Veh)
|
|
end
|
|
|
|
Config.NitroItem = "nitrous" -- item to install nitro to a vehicle - noss
|
|
Config.EmptyNitroItem = "emptynitrous" -- The item to return to the player when they add nitro to a vehicle
|
|
Config.NitroControl = "X"
|
|
Config.NitroForce = 40.0 -- Nitro force when player using nitro
|
|
Config.RemoveNitroOnpress = 2 -- Determines of how much you want to remove nitro when player press nitro key
|
|
-- Config.SeatbeltControl = 'B' -- Control switch for seat belt (Players can change the key according to their wishes)
|
|
|
|
|
|
function GetFramework()
|
|
return exports["qb-core"]:GetCoreObject()
|
|
end
|