#racing app ox_inventory open ui

1 messages · Page 1 of 1 (latest)

pearl moth
#

hi all , know someone why cant open the app?

[ script:ox_inventory] SCRIPT ERROR: citizen:/scripting/lua/scheduler.lua:737: attempt to concatenate a nil value (local 'k')

split inlet
#

You are calling a server event that doesn't exist

pearl moth
#

how i open the app with the item ?

split inlet
#

It should work out of the box unless QBOX changed some shit

pearl moth
#

i think we need something here where is the item to make it usable i use ox_inventory

split inlet
#

There is

#

But maybe qbox changed something

#

might be as easy as changing it to the ox bridge one:

AddEventHandler('ox_inventory:usedItem', function(playerId, name, slotId, metadata)
    if UseDebug then print('opening ui') end

    if name == Config.ItemName.gps then
        openRacingApp(playerId)
    end
end)

Coul you try adding that in the bridge for qbox?

pearl moth
#

where i put this ?

#

server side ?

split inlet
#

yeah in bridge/server/qbox.lua

#

just put it at the top

pearl moth
#

yea now work

#

thnx

split inlet
#

👍 thanks for testing