Could u possible let me get the full file cause i'm trying to do the same thing.
Also you could try just putting 2 different codes
local pos = {x = 1049, y = 729, z = 6}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerVocation(cid) == 1 and getPlayerVocation(cid) ==...