.:HyPeX:. Posted December 29, 2014 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) My ingame nick is ~HyPeX~ BF3 Gamemode Progress: ~30% - Currently working on AI & MapManager
MTA Team botder Posted December 29, 2014 MTA Team Posted December 29, 2014 What did you write in the mtaserver.conf ? GitHub: Debug Console • MTA-Discord Relay Scripting: How to draw a line chart with DirectX functions? • Doppler Effect in MTA • Get the client's FPS • Customizable Blur Shader
.:HyPeX:. Posted December 29, 2014 Author 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? My ingame nick is ~HyPeX~ BF3 Gamemode Progress: ~30% - Currently working on AI & MapManager
MTA Team botder Posted December 29, 2014 MTA Team Posted December 29, 2014 Let's ignore that and try this: local val = math.floor(tonumber(val)) GitHub: Debug Console • MTA-Discord Relay Scripting: How to draw a line chart with DirectX functions? • Doppler Effect in MTA • Get the client's FPS • Customizable Blur Shader
.:HyPeX:. Posted December 29, 2014 Author Posted December 29, 2014 Worked! Thanks! PD: Didnt remembered those args were passed as strings ^^ My ingame nick is ~HyPeX~ BF3 Gamemode Progress: ~30% - Currently working on AI & MapManager
LabiVila Posted December 29, 2014 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)
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