Installation

Add this to your sql:

CREATE TABLE IF NOT EXISTS `time_trials` (
    `id` INT AUTO_INCREMENT PRIMARY KEY,       
    `player_identifier` VARCHAR(50) NOT NULL,   
    `player_name` VARCHAR(50) NOT NULL,         
    `trial_name` VARCHAR(50) NOT NULL,          
    `time` FLOAT NOT NULL,                      
    `created_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
    UNIQUE KEY `unique_entry` (`player_identifier`, `trial_name`)
);

You will need to go to creator_sv.luato add the list of people you want to be able to make tracks Example:

local AllowedTimeTrialCreators = { -- you can use rockstar license, fivem license, steam id, or discord id
    ["license:a8cebabd3f4952af82bb078aa14f156cfa84b8c7"] = true,  
}

Enjoy! You can let us know if theres any issues or if you have any questions here

Last updated