[Release] Timetrials - Standalone Races and Leaderboard [v1.00]

Great Script!
But i want to change the position of HUD , how can i do that?

Hey we have already many people with different cars that set a time in the scoreboard.
I ramped the visibility for the list up to 60 entrys.
As soon as we reachead 31 entrys we encountered a “bug”. Some of them get crouched in top left corner of the screen
don´t know if i made a mistake or the scripts needs some work.

Hello!
Thanks for the amazing script, me and my friends loves it very much.

But I got a little question, since we install addon cars in our server.
The car’s name will be displayed as NULL and other will be displayed like a box in game

I’ve seen some of the comments and there should be a solution for this which is creating a vehicle_names.lua file.
But if I do so, its gonna cost me a lot of time and I dont want to do this.

So I came up with an idea, which is removing the car name displaying function from the script but I tried and couldnt make it.

I’m looking for helps / guides on this…

Thanks!

did someone have a code for this for ESX? i want to give money if player get top 3

How can you remove the teleport? If I remove it, the whole script will not work anymore!

would love to know how to change biding… This is absolutely annoying for controller player…

1 Like

hi there
i am getting this: SCRIPT ERROR: @Timetrials/timetrials_sv.lua:52: attempt to index a nil value (local ‘allScores’) when i am finish a trial.
is there a dependency that i missed?


fixed it by delete the scores.txt and the script create it again without errors.
Also there are some things like start the trial on foot,or start the trial with a super car ,race till the end switch to a blista and you will get unreal blista record.I don’t know if it is on dev hands to fix those things like vehicle check to start the trial or vehicle check to allow you place your time on leaderboards.
Really nice script btw.

I’ve been trying to get this to work with ESX and payouts upon completion, I’ve taken port_sv from your StreetRaces release, added it as a dependency in resource.lua, then in timetrials_sv.lua I’ve put addMoney(source, 10000) in the ‘If’ statement if you get the high score, however no money gets added. I must be doing something wrong D:

Hello, I have a question on your image we see the score etc, but I would like to put below the money that we earn by making the race how I do?

Second question: How do you make it so that when a player finishes the race that for example 400 dollars are added to his money?

Thank you for your reply!


The winner is all framed?

Sorry my english is not good

like a box in game

@peperonikiller
Not sure if you already solved this but its because in “racePlayerFinished” the source variable is referencing a name where it needs the player object. Just rename source to something like “msgsource” and it should work

¡Hi! How can I errase the times of the races??

Thank you for taking the time to make this fine modification. I have already enjoyed your work many times.

Hey Brent_Peterson,

First off all great script it’s also really easy to add new races to the menu.

But is there any way to add more laps to a race without duplicating checkpoints?

Copy everything between the starting and finish line, then paste it back between the last check point and finish line

kinda like this

 {
        title = "Copy ME",
        isEnabled = false,
        showWaypoints = true,
        checkpointRadius = 24.0,
        checkpointTransparency = 1.0,
        mapBlipId = 315,
        mapBlipColor = 5,
        start = { x = -592.65, y = 4459.75, z = 18.64, heading = 23.78, type = 5 },
        checkpoints = {                                                                                         
            {x = -590.58, y = 4483.37, z = 25.6, heading = 6.67, type = 5},
            {x = -580.2, y = 4508.14, z = 52.67, heading = 302.16, type = 5},
            {x = -563.38, y = 4531.7, z = 77.01, heading = 2.26, type = 9}
        }
    },

To this

{

        title = "Copy ME",

        isEnabled = false,

        showWaypoints = true,

        checkpointRadius = 24.0,

        checkpointTransparency = 1.0,

        mapBlipId = 315,

        mapBlipColor = 5,

        start = { x = -592.65, y = 4459.75, z = 18.64, heading = 23.78, type = 5 },

        checkpoints = {                                                                                         

            {x = -590.58, y = 4483.37, z = 25.6, heading = 6.67, type = 5},  --Lap one

            {x = -580.2, y = 4508.14, z = 52.67, heading = 302.16, type = 5},  --Lap one

            {x = -590.58, y = 4483.37, z = 25.6, heading = 6.67, type = 5},  --Lap Two

            {x = -580.2, y = 4508.14, z = 52.67, heading = 302.16, type = 5}, --Lap Two

            {x = -563.38, y = 4531.7, z = 77.01, heading = 2.26, type = 9}

        }

    },

Did anyone ever figure out how to set the payments up for ESX? Ive been trying for several hours now and my lack of lua knowledge has stopped me at every corner.

4 Likes

Hey, so how could i make it stop the race if someone goes into noclip? If you have any answers would help.

Kind Regards

Viktor

Why would you even noclip during a race? To be faster?

1 Like