CritteR's Impromptu Races is a simple 1 vs. 1 racing resource that aims to provide an easy environment for players to challenge their driving skills! Simply add a waypoint where you want to end the race, challenge a player (with money or not), and start racing!
Installing the resource:
- Add the resource in your
resourcesfolder. - (Optional) Connect the resource with your framework of choice in the
public/server_connection.luaandpublic/client_connection.luafiles. - (Optional) Modify the UI elements in the
public/client_pracing_public_ui.luaandpublic/client_pracing_public_menu.luafiles. - (Optional) Change the resource config and localization strings in the
public/sh_utils.luafile.
Usage:
- Go next to a player and use the command
/race [source / player name] (entry bet)by default (command name is editable insh_utils.lua) - The player that you challenged will receive your request and they will be allowed to see the entry bet and the finish line.
- The player that you challenged has to drive next to you in order to accept the challenge.
- The challenge request will be canceled if the user doesn’t answer in 30 seconds. A player cannot start more than one race at one time.
- After the challenged accepts your request, the race countdown will start.
- First to reach the finish line wins and receives the other user’s entry bet money (if bets are allowed).
What can I modify?
All of the UI, all text strings, the command name, and all the functions needed for you to connect this to your framework. Other parts of the code can be opened on request. The resource also has a couple of hooks that allows you to see every race that is initiated, accepted, rejected, aborted and finished.
What can't I modify?
Server-side race logic, blips and checkpoints, and the client-side race logic.
Screenshots:


