Plane "Stunt Smoke" trails, Now V1.1!

But … he wasn’t replying to that post? He was replying to this:

2 Likes

lul

1 Like

Don’t bully me

1 Like

An update may be coming soon :wink:

https://images.illusivetea.me/7Be7j1.png

Spot the difference :slight_smile:

1 Like

I don’t see it :open_mouth:

Changed to countermeasure smoke from gtao :o

:o sexy

Just doing some syncing tests :stuck_out_tongue:
https://images.illusivetea.me/2l81g9.png

:00000000000000000000000000000000000000000 speechless

The resource is now updated!

This changes a few things, but most importantly, GTA Online’s Countermeasure smoke is now being used over the previous smoke trails from tire smoke.

Sadly, there seems to be one downside: Not all colours will work anymore. Ive not fully tested this, however it doesnt seem to change to every colour. I found a list of RGB Values in decompiled scripts, which i think could be related to the colours it can be:

255, 255, 255
255, 165, 0,
255, 255, 0,
0, 0, 255
255, 0, 0,
0, 0, 0
128, 0, 128
0, 255, 0
255, 0, 255
0, 255, 255

So, yeah.

Along with this, there is now a set list of models which can be used. This is simply as i yoinked the offsets from the GTAO script and these were the present ones, You can probably easily create your own but heres a list of vehicles it works with by default:
cuban800, mogul, rogue, starling, seabreeze, tula, bombushka, hunter, nokota, pyro, molotok, havok, alphaz1, microlight, howard, avenger, akula, thruster, oppressor2, volatol

Misc change: Values above 5 will no longer be accepted, and will default back to 5.0 instead of a value higher.

Images



Have fun!

5 Likes

Thanks so much for this!!!

:grinning:

Remember you could use only one decor to store rgb and size and check if that exists instead of using another Boolean one, so for example you will only use smoke_trail decor

example

max_size = 5.0
-- normalized_size is byte (0-255)

-- GET
local decor = DecorGetInt(veh, "smoke_trail")
local red = ((decor >> 24) & 0xFF)
local green = ((decor >> 16) & 0xFF)
local blue = ((decor >> 8) & 0xFF)
local normalized_size = (decor & 0xFF)
-- In case you need the size as float with a max of 5.0 you could use ...
local size = normalized_size*max_size/255

-- SET
local decor = ((red & 0xFF) << 24) | ((green & 0xFF) << 16) | ((blue & 0xFF) << 8) | ((normalized_size & 0xFF))
DecorSetInt(veh, "smoke_trail", decor)

-- UPDATE SIZE ONLY
-- get size ...
-- if you get the size as float 
local normalized_size = size*255/max_size
-- TODO: Remove decimals to normalized_size
local decor = DecorGetInt(veh, "smoke_trail")
decor = ((decor & 0xFFFFFF00) | (normalized_size & 0xFF))
DecorSetInt(veh, "smoke_trail", decor)

-- UPDATE COLOR ONLY
-- get red green blue ...
local decor = DecorGetInt(veh, "smoke_trail")
decor = ((decor & 0x000000FF) | ((red & 0xFF) << 24) | ((green & 0xFF) << 16) | ((blue & 0xFF) << 8))
DecorSetInt(veh, "smoke_trail", decor)

So good :)) thanks m8

Here have some pictures of our server having fun



I’ve tried to get this to work on OneSync, but it doesn’t seem to work :thinking: Works fine on FX though. Didn’t change anything in the resource btw

how do i want to apply this script to my own fivem server

Nice release!!!

I Know someone who wants to add new Planes to this script, but we dont know how to find the Offsets of those planes.

Wherer do we find them, or is it not necessary?

Doesnt work for me :frowning: I see no smoke, nothing

I’ve put it in my server mods folder but it nothing happens in game?

For those of you who are having troubles getting this to work with OneSync, check out my fork here: