Examples
Ox Inventory Give Item Feature
Select the player with targeting when giving items
At this line of @ox_inventory/client.lua you can replace all the code of the callback with this
RegisterNUICallback('giveItem', function(data, cb)
cb(1)
TriggerEvent('ox_inventory:closeInventory')
local id = exports.targeting:StartTargeting({})
giveItemToTarget(id, data.slot, data.count)
end)
Last updated