Hello Guys,
Welcome again to another tutorial.
Very simple, when you climb on top of the vehicle it activates and does not let you fall.
Client-side:
mp.events.add('render', gameplay);
function gameplay() {
const player = mp.players.local;
if(player.isHangingOnToVehicle()){//do not fall off the vehicle
player.isRagdoll();
player.setRagdollFlag(2);
}
}
good day to you
PS:google traduction