How do I add money in the game mode “basic-gamemode”?
AddEventHandler('onClientMapStart', function()
exports.spawnmanager:setAutoSpawn(true)
exports.spawnmanager:forceRespawn()
end)
Please help me
How do I add money in the game mode “basic-gamemode”?
AddEventHandler('onClientMapStart', function()
exports.spawnmanager:setAutoSpawn(true)
exports.spawnmanager:forceRespawn()
end)
Please help me
Anyone
even though you didn’t specify what you mean by ‘add money’, here’s something that’ll add $5000 of bank and $250 of cash every spawn:
AddEventHandler('playerSpawned', function()
local found, curBank = StatGetInt(`BANK_BALANCE`)
local found, curCash = StatGetInt(`MP0_WALLET_BALANCE`)
StatSetInt(`BANK_BALANCE`, curBank + 5000)
StatSetInt(`MP0_WALLET_BALANCE`, curCash + 250)
end)
thank you very much,
A question to this gm can you put a saving of data and money ?, because it is the only gm that starts me the others are in awaiting scripts.