From ec9dc51ccfde3c4dbe35e09941887435fe0a63ee Mon Sep 17 00:00:00 2001 From: Jim Shield Date: Tue, 21 Jun 2022 15:18:01 +0100 Subject: [PATCH] Quick fix for job tickets --- server.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.lua b/server.lua index 33c0c7d..b744524 100644 --- a/server.lua +++ b/server.lua @@ -37,7 +37,7 @@ RegisterServerEvent('jim-payments:Tickets:Give', function(data, biller, gang) end local duty = true - if not biller.PlayerData.job.onduty or not gang then duty = false end + if not biller.PlayerData.job.onduty or gang == nil then duty = false end -- If ticket system enabled, do this if duty and Config.TicketSystem then @@ -165,4 +165,4 @@ QBCore.Functions.CreateCallback('jim-payments:MakePlayerList', function(source, onlineList[#onlineList+1] = { value = tonumber(v), text = "["..v.."] - "..P.PlayerData.charinfo.firstname..' '..P.PlayerData.charinfo.lastname } end cb(onlineList) -end) \ No newline at end of file +end)