please , the offsets for a proper god mode for the car , currently , every single mod menu have some flaw wen it come about cars god mode : some mod menu just instantly repair the car once it get damaged , some other mods only make immune all the parts of the car except some other parts , we need something that make completelly immune the car once you are inside it ( so also no visual damages ) and that make it vulnerable again once you get out of the car , and all this for the 1.27 ps3 version of the game , pretty please
This was pulled from an Open Source GTA V menu I found. It's for PC, but porting it should be pretty straight forward
// player's vehicle invincible if (featureVehInvincibleUpdated) { if (bPlayerExists && !featureVehInvincible && PED::IS_PED_IN_ANY_VEHICLE(playerPed, 0)) { Vehicle veh = PED::GET_VEHICLE_PED_IS_USING(playerPed); ENTITY::SET_ENTITY_INVINCIBLE(veh, false); ENTITY::SET_ENTITY_PROOFS(veh, 0, 0, 0, 0, 0, 0, 0, 0); VEHICLE::SET_VEHICLE_TYRES_CAN_BURST(veh, 1); VEHICLE::SET_VEHICLE_WHEELS_CAN_BREAK(veh, 1); VEHICLE::SET_VEHICLE_CAN_BE_VISIBLY_DAMAGED(veh, 1); } featureVehInvincibleUpdated = false; } if (featureVehInvincible) { if (bPlayerExists && PED::IS_PED_IN_ANY_VEHICLE(playerPed, 0)) { Vehicle veh = PED::GET_VEHICLE_PED_IS_USING(playerPed); ENTITY::SET_ENTITY_INVINCIBLE(veh, true); ENTITY::SET_ENTITY_PROOFS(veh, 1, 1, 1, 1, 1, 1, 1, 1); VEHICLE::SET_VEHICLE_TYRES_CAN_BURST(veh, 0); VEHICLE::SET_VEHICLE_WHEELS_CAN_BREAK(veh, 0); VEHICLE::SET_VEHICLE_CAN_BE_VISIBLY_DAMAGED(veh, 0); } } // player's vehicle invincible wheels, usefull with custom handling if (featureVehInvincibleWheelsUpdated) { if (bPlayerExists && !featureVehInvincibleWheels && PED::IS_PED_IN_ANY_VEHICLE(playerPed, 0)) { Vehicle veh = PED::GET_VEHICLE_PED_IS_USING(playerPed); VEHICLE::SET_VEHICLE_TYRES_CAN_BURST(veh, true); VEHICLE::SET_VEHICLE_WHEELS_CAN_BREAK(veh, true); VEHICLE::SET_VEHICLE_HAS_STRONG_AXLES(veh, false); } featureVehInvincibleWheelsUpdated = false; } if (featureVehInvincibleWheels) { if (bPlayerExists && PED::IS_PED_IN_ANY_VEHICLE(playerPed, 0)) { Vehicle veh = PED::GET_VEHICLE_PED_IS_USING(playerPed); VEHICLE::SET_VEHICLE_TYRES_CAN_BURST(veh, false); VEHICLE::SET_VEHICLE_WHEELS_CAN_BREAK(veh, false); VEHICLE::SET_VEHICLE_HAS_STRONG_AXLES(veh, true); } }