JensDerZocker Posted February 25, 2020 Share Posted February 25, 2020 I try to freeze a player but it doesn't work This function is not working on Client side please help me mp.players.local.freezePosition(true); Link to comment Share on other sites More sharing options...
$kylar Posted February 26, 2020 Share Posted February 26, 2020 (edited) Did you add an event handler? public class Main : Events.Script { public Main() { Events.Add("FreezePlayerClient", FreezePlayer); // Call this event from server-side // } public void FreezePlayer(object [] args) { Player.LocalPlayer.FreezePosition((bool)args[0]); } } Edited February 26, 2020 by $kylar Link to comment Share on other sites More sharing options...
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