This is my first useable item. I added it correctly and all that stuff but there is no TEST in my console when I use it. Why?

QBCore.Functions.CreateUseableItem('police_light', function(source, item)
local Player = QBCore.Functions.GetPlayer(source)
if not Player.Functions.GetItemByName(item.name) then return end
print("TEST")
end)
This is my item:
['police_light'] = {['name'] = 'police_light', ['label'] = 'Polizeilicht', ['weight'] = 200, ['type'] = 'item', ['image'] = 'police_light.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'Kann auf Fahrzeuge montiert werden'},
Hi @DARK-DESIGNS
It works fine in itself, maybe it’s a problem with where this function is placed? DEAD CODE section?
Hey thank you for the reply. Yeah I remade it and now it works fine … weird… still thank you