mysql = exports.mysql
addEvent("getPlayerCredits",true)
addEventHandler("getPlayerCredits", resourceRoot,
function (payment)
if getElementData(plr, "delivered") == true then
exports.global:giveMoney(thePlayer,payment)
outputChatBox("OK!",root,0,255,0)
return
end
end)
Line 3 script_s
addEventHandler("getPlayerCredits", resourceRoot, payment
should be
addEventHandler("getPlayerCredits", resourceRoot, function(payment)
the reason for the error is because you didnt have a comma after payment which is still wrong syntax btw.
TIP:
You should use an editor that shows simple errors in Lua