Hi community!!! Im looking if there is a way to edit the tires or wheels in a vehicle to make it bullet proof resistance
SetVehicleTyesCanBurst is your answer for the logic behind it.
Shalll i put it in some of this meta over here?
Nope, it’s a native, which means it goes into Lua code. If you dont know what you’re doing, learn the basics of Lua and how FiveM resources work first - dont try to bruteforce it. Or just ask someone for help
Someone told me to edit it in 3D model, just gotta learn how to make it without breaking it all
That would be significantly more hassle than doing it via Lua code; editing GTAV vehicles is something that can only be done in a single program (that isn’t free and has no “demo” version either) called ZModeler. My advice - look how to do what you want to achieve via code, editing the model isn’t worth the trouble in most cases.
You don’t need to edit the model, either do it through using the native or (my preferred method) is to edit the handling.meta of a vehicle.
You need to make the 7th digit from the right a 2:
No bullet proof tires:
<strModelFlags>220010</strModelFlags>
<strModelFlags>440010</strModelFlags>
Bullet proof tires:
<strModelFlags>2220010</strModelFlags>
<strModelFlags>2440010</strModelFlags>
This will make a vehicle’s tires default spawn as bulletproof. You can see all the flags on plebmasters:
Please note when looking at that list you should generate the flag, these values:
Are unusable. You should just match the position and number of the hexadecimal value. I think plebmasters is planning to change the generator for that page in the future.
Yes should work, spawn the vehicle and shoot the tires. I’ve found some resources (some admin menus) will not apply flags from handling.meta, so if it doesn’t spawn with bullet proof tires you can try spawning though qb garages or whatever.