event.tryPayment = function(source, price, minplayer) -- Make player pay bet if can and join game or awlay true if you wan't.
if minplayer == 1 then
event.showNotification(source, "Free to play")
return true
end
local xPlayer = ESX.GetPlayerFromId(source)
local money = xPlayer.getMoney()
if money > 0 and money >= price then
xPlayer.removeMoney(price)
return true
else
event.showNotification(source, "No money.")
return false
end
end
event.giveReward = function(source, money, rank) -- give money to player when win race
local xPlayer = ESX.GetPlayerFromId(source)
if rank == 1 then
xPlayer.addMoney(money*4)
elseif rank == 2 then
xPlayer.addMoney(money*3)
elseif rank == 3 then
xPlayer.addMoney(money*2)
else
xPlayer.addMoney(money)
end
end
Could you please change or make it configarable so that we can have a generic pic or background colour like soft black, or grey and the top bar instead of blue, maybe grey or black.
Donât get me wrong, the pic is great if playing Bowling, but this is racing orientated!
At end screen is says Rank, so how do we introduce a rank system, that shows after the race, in the winners pic etc?
Is there a way we can create a Race Playlist?
Anyway to show race results, or/and keep a record of them, maybe a way to save them to website
Also i noticed so far on a few tracks, there is traffic about and some obviusly weird traffic if the road is suddenly has a prop on it, maybe a call to no traffic when racing or summin?
A custom Nameplate, great credit to you for your number plate, but would be nice to have a choice of car plate?
i see that it says within various places to use keyboard letter R, thats great but I use a controller, so secondry keybinding for me is ( Y Controller) so maybe just a note someone that users can change it. I also think somewhere on start race pic, its shows it as R.
Could we please change the text that says âGame Roomâ to something more generic that would appeal to racing and maybe something like oh I donât know but even a way that is configurable to each persons needs, like for me its Racing only. As it also shows on may as âGame Roomâ with what looks like a drunk pacman. lol
Is there a reason it says âCreate Roomâ instead of âCreate Raceâ or âStart Raceâ
players can choose which car, from a class (Like pick 1 of 10 cars from class sports) etc
Also I feel the script is very limited as you are tied to one car per class, with what ever race track you choose) Thatâs no fun unfortunately so please to new users please be aware, as I didnât realise this.
If you mean like Checkpoint paths? when user has option of lets say left or right on a course where there are 2 checkpoints placed, they can choose either one!
If thatâs the case when I am creating my own map with check points how would I register, lets say 2 checkpoints at same place as oneâŚ