I am currently not working on fivem anymore due to real life work and whatnot.
I am too lazy to search for the files but it was pretty easy to remove the native explosion sound in lua and trigger a nui event to play mutiple different “pops and bangs” mp3 files. to give some diversity, i randomized what sound to play and even randomized the volume and pitch. i also bound the flame size to the loundness of the bang i got after randomizing it. quite bang = small to no flame, loud bang = big flame.
those sounds are not native and played on every peds position “0,0,0” virtually speaking because its played on a website (nui). ive played with the idea to make use of 3d sound but the triangulation math is something that bothered me alot. i tried to get help from this guy and his repository but that didnt go far: https://github.com/plunkettscott/interact-sound/issues/11
i also checked how many exhausts a car has and attached the flame to all “bones”. that leads to some interesing bugs where custom cars might have that bone but at a completly wrong position, causing a flame inside the cabine. so if someone remakes the script, they should probably make a little menu where you can enable or disable those bones for specific cars. or test all cars on the server and make a fixed json list, like i did.
that should have answered all questions. you can figure out the rest by googeling and making your own script. its not that hard, you just need to be open to learn something new
just letting everyone know if you run your server off zap hosting and update to 29.6.7 the 2 step script will not work properly, you cant add cars to config and if you remove a car from config it will still have 2 step, so if you want to work stay on 28.8.2
hey. this driving me crazy. i want to make it not sync to other player. i have removed completely all server side related and other users still can hear. if u can help me i will be appreciated. here what i did so far antilag.rar (1.7 KB)