From f55fb9ff6da6cbf1f923cee12afa008d871fa261 Mon Sep 17 00:00:00 2001 From: bitpredator <67551273+bitpredator@users.noreply.github.com> Date: Fri, 12 Jan 2024 12:32:40 +0100 Subject: [PATCH] fix: variable ped is never accessed + accessing undefined variable hash --- server-data/resources/[bpt_addons]/bpt_wallet/client/client.lua | 2 -- 1 file changed, 2 deletions(-) diff --git a/server-data/resources/[bpt_addons]/bpt_wallet/client/client.lua b/server-data/resources/[bpt_addons]/bpt_wallet/client/client.lua index e94ab0977..6e85cb2f7 100644 --- a/server-data/resources/[bpt_addons]/bpt_wallet/client/client.lua +++ b/server-data/resources/[bpt_addons]/bpt_wallet/client/client.lua @@ -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