Ultimate Nitro | v3.1

Hello,
This script allows you to use nitro, what makes you drive faster.
Almost everything is configurable.

Configuration

Server

--- NITRO COINS ---
c_starter = 500 -- amount of coins, player get to start | default: 500

--- COMMANDS ---
c_pay = true -- allow everyone to give their money to others by using the command /nitro pay {playerID} {amount} | default: true
c_add = {
	"license:6917e9c059e05a93c3bc8b4947bbb9b35628aada",
} -- add players here (license), to give them permissions for the command /nitro add {playerID} {amount}
c_remove = {
	"license:6917e9c059e05a93c3bc8b4947bbb9b35628aada",
} -- add players here (license), to give them permissions for the command /nitro remove {playerID} {amount}
c_set = {
	"license:6917e9c059e05a93c3bc8b4947bbb9b35628aada",
} -- add players here (license), to give them permissions for the command /nitro set {playerID} {amount}

Client

--- MULTIPLICATORS ---
m_x = 0.05 -- x location to list multiplicators | default: 0.05
m_y = 0.24 -- y location to list multiplicators | default: 0.24

m_y_add = 0.032 -- y to add per multiplicator | default: 0.01

m_r = 255 -- r color to list multiplicators | default: 255
m_g = 100 -- g color to list multiplicators | default: 100
m_b = 100 -- b color to list multiplicators | default: 100

m_opacity = 255 -- opacity to list multiplicators | default: 255
m_font = 4 -- font to list multiplicators | default: 4
m_size = 0.6 -- size to list multiplicators | default: 0.6

m_symbol = "•" -- symbol to list multiplicators | default: "•"

--- REFILL ---
r_empty = true -- refill when empty | default: true
r_burnout = true -- refill when doing burnout | multiplicator | default: true
r_drift = true -- refill when drifting | multiplicator | default: true
r_purge = true -- refill when purging | multiplicator | default: true
r_notdriving = false -- refill when standing still | default: true
r_fastdriving = true -- refill when driving fast | multiplicator | default: true
r_fastdriving_speed = 29.0 -- speed to count as fast driving | default: 29.0
r_notusing = false -- refill when not using nitro | default: true
r_flying = true -- refill when in air | multiplicator | default: true
r_flying_height = 2.0 -- height to count as flying | default: 2.0

--- HOTKEYS ---
k_nitro = 21 -- key to activate nitro | default: 21 (L-SHIFT)
k_purge = 36 -- key to activate purge | default: 36 (L-CTRL)
k_buy = 38 -- key to buy / refill nitro with nitro-coins | default: 38 (E)
k_buy_name = "~INPUT_CONTEXT~" -- key to buy / refill nitro with nitro-coins | default: "~INPUT_CONTEXT~" (E)

--- PARTICLES ---
p_flame_location = {
	"exhaust",
	"exhaust_2",
} -- vehicle bones for flames
p_flame_particle = "veh_backfire" -- particle name | default: "veh_backfire"
p_flame_particle_asset = "core" -- particle category | default: "core"
p_flame_size = 2.0 -- size of the flames | default: 2.0

p_purge_location = {
	"overheat",
} -- vehicle bones for purge
p_purge_particle = "ent_sht_steam" -- particle name | default: "ent_sht_steam"
p_purge_particle_asset = "core" -- particle category | default: "core"
p_purge_size = 0.4 -- size of the purge | default: 0.4

--- EFFECTS ---
e_indicators = true -- enable indicators (left and right) on nitro | default: true
e_flames = true -- enable flames on nitro | default: true
e_purge = false -- enable purge on nitro | default: false
e_sound = true -- enable sound on nitro | default: true

--- NITRO ---
n_boost = 15.0 -- boost on nitro | default: 15.0

n_x = 0.05 -- x location to show nitro | default: 0.05
n_y = 0.2 -- y location to show nitro | default: 0.2

n_r = 82 -- r color to show nitro | default: 82
n_g = 219 -- g color to show nitro | default: 219
n_b = 255 -- b color to show nitro | default: 255

n_opacity = 255 -- opacity to show nitro | default: 255
n_font = 4 -- font to show nitro | default: 4
n_size = 0.8 -- size to show nitro | default: 0.8

--- NITRO COINS ---
c_use = true -- use nitro coins | default: true
c_symbol = "N¶" -- symbol for nitro coins | default: "N¶"
c_prize_buy = 300 -- price to add nitro to your car | default: 300
c_prize_refill = 100 -- price to refill nitro in your car | default: 100
c_earn_burnout = false -- earn nitro coins by doing burnouts | default: false
c_earn_drift = true -- earn nitro coins by drifting | default: true
c_earn_fastdriving = false -- earn nitro coins by driving fast | default: false
c_earn_purge = false -- earn nitro coins by purging | default: false
c_earn_fly = true -- earn nitro coins when flying | default: true

c_x = 0.05 -- x location to show nitro coins | default: 0.05
c_y = 0.16 -- y location to show nitro coins | default: 0.2

c_r = 218 -- r color to show nitro coins | default: 218
c_g = 165 -- g color to show nitro coins | default: 165
c_b = 32 -- b color to show nitro coins | default: 32

c_opacity = 255 -- opacity to show nitro coins | default: 255
c_font = 4 -- font to show nitro coins | default: 4
c_size = 0.8 -- size to show nitro coins | default: 0.8

--- VEHICLES ---
v_blacklisted = {
	"raiden",
	"rhino",
	"surge"
} -- vehicles that are not allowed to have nitro
v_whiteorblack = "black" -- use c_blacklisted as black or whitelist? | default: "white"
						 -- "black" = vehicles in v_blacklisted cannot have nitro
						 -- "white" = only vehicles in v_blacklisted can have nitro

--- MAP ---
m_blipcolor = 78 -- color of the gas station blips | default: 78
m_blips = true -- enable / disable blips | default: true

--- COMMANDS ---
c_suggestion = true -- enable / disable suggestions | default: true
c_suggestion_pay = true -- enable / disable suggestion for /nitro pay (if you disabled the command in the server.lua) | default: true
Commands
  • Add coins to a player (with permission):
/nitro add {playerID} {amount}

Example: Giving 100 coins to player with ID 3:

/nitro add 3 100
  • Remove coins from a player (with permission):
/nitro remove {playerID} {amount}

Example: Removing 100 coins from player with ID 3:

/nitro remove 3 100
  • Set coins from a player (with permission):
/nitro set {playerID} {amount}

Example: Setting coins from player with ID 3 to 0:

/nitro set 3 0
  • Gift some of your coins to another player (no permission, removes the amount of coins from your account and adds it to the other players account):
/nitro pay {playerID} {amount}

Example: Gift 100 of your coins to player with ID 3:

/nitro pay 3 100

If you find any bugs or have a problem / a suggestion, let me know (I was not able to test it with multiple players) :wink:

ultimateNitro.zip (7.5 KB)

The first time a player joins, the script should create a new folder right there, where your server.cfg is. If this does not happen, your run.cmd / run.sh needs more permissions to create a folder / file.

Change-Log

v3.1

  • Fixed entity not found message (includes performance fix)
  • Fixed nitro text when you’re not in a vehicle
    Thanks to docburn for reporting those two bugs :wink:

v3.0

  • Almost full recode
  • Fixed start-script problem
  • Fixed gasstation regions
  • Fixed blacklist
  • Added whitelist
  • Added suggestions
  • If someone bought nitro for a vehicle, that get’s blacklisted later, he will get his money back
  • Fixed indicators, when nitro is empty
  • Fixed performance issues (hopefully)

v2.1

  • Fixed nitro when not using coins
  • Added commands (add | remove | set | pay)
  • Performance update (i don’t think i fixed it completly)

v2.0

  • Completly recoded from 0
  • Fixed sync
  • Bigger configuration
  • Fixed “resource time warning”
  • Added money system
  • Added gas stations
  • Added “flight”-multiplicator

v1.1

  • Fixed “resource time warning”
  • Fixed particles
  • Added purge hotkey
  • Added ability to change the location of the nitro text
  • Added sync
  • Fixed maximum speed
Planned for the future
  • Nothing yet, pls let me know about your ideas and wishes.

Idea by sheriff.smiley

18 Likes

Good job, thx!

2 Likes

it doesnt sync between passengers or other players… but it works pretty good

Is there a possible way to get rid of the “Nitro” text in the corner through configuration? If so that’d be great. Anyways cool script!

What is your graphic mod please ? Good release btw

Just what i need thanks!

I am working on sync, i’ll let you know when i have the new sync version.

Natural Vision Remastered.

I will update this, i’ll let you know when i updated it.

1 Like

Appreciated!

anyway to make this a item in the shops to buy for ESX framework?

1 Like

I don’t think i’ll add this, that is going to be alot of work.

Alright, new version is here. For a complete list of patched view change log.

Finished sync, just download v1.1. To see all patch notes, view change log.

Verry nice job. :slight_smile:

You can make something to can buy this nitro from Los Santos Custom?

I will try to put it into ESX Los Santos Customs.

heres a suggestion, can you make it so it requires an item, once the player uses this item then it fills the NOS tank?

How do you mean “an item”?

Meaning… You have to go to the store… Buy the Nos… then you would need to use the nos in order to have boost.

Hmm… but then you need like an inventory.
How about, if you have to go to a gas station to fill it up?