Add math.randomseed

This commit is contained in:
Jérémie N'gadi
2017-08-17 10:23:37 +02:00
parent 8015a0620c
commit e5391453ce
+2
View File
@@ -9,6 +9,8 @@ end
RegisterServerEvent('esx_taxijob:success')
AddEventHandler('esx_taxijob:success', function()
math.randomseed(os.time())
local xPlayer = ESX.GetPlayerFromId(source)
local total = math.random(Config.NPCJobEarnings.min, Config.NPCJobEarnings.max);
local societyAccount = nil