From 4f7e66561fa891d9087ebbf2e1d73ec197c5f1b7 Mon Sep 17 00:00:00 2001 From: Fezz <43589668+FBFezz@users.noreply.github.com> Date: Mon, 5 Jul 2021 08:49:36 +0100 Subject: [PATCH] Fixed caution not working if set to 0 --- [esx_addons]/esx_jobs/server/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/[esx_addons]/esx_jobs/server/main.lua b/[esx_addons]/esx_jobs/server/main.lua index 8f1a68e6..5595a8f8 100644 --- a/[esx_addons]/esx_jobs/server/main.lua +++ b/[esx_addons]/esx_jobs/server/main.lua @@ -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)