fivem icon indicating copy to clipboard operation
fivem copied to clipboard

Update SetVehicleAutoRepairDisabled.md

Open TomStilson opened this issue 3 years ago • 1 comments

Added explanation on the effect of this native.

TomStilson avatar Feb 14 '22 15:02 TomStilson

This is not how the native works. When set to true it won't repair the vehicle when you enable extra's. It won't stop you from enabling extra's on damaged vehicles.

FlavioMoretti avatar Aug 13 '22 22:08 FlavioMoretti

All this native does is prevent vehicle repairs from happening when extras are enabled on a vehicle. There's a collection that takes vehicle entities to skip g_skipRepairVehicles and once the repair method comes along it's checked whether a vehicle should be repaired or not by checking if said pointer is in the collection.

Then it will just jump the repair method if set to true, meaning said vehicle ended up in the g_skipRepairVehicles collection.

It doesn't really mean you cannot enable vehicle extras on damaged vehicles per se. I believe this PR should be closed, but thank you for your contribution anyway! 🙂

4mmonium avatar Nov 03 '23 18:11 4mmonium