[ESX] JAM_RaceMod

Set a waypoint, type /startRace wageramount (if any wager, or just /startRace if none), line your cars up, and wait for the countdown. Winner takes all.

Youtube Video
GitHub

Installation instructions can be found on the github link.

Note:

  • Starting countdown isn’t synced “properly”. Feel free to do that yourself ( and update my github for me :wink: )
  • This was “half-ass” tested on a local server. Feel free to follow the github support link to post any issues.
9 Likes

You need to check install instructions on the github page, this resource requires some of his others!

Yeah just noticed after post, gonna delete that. Mb.

1 Like

Not exactly sure what im messing up here. when i restart it, it comes up with an error saying the racemod config and server files

if video doesnt work click me

In your __resource.lua, you’re loading files in the directory JAM_RaceMod. In your JAM folder, you don’t have a JAM_RaceMod folder. Either remove the directory from the __resource.lua, or add the JAM_RaceMod folder and move the racemod items inside.

@Tolly
Didn’t hit “reply” last time, so just for notification sake.

Ah, right. That is what it was, im an idiot. Thanks!

Looks great.
To bad for the Requirements.

Keep up the good work.
Thanks for sharing.

Requirements don’t conflict with anything else (that I know of), why is that a bad thing? Not modular enough or don’t like following github pages around? (Genuine question, not a bite-back)
To be fair most of it could be shoehorned into one mod, it was just easier for me to do it this way.

Hey man if you can help me port your safe script to be used with the holdup system for esx please pm me

I think its mostly just people like to keep script count down, could very easily use something like pnotify or esx’s notification system, why doe sit require jam_base if I may ask?

True.
I use pnotify already so why should i install other scripts what does the same thing. Most of the scripts i use or install use pnotify.

I don’t see the point for the JAM_Base part. Not server or client side your calling any function from that base.

I actually modified my ESX.ShowNotification to something similar to JAM_Notify at some point, and to make this usable for “others”, I had to make make my version of ESX.ShowNotification modular OR add it into the script directly, so I made it modular because I already had another use for it (somebody wanted different police notifications).

If you used either pNotify (I haven’t used this so this is an assumption) or ESX.ShowNotification it’d probably just flood your screen with messages, seeing as a new notification is being pushed every frame for the final 5 second countdown. Again, could have been done with drawtext and drawsprite every frame for the same effect within the script, but then I couldn’t have used it anywhere else.

JAM_Base is for my convenience :P. I got tired of “getting ESX” every script and making a new __resource.lua every script, so I just use a base to plug everything else into for those tasks. Plus, at some point, I was using a variable in there “JAM.IsTesting” to check whether or not “to wait for SQL” or “dont wait for SQL, because this resource was probably restarted”. Plus, functions over events. Make of it what you will.

/end-in-depth-explaination-that-hopefully-should-cover-all.

2 Likes

how to automatically set GPS possition on marker for all cars ?

How to add many checkpoint?

Cleared cache and reset server and it works now, will there ever be the ability to race for cars?

How add Police Alert when finish race?

@Agony099 Thinking about adding pink-slip wagers in the near future, I think that’d be a cool addition…

@mtrx1337 The GPS position should automatically be set for all players.

@koras0 I assume you would trigger an event to whatever police notification system you’re using.

@Quang_Nguy_n With a lot of modification to the script :stuck_out_tongue:

Can you try and update your Github ?pls :c

is this ESX or NON ESX