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.");}});
Function dont work.
in Scripting
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 -