Jump to content

Recommended Posts

Posted (edited)

Hey guys, I've been trying to disable the character's automatic helmet placement when getting on a motorcycle for several days, but I haven't been able to. Does anyone know the correct way to do this?

Client-side:

 

Quote
mp.events.add('playerEnterVehicle', (vehicle, seat) => {
    if (vehicle.getClass() === 8 && seat === -1) {
        mp.players.local.taskClearLookAt();
        setTimeout(() => {
            
            mp.game.invoke("0xA7B2458D0AD6DED8", mp.players.local.handle, true); // REMOVE_HELMET(player, instantly)
        }, 1000);
    }
});

 

Edited by PercyBerkeley

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...