Explanation of new duty variables

This commit is contained in:
jimathy
2022-05-05 21:39:09 +01:00
committed by GitHub
parent 35e166d049
commit 100323927e

View File

@@ -20,6 +20,7 @@ RegisterServerEvent('jim-payments:Tickets:Give', function(data, biller)
if Player.PlayerData.citizenid == data.senderCitizenId then biller = Player end
end
end
-- Find out of person who sent the payment is on duty, this is then used to decide weather to give tickets or not
local duty = true
if biller.PlayerData.job.onduty then duty = true else duty = false end
if Config.Manage then exports["qb-management"]:AddMoney(tostring(biller.PlayerData.job.name), data.amount)