fivem
fivem copied to clipboard
Update SetVehicleAutoRepairDisabled.md
Added explanation on the effect of this native.
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.
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! 🙂