quarta-feira, 13 de dezembro de 2017

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:

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


Code:

Code:
bool WATERproof;
3. Give Your Functionality 
Code:

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:


Code:
WATERproof = !WATERproof;

0 comentários:

Postar um comentário