Skip to content

Commit

Permalink
set license plate and set bus color
Browse files Browse the repository at this point in the history
  • Loading branch information
propstg committed Dec 19, 2018
1 parent 2f95419 commit 8f79e26
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/bus.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Bus.bus = nil
function Bus.CreateBus(coords, model)
ESX.Game.SpawnVehicle(model, coords, coords.heading, function(createdBus)
Bus.bus = createdBus
SetVehicleNumberPlateText(Bus.bus, string.format('BLARG%03d', math.random(0, 999)))
SetVehicleColours(Bus.bus, 12, 12)
Bus.WaitForFirstEntryAndFillTankIfNeededAsync()
end)
end
Expand Down

0 comments on commit 8f79e26

Please sign in to comment.