Minor code cleanup

This commit is contained in:
ElPumpo
2019-11-09 17:25:41 +01:00
parent 967cde347e
commit 956fe5f183
4 changed files with 164 additions and 198 deletions
+2 -2
View File
@@ -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)]