Tron/Deadline bike trails

Tron for FiveM

A basic implementation of the GTA:O Deadline gamemode, except it’s not the gamemode part, it’s just the trail effect for the shotaro and deathbike2 bikes.

Config options

There are no config options.
If you want to change something go look in the code.
I’ve marked 3 somewhat configurable constants in the main class.
I’ve also added comments to pretty much everything, so good luck.

Features

  • The trail color is based on the vehicle color combination by default, giving the vehicle a new secondary color will make it use that color instead.
  • Trail disappears when you get off your bike.
  • Music events are triggered whenever you get on the bike and they stop when you get off again.
  • Deadline screen effects.
  • You can only see your own trail. Effects are not synced with other players.
  • Trails ‘lean’ properly to follow the lean angle of your bike.

Demo

Changelog

1.0.1

  • Added the deathbike2 model.
  • Added support for more trail color options by detecting the secondary color of the vehicle if color combinations are not used.

1.0.0

  • Initial release.

Source

Download

Credits

The following code helped me to get a quick prototype working, further research into Rockstar’s decompiled scripts gave me the rest I needed. Thanks @mraes for this starting code: Using deadline adversary mode trails - #2 by Buggeroff

18 Likes

Ayeeeee Vespura back with another release :smiley: Looks dope

2 Likes

OMG Thats amazing :heart_eyes:

2 Likes

i creamed :confused:

dope!! thanks 5/5 :star2:

1 Like

Changes in version 1.0.1

  • Added the deathbike2 model (solves #1).
  • Added support for more trail color options by detecting the secondary color of the vehicle if color combinations are not used.

Download

1 Like

Fantastic work as always Vespura

Hello Vespura! First of all thank you for taking time to make the Tron trail work!
I would like to know if it is possible to convert this from C# to Lua, because i want to make it so everyone on the server can see each others trails. (Ps: Im not askig for you to convert it)
Just want to know if it is possible and i will try and learn how to do it if so.

Thank you in advance!

Yes it’s possible. You might have to do some extra work to get it working since I am using certain utility functions only available through the C# framework. But it’s definitely possible.

another awesome release by the legend himself !
thank you for sharing this great script!

Never thought a 2 year old experimental snippet would ever make it into one of your releases :slight_smile: Nice work, looks dope!

1 Like

Ok, thank you for the answer however im not being able to do it…
I will have to learn C# first and do the changes i want on it

Did you ever run into any crash issues with too many calls to _DRAW_SPRITE_POLY because that’s what always broke my multiple attempts… Perhaps your FPS limiter mitigates that? :sweat_smile: (note: its a good idea to read code comments before you ask questions)

Never had that issue because my game never runs above 60FPS anyway. I suppose it could be an issue if you had way more than that though. Even then my FPS limiter wouldn’t really help, because it’s still drawing it every frame. Just only a limited amount of total triangles are drawn each time because the position updating is limited to 30 per second.

Easy way to test that would be to increase the trail length to something absurdly high.

Hey short question is it possible to add a new bike or is it just these 2 bikes?