mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:08:54 +00:00
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user