ok am it doesnt seem to have any erros but for some reason it says i dont have the token when i do.
This is what i have
local SwitchId = 1512 -- ID of the switch
local Token = 5887, 1 -- ID of the token (ID, count)
local Item = 2447, 1 -- ID of item to buy (ID, count)
function onUse(cid...