Jump to content

Recommended Posts

Posted

I'm trying to use the outgoing sync disable function, but nothing happens/works. Maybe I'm missing something?


function - https://wiki.rage.mp/wiki/Player::disableOutgoingSync

my code -

mp.events.addCommand("disoc", (player) => {
    if (!player || !mp.players.exists(player)) return;
    player.disableOutgoingSync = !player.disableOutgoingSync;

    if (player.disableOutgoingSync) {
        player.outputChatBox("Outgoing sync has been disabled.");
    } else {
        player.outputChatBox("Outgoing sync has been enabled.");
    }
});

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...