Closed SienkoV2 closed 2 years ago
Just use this code. Add this in the server.lua:
ESX.RegisterUsableItem('radio', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('radio', 1)
TriggerClientEvent('Radio.Set', source, true)
TriggerClientEvent('Radio.Toggle', source)
end)
Hi ! I want create item with you rp-radio did you have an tips for create this ^^ ?