Gravestone Posted July 26, 2016 Share Posted July 26, 2016 I'm adding a setting which allows you to customize your FPS limit. How can I make setFPSLimit work for the local player only? Link to comment
ednatmp Posted July 26, 2016 Share Posted July 26, 2016 Hello Gravestone , setFPSlimit for each player is not possible, the only thing I know there is global setFPSlimit . Link to comment
John Smith Posted July 26, 2016 Share Posted July 26, 2016 Hello Gravestone , setFPSlimit for each player is not possible, the only thing I know there is global setFPSlimit . Nonsense. Use setFPSLimit function on client side, and make sure that the FPS on client side is lower than the server's FPS Limit. Link to comment
Gravestone Posted July 26, 2016 Author Share Posted July 26, 2016 I don't understand, do we need to define the localPlayer in setFPSLimit or what? Link to comment
John Smith Posted July 26, 2016 Share Posted July 26, 2016 You know, by the time someone like me would answer, you could have already tested out this by yourself and you would benefit from it. Also, if you check the wiki page of setFPSLimit, you'll find out that it only has one argument; fps number. So conclusion is that this simple line of code on client side would work (just for the localPlayer): setFPSLimit(60) Note: keep in mind that fps set on client side must be lower or equal to the fps set on server side (or the one specified in mtaserver.conf file). Link to comment
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