Kevin1006 0 Posted September 10, 2015 Share Posted September 10, 2015 Hi, How I can make Invincible car on MAFINS [Menya Baes] ? Link to post Share on other sites
bilago 25 Posted September 10, 2015 Share Posted September 10, 2015 Hi, How I can make Invincible car on MAFINS [Menya Baes] ? No idea what "MAFINS" is but this is how you make an entity invisible... thisVehicle.IsVisible = false; Link to post Share on other sites
Kevin1006 0 Posted September 10, 2015 Author Share Posted September 10, 2015 Hi, How I can make Invincible car on MAFINS [Menya Baes] ? No idea what "MAFINS" is but this is how you make an entity invisible... thisVehicle.IsVisible = false; Invincibile car.. Not invisible Link to post Share on other sites
pillow 8 Posted September 10, 2015 Share Posted September 10, 2015 Use C++ instead, C# is a sh*t Link to post Share on other sites
Kevin1006 0 Posted September 10, 2015 Author Share Posted September 10, 2015 Can u help me? Link to post Share on other sites
alloc8or 425 Posted September 10, 2015 Share Posted September 10, 2015 MenyaBeas isn't code in C#... Use SET_ENTITY_INVINCIBLE(veh, 1) veh is the vehicle you're in. Link to post Share on other sites
Kevin1006 0 Posted September 10, 2015 Author Share Posted September 10, 2015 (edited) bool CarOn = 0, CarOff = 0; ----------------------------------- AddLocal("Car Godmode", IS_PED_IN_ANY_VEHICLE(PLAYER_ID()), CarOn, CarOff); ---------------------------------------- if (CarOn){ if (IS_PED_IN_ANY_VEHICLE(PLAYER_PED_ID(), 0)) { Vehicle veh = GET_VEHICLE_PED_IS_USING(PLAYER_PED_ID()); SET_ENTITY_INVINCIBLE(veh, TRUE); SET_ENTITY_PROOFS(veh, 1, 1, 1, 1, 1, 1, 1, 1); SET_VEHICLE_TYRES_CAN_BURST(veh, 0); SET_VEHICLE_WHEELS_CAN_BREAK(veh, 0); SET_VEHICLE_CAN_BE_VISIBLY_DAMAGED(veh, 0); PrintStringBottomCentre("Invicible Car ~b~On "); return; } else if (CarOff) { if (IS_PED_IN_ANY_VEHICLE(PLAYER_PED_ID(), 0)) { Vehicle veh = GET_VEHICLE_PED_IS_USING(PLAYER_PED_ID()); SET_ENTITY_INVINCIBLE(veh, FALSE); SET_ENTITY_PROOFS(veh, 0, 0, 0, 0, 0, 0, 0, 0); SET_VEHICLE_TYRES_CAN_BURST(veh, 1); SET_VEHICLE_WHEELS_CAN_BREAK(veh, 1); SET_VEHICLE_CAN_BE_VISIBLY_DAMAGED(veh, 1); PrintStringBottomCentre("Invicible Car ~b~Off "); } } } Visualstudio: Intellisense error: insufficient arguments in the function call ... why? @ Unknown_Modder Edited September 10, 2015 by Kevin1006 Link to post Share on other sites
alloc8or 425 Posted September 10, 2015 Share Posted September 10, 2015 bool CarOn = 0, CarOff = 0; ----------------------------------- AddLocal("Car Godmode", IS_PED_IN_ANY_VEHICLE(PLAYER_ID()), CarOn, CarOff); ---------------------------------------- if (CarOn){ if (IS_PED_IN_ANY_VEHICLE(PLAYER_PED_ID(), 0)) { Vehicle veh = GET_VEHICLE_PED_IS_USING(PLAYER_PED_ID()); SET_ENTITY_INVINCIBLE(veh, TRUE); SET_ENTITY_PROOFS(veh, 1, 1, 1, 1, 1, 1, 1, 1); SET_VEHICLE_TYRES_CAN_BURST(veh, 0); SET_VEHICLE_WHEELS_CAN_BREAK(veh, 0); SET_VEHICLE_CAN_BE_VISIBLY_DAMAGED(veh, 0); PrintStringBottomCentre("Invicible Car ~b~On "); return; } else if (CarOff) { if (IS_PED_IN_ANY_VEHICLE(PLAYER_PED_ID(), 0)) { Vehicle veh = GET_VEHICLE_PED_IS_USING(PLAYER_PED_ID()); SET_ENTITY_INVINCIBLE(veh, FALSE); SET_ENTITY_PROOFS(veh, 0, 0, 0, 0, 0, 0, 0, 0); SET_VEHICLE_TYRES_CAN_BURST(veh, 1); SET_VEHICLE_WHEELS_CAN_BREAK(veh, 1); SET_VEHICLE_CAN_BE_VISIBLY_DAMAGED(veh, 1); PrintStringBottomCentre("Invicible Car ~b~Off "); } } } Visualstudio: Intellisense error: insufficient arguments in the function call ... why? @ Unknown_Modder Replied on Skype. Link to post Share on other sites
ISOFX 78 Posted September 10, 2015 Share Posted September 10, 2015 Menya Baes is coded in C++ not C#, to set your vehicle invincible you do this: ENTITY::SET_ENTITY_INVINCIBLE(VehicleHandle, true); and to turn it off simply change "true" to "false". Hope it helps! Link to post Share on other sites