Skip to content

Commit

Permalink
fix: variable ped is never accessed + accessing undefined variable hash
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpredator committed Jan 12, 2024
1 parent b3c1c05 commit f55fb9f
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
local WalEquipped, walObj
local ox_inventory = exports.ox_inventory
local ped = cache.ped
local justConnect = true

local function RemoveWal()
if DoesEntityExist(walObj) then
DeleteObject(walObj)
end
SetModelAsNoLongerNeeded(hash)
walObj = nil
WalEquipped = nil
end
Expand Down

0 comments on commit f55fb9f

Please sign in to comment.