.:HyPeX:. Posted December 29, 2014 Share Posted December 29, 2014 Well, its doing nothing, my FPS is still 53 if i set 60... no errors in debug server addEventHandler('onResourceStart', resourceRoot, function() setFPSLimit(0) end) client local fps = 53 addCommandHandler("sfps", function(cmd,val) if val then local val = math.floor(val) if val > 48 and val < 61 then setFPSLimit(val) else setFPSLimit(fps) end end end) addEventHandler('onClientResourceStart', resourceRoot, function() setFPSLimit(53) end) Link to comment
MTA Team botder Posted December 29, 2014 MTA Team Share Posted December 29, 2014 What did you write in the mtaserver.conf ? Link to comment
.:HyPeX:. Posted December 29, 2014 Author Share Posted December 29, 2014 What did you write in the mtaserver.conf ? Whats up with that? i set the fps limit to 60 in the server via admin panel, mtaserver.conf is not easy to grab (vps server). is it really relative? Link to comment
MTA Team botder Posted December 29, 2014 MTA Team Share Posted December 29, 2014 Let's ignore that and try this: local val = math.floor(tonumber(val)) Link to comment
.:HyPeX:. Posted December 29, 2014 Author Share Posted December 29, 2014 Worked! Thanks! PD: Didnt remembered those args were passed as strings ^^ Link to comment
LabiVila Posted December 29, 2014 Share Posted December 29, 2014 A better way of doing this is if you get into your server and you have admin, just write on console: /start runcode /run setFPSLimit (60) 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