Skip to content

Commit

Permalink
fix: unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpredator committed Aug 23, 2024
1 parent 3afd03c commit 820f873
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ end
function IsNearCentre(player)
local Ped = GetPlayerPed(player)
local PedCoords = GetEntityCoords(Ped)
local Zones = Config.Zones
local _ = Config.Zones
local Close = false

for i = 1, #Config.Zones, 1 do
Expand All @@ -41,7 +41,7 @@ RegisterServerEvent("bpt_joblisting:setJob")
AddEventHandler("bpt_joblisting:setJob", function(job)
local source = source
local xPlayer = ESX.GetPlayerFromId(source)
local jobs = getJobs()
local _ = getJobs()

if xPlayer and IsNearCentre(source) and IsJobAvailable(job) then
if ESX.DoesJobExist(job, 0) then
Expand Down

0 comments on commit 820f873

Please sign in to comment.