I suggest instead making a config for it, to make different racing points where you need to use your vehicle or a given one. That would give the players the Chance to try both of it.
Nice Release!
In the config, there is Config.OnlineRace, where you can change players required, positions etc and there’s where you change. Default there is one ‘street_race’ and one ‘event’
@Loffes, I have a problem. After offline race countdown with bikes, I can’t go forward. It forces me to stay on the start line. Backwards, no problem, but yeah…
It’s like I would be constantly going against invisible wall in front of me. I haven’t changed anything, besides the point for starting offline race…
local locked_speed = GetVehicleMaxSpeed(GetEntityModel(playerVehicle))/3.6 - 15/3.6 -- 15km/h slower than maximum speed
SetEntityMaxSpeed(playerVehicle, locked_speed) -- otherwise it is 99% that you win against npc
Now just need to get rid of checkpoints after getting of the bike