Hello,
I made script for removing license plate from the vehicle so that the license plate is added to your inventory and licence plate written in the description of item. But I don’t know how to do it when I use item to load the description from the metadata. I tried this code, but it doesnt work.
ESX.RegisterUsableItem('spz', function(source, data)
local plate = data.description
TriggerClientEvent("spz:setSPZ", plate)
end)
Does anyone have any advice please?