forked from Simnation/Main
Update client.lua
This commit is contained in:
parent
272a450250
commit
e653e1eb87
1 changed files with 4 additions and 2 deletions
|
@ -244,9 +244,10 @@ function EnumerateVehicles()
|
|||
end
|
||||
|
||||
-- Kennzeichen generieren
|
||||
-- Kennzeichen generieren (GEÄNDERT - RENTAL + 3 zufällige Zeichen)
|
||||
function GeneratePlate()
|
||||
local plate = ""
|
||||
for i = 1, 8 do
|
||||
local plate = "RENTAL"
|
||||
for i = 1, 3 do
|
||||
if math.random(1, 2) == 1 then
|
||||
plate = plate .. string.char(math.random(65, 90)) -- A-Z
|
||||
else
|
||||
|
@ -256,6 +257,7 @@ function GeneratePlate()
|
|||
return plate
|
||||
end
|
||||
|
||||
|
||||
-- Cleanup beim Ressourcen-Stop
|
||||
AddEventHandler('onResourceStop', function(resourceName)
|
||||
if GetCurrentResourceName() ~= resourceName then return end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue