natives
natives copied to clipboard
Update SetParticleFxLoopedColour.md
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
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.
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