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
|
end
|
||||||
|
|
||||||
-- Kennzeichen generieren
|
-- Kennzeichen generieren
|
||||||
|
-- Kennzeichen generieren (GEÄNDERT - RENTAL + 3 zufällige Zeichen)
|
||||||
function GeneratePlate()
|
function GeneratePlate()
|
||||||
local plate = ""
|
local plate = "RENTAL"
|
||||||
for i = 1, 8 do
|
for i = 1, 3 do
|
||||||
if math.random(1, 2) == 1 then
|
if math.random(1, 2) == 1 then
|
||||||
plate = plate .. string.char(math.random(65, 90)) -- A-Z
|
plate = plate .. string.char(math.random(65, 90)) -- A-Z
|
||||||
else
|
else
|
||||||
|
@ -256,6 +257,7 @@ function GeneratePlate()
|
||||||
return plate
|
return plate
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
-- Cleanup beim Ressourcen-Stop
|
-- Cleanup beim Ressourcen-Stop
|
||||||
AddEventHandler('onResourceStop', function(resourceName)
|
AddEventHandler('onResourceStop', function(resourceName)
|
||||||
if GetCurrentResourceName() ~= resourceName then return end
|
if GetCurrentResourceName() ~= resourceName then return end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue