Sign in to follow this  
materia

[solved] Player::canKnockOffVehicle

Recommended Posts

So i tried to prevent the player falling off a bati...

//clientside
mp.players.local.canKnockOffVehicle(false);

as well as

//clientside
mp.players.local.canKnockOffVehicle(true);
// serverside
mp.players[0].canKnockOffVehicle(false);

and

// serverside
mp.players[0].canKnockOffVehicle(true);

Nothing helps, the player will always fall off the bike when crashing... Yes I know it is not a serverside function and it wasnt available as one. No error clientside though and the function exists there...

Also tried

// clientside
mp.events.add("render", function() { mp.players.local.canKnockOffVehicle(false); });

The same result. It's not working to prevent the player to fall off the bike.

What am I doing wrong?

 

Edit: Solved.

mp.game.invoke("0x7A6535691B477C48", mp.players.local.handle, 0); // can fall off bike
mp.game.invoke("0x7A6535691B477C48", mp.players.local.handle, 1); // can NOT fall off bike

May it help anyone who would have answered if he knew. :)

Edited by materia
solved...

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.