[HELP] Show item metadata (ox_inventory)

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?

You forgot the source parameter in the event.

TriggerClientEvent("spz:setSPZ", source, plate)

It doesnt work :confused:

ESX.RegisterUsableItem('spz', function(source, data)
local src = source
	local plate = data.description
	TriggerClientEvent("spz:setSPZ", src, plate)
end)