Skip to content

Commit

Permalink
refactor: (bpt_wallet) await callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpredator committed Mar 26, 2024
1 parent e14b4a0 commit ac97213
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ local function RemoveWal()
WalEquipped = nil
end

AddEventHandler('ox_inventory:updateInventory', function(changes)
RegisterNetEvent('ox_inventory:updateInventory', function(changes)
if justConnect then
Wait(4500)
justConnect = nil
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ local function GenerateSerial(text)
)
end

RegisterServerEvent("bpt_wallet:openWallet")
AddEventHandler("bpt_wallet:openWallet", function(identifier)
RegisterServerEvent("bpt_wallet:openWallet", function(identifier)
if not registeredStashes[identifier] then
ox_inventory:RegisterStash(
"wal_" .. identifier,
Expand Down

0 comments on commit ac97213

Please sign in to comment.