Merge pull request #6 from FBFezz/main

Fixed bug and added config
This commit is contained in:
ESXCrackhead
2021-07-05 07:12:08 -05:00
committed by GitHub
4 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -123,6 +123,7 @@ AddEventHandler('esx_jobs:action', function(job, zone, zoneKey)
local plate = GetVehicleNumberPlateText(vehicle)
plate = string.gsub(plate, " ", "")
local driverPed = GetPedInVehicleSeat(vehicle, -1)
local vehicleMaxHealth = GetVehicleEngineHealth(vehicle)
if playerPed == driverPed then
@@ -524,4 +525,4 @@ Citizen.CreateThread(function()
RequestIpl("id2_14_during1")
end)
if ESX.PlayerLoaded then refreshBlips() end
if ESX.PlayerLoaded then refreshBlips() end
+1 -1
View File
@@ -108,7 +108,7 @@ AddEventHandler('esx_jobs:caution', function(cautionType, cautionAmount, spawnPo
local xPlayer = ESX.GetPlayerFromId(source)
if cautionType == 'take' then
if cautionAmount <= Config.MaxCaution and cautionAmount > 0 then
if cautionAmount <= Config.MaxCaution and cautionAmount >= 0 then
TriggerEvent('esx_addonaccount:getAccount', 'caution', xPlayer.identifier, function(account)
if xPlayer.getAccount('bank').money >= cautionAmount then
xPlayer.removeAccountMoney('bank', cautionAmount)
+1 -1
View File
@@ -416,7 +416,7 @@ function OpenIdentityCardMenu(player)
table.insert(elements, {label = _U('height', data.height)})
end
if data.drunk then
if Config.EnableESXOptionalneeds and data.drunk then
table.insert(elements, {label = _U('bac', data.drunk)})
end
+1
View File
@@ -8,6 +8,7 @@ Config.MarkerColor = {r = 50, g = 50, b = 204}
Config.EnablePlayerManagement = true -- Enable if you want society managing.
Config.EnableArmoryManagement = false
Config.EnableESXIdentity = true -- Enable if you're using esx_identity.
Config.EnableESXOptionalneeds = false -- Enable if you're using esx_optionalneeds
Config.EnableLicenses = false -- Enable if you're using esx_license.
Config.EnableHandcuffTimer = true -- Enable handcuff timer? will unrestrain player after the time ends.