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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.