mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-30 17:58:54 +00:00
Add math.randomseed
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user