PercyBerkeley Posted May 24 Posted May 24 (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 May 24 by PercyBerkeley
PercyBerkeley Posted May 24 Author Posted May 24 For those who may find it useful in the future, the solution is this: mp.players.local.setConfigFlag(35, false); P
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now