Error Please Help Me.
server.lua Code
addEvent("nitroPickup", true)
addEventHandler("nitroPickup", getRootElement(),
function(player)
if isPedInVehicle(source) then
local account = getPlayerAccount(player)
if account then
if getAccountData(account,"cash") >= 1000 then --- change the string "cash" to what the money data is saved (cash,money)
addVehicleUpgrade(getPedOccupiedVehicle(source),1010)
setAccountData(account,"cash",-1000) --- change the string "cash" to what the money data is saved (cash,money)
outputChatBox ( "Buy Nitro [$1000 ]", player, 0, 0, 0, true )
else
outputChatBox ( "You enough to money", getRootElement(), 0, 0, 0, true )
end
end
end
end
)