How to Get A water Proof Vehicle [CODE]
i am doing a series on how to make cool options in a mod menu
not skid.
1. Start By Adding The Vehicle Your In
Code:
Ped playerPed = PLAYER::PLAYER_PED_ID(); Vehicle playerVeh = NULL;
if (PED::IS_PED_IN_ANY_VEHICLE(playerPed, FALSE))
{
playerVeh = PED::GET_VEHICLE_PED_IS_USING(playerPed);
}
2. Make Your Bool
3. Give Your Functionality
Code:
if (WATERproof) { VEHICLE::SET_VEHICLE_ENGINE_ON(veh, TRUE, TRUE, TRUE);
}
if (!WATERproof) {
VEHICLE::SET_VEHICLE_ENGINE_ON(veh, FALSE, FALSE, FALSE);
}
4. Put This So When You Click The Option It Would Go Back and Forward
Code:
WATERproof = !WATERproof;