mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 18:28:52 +00:00
Minor code cleanup
This commit is contained in:
+2
-2
@@ -49,7 +49,7 @@ function IsPlateTaken(plate)
|
||||
end
|
||||
|
||||
function GetRandomNumber(length)
|
||||
Citizen.Wait(1)
|
||||
Citizen.Wait(0)
|
||||
math.randomseed(GetGameTimer())
|
||||
if length > 0 then
|
||||
return GetRandomNumber(length - 1) .. NumberCharset[math.random(1, #NumberCharset)]
|
||||
@@ -59,7 +59,7 @@ function GetRandomNumber(length)
|
||||
end
|
||||
|
||||
function GetRandomLetter(length)
|
||||
Citizen.Wait(1)
|
||||
Citizen.Wait(0)
|
||||
math.randomseed(GetGameTimer())
|
||||
if length > 0 then
|
||||
return GetRandomLetter(length - 1) .. Charset[math.random(1, #Charset)]
|
||||
|
||||
Reference in New Issue
Block a user