So I'm currently creating a donation system for my current gamemode I was wonder if this will work to give a player a object such as `spawnVehicle` anyway here is the code
function onRedeemCode(thePlayer, commandName, code)
if not (code) then
outputChatBox("SYNTAX: /".. commandName .." [Redeem Code]", thePlayer, 125, 294, 14)
else
if code == "sodq-39jd-239j-230jd" then
--setPlayerMoney(thePlayer, 1000000)-- What thing tha twill happen
else
outputChatBox("This code is not in our code database, sorry.", thePlayer, 255, 0, 0)
end
end
addCommandHandler("redeemcode", onRedeemCode)