natives icon indicating copy to clipboard operation
natives copied to clipboard

Update SetParticleFxLoopedColour.md

Open XenoS-ITA opened this issue 2 years ago • 2 comments

added a more precise description for color ranges and also a tip on how to convert an rgb to the necessary range. for the external link it would be better to find a method to make it "permanent" i read the advice to add it to the fivem documentation but idk where to put it

XenoS-ITA avatar Jul 30 '23 16:07 XenoS-ITA

This seems to be correct, r, g, b values need to range from 0.0 to 1.0 given how they are multiplied by 255.0 in game code.

i.e.

v11[151] = (r * 255.0); // red

p4 apparently needs to be false for this block of code to even execute.

4mmonium avatar Jul 30 '23 19:07 4mmonium

probably then the p4 is the parameter that decides whether the values are "normalized" so 0.0 to 1.0 or whether they are normal rgb values

XenoS-ITA avatar Aug 01 '23 01:08 XenoS-ITA