function kokainsat(theplayer)
if getDistanceBetweenPoints3D(-90.3388671875, -11.3388671875, 3.109395980835,getElementPosition(theplayer)) > 10 then
outputChatBox("[Medusa RP]#ffffffKokain satmak için uzaksın!",theplayer,255,48,48,true)
return
end
local kokain = exports["item-system"]:countItems(theplayer, 34, 1) or 0
exports["item-system"]:takeItem(theplayer , 34)
if kokain == 0 then
outputChatBox("Üzerinde kokain yok",theplayer,255,48,48)
end
local para = kokain*150
exports.global:giveMoney(theplayer , para)
outputChatBox("[Medusa RP] #ffffff"..kokain.." adet kokain satarak "..para.."$ kazandın!",theplayer,0,255,38,true)
end
addCommandHandler("kokainsat" , kokainsat)
kokain satmak için script yapmaya çalışıyorum ama script çalışmıyor nerede hata var?