When devs implemented GUI., textdraws have been moved to client-side scripting.
This system will no longer work, since version 04rel004.
This system will no longer work, since version 04rel004.
Nitrous Oxide Systems
There are 2 versions:
[spoiler=Simple]![Smiley :)](https://forum.vc-mp.org/Smileys/fugue/smiley.png)
Just press ALT KEY and the nitro will be activated.
The bar will be shown, but will not decrease. For that, use the "Real" version of this script.
[/spoiler][spoiler=Real]
There are 10 units on the nitro bar, representing the quantity of nitro remained.
Once the tank is emty, you have to wait until it's refilled.
( but do not wait to see it refilling. I decided to not use another timer, so I used time(). You can check the tank by pressing ALT KEY or re-entering car )
The tank is decreasing even if there is no driver, as it should be.[/spoiler]
Code Select
http://pastebin.com/yUVWi8Cq
You can use the nitro whenever you want. ![Smiley :)](https://forum.vc-mp.org/Smileys/fugue/smiley.png)
Just press ALT KEY and the nitro will be activated.
The bar will be shown, but will not decrease. For that, use the "Real" version of this script.
[/spoiler][spoiler=Real]
Code Select
http://pastebin.com/sTredBbS
You can use the nitro just once at very 60 seconds. (you can change the value)There are 10 units on the nitro bar, representing the quantity of nitro remained.
Once the tank is emty, you have to wait until it's refilled.
( but do not wait to see it refilling. I decided to not use another timer, so I used time(). You can check the tank by pressing ALT KEY or re-entering car )
The tank is decreasing even if there is no driver, as it should be.[/spoiler]
To make this (smoother) nitro script, instead of just speed boosting vehicles, I have played with vehicle's handling data.
I set it to increase Acceleration and MaxSpeed, and when the nitro is deactivated, all values returns to normal.
I set it to increase Acceleration and MaxSpeed, and when the nitro is deactivated, all values returns to normal.
You need to copy the needed (2) sprites !