23.09.2017, 17:56
(
Last edited by RIDE2DAY; 10/03/2019 at 02:29 PM.
)
vSync v0.03
[*] Introduction
Hello, as some of you know, I'm working on a racing gamemode so I've been working with vehicle functions a little bit. I came out with this small include, it syncs random colors, fixes some bugs but also adds some new features. I know this isn't a big deal, usually I share my small scripts. I might say I wrote this from scratch according to my needs, but many thanks to MP2 because this include is based on vFunc and I used some colors data I found there. Over time I added new things and bug fixes and it turned into what it is.
[*] Videos
[*] Bug fixes
- No more desynchronized vehicle colors when using -1 for the color parameters.
- Players won't collide anymore if they enter at once inside a mod shop.
- OnVehicleRespray isn't called anymore when you exit a mod shop if the colors didn't change.
- OnVehicleRespray isn't called anymore when a component is previewed inside a mod shop.
- Now the Firetruck (ladder variant) has the addsiren parameter set to true by default.
- Vehicles won't change their color to white anymore when a paintjob is removed.
- Bullbar components won't use anymore the same slots as front/rear bumpers (GetVehicleComponentInSlot).
- Now GetVehicleComponentInSlot works correctly when checking the CARMODTYPE_STEREO slot.
- Players won't crash anymore if someone tries to add an invalid component to a vehicle. v0.03
- Now Pay 'n' Spray shops apply random colors and call OnVehicleRespray.
- Now ChangeVehicleColor applies random colors when using -1 for the color parameters.
- When using random colors, vehicles get their own colors, those used single player.
- Two new vehicle component slots: CARMODTYPE_FRONT_BULLBAR, CARMODTYPE_REAR_BULLBAR. Check "Modified Functions" in the documentation.
- Neon lights related functions (with offsets for all vehicles and Streamer support).
- New functions and callbacks (check the documentation section). v0.03
Get your ALS or YSI version now from GitHub!
If you don't know what YSI is or if you're not using it, just get the ALS one. The YSI version uses y_bit, y_hooks and y_iterate. Include this script after Incognito's Streamer if you're using it, that way the neon objects will be streamed objects instead of standard ones.
[*] Documentation
Feel free to check the documentation in order to know how the new functions work, make sure you don't miss the Notes section.
[*] Other
Thank you for reading my thread, if you want to support what I do you might buy me a coffe! Join to my Discord server if you want to follow the development of my gamemode.
If you find any bug, please let me know.
Best regards.