Hi! I’m having issues with a script that I am doing… Basically whenever is supossed to remove the item taserclip, it appears the following error message… I don’t know what could be…
Error: attempt to call a nil value (field 'GetPlayerFromId')
Code:
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.triggerEvent('esx:removeInventoryItem', 'taserclip', 1, true)
Not yet, same error on the same line, I don’t know why… Basically what I am trying to do is removing an item from inventory (using ESX), maybe it would be easier to understand…