mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-08-18 14:26:03 +01:00
Add delay for checking for inventory items on qb
Custom inventories apparently load items separately/later into qbshared so the script starts thinking there is definitely 0 items but its checking too early, this forces it to wait until its available to continue
This commit is contained in:
@@ -252,6 +252,7 @@ RegisterNetEvent(getScript()..":server:toggleItem", function(give, item, amount,
|
||||
else
|
||||
local amountToAdd = amount or 1
|
||||
if isStarted(OXInv) then invName = OXInv
|
||||
jsonPrint(info)
|
||||
exports[OXInv]:AddItem(src, item, amountToAdd, info, slot)
|
||||
|
||||
elseif isStarted(QSInv) then invName = QSInv
|
||||
|
||||
Reference in New Issue
Block a user