qaisjp Posted July 6, 2011 Share Posted July 6, 2011 setDebugLevel I don't know whether this should support server side support or not, but I will just explain for client. setDebugLevel(int level) Arguments: level : The debug level, allowed: 0-3 What do you think about the suggestion? Link to comment
CrazyDude Posted July 7, 2011 Share Posted July 7, 2011 You can try to use https://wiki.multitheftauto.com/wiki/Exe ... andHandler Link to comment
SDK Posted July 7, 2011 Share Posted July 7, 2011 That only works with lua commandhandlers, not hardcoded commands like /debugscript /say /quit I believe. Link to comment
Discord Moderators Zango Posted July 7, 2011 Discord Moderators Share Posted July 7, 2011 SDK's right, it's only for command handlers you added yourself. I can't really see any use in this function. Sure you can open the debug for someone, but why? Link to comment
Deltanic Posted July 7, 2011 Share Posted July 7, 2011 To have debugscript on 3 as soon as the server starts, without having to write the command or bind a key. I agree with this function Link to comment
diegofkda Posted July 7, 2011 Share Posted July 7, 2011 There is a mtaserver.conf parameter that sets the default debugscript level (default is 0). Anyway, this would be useful - if you want to open your debugscript with a key, or make a custom command. Link to comment
Deltanic Posted July 8, 2011 Share Posted July 8, 2011 There is a mtaserver.conf parameter that sets the default debugscript level (default is 0). Which is different. That only outputs debug into the serverconsole, and this is about the debugbox ingame afaik. Link to comment
qaisjp Posted July 8, 2011 Author Share Posted July 8, 2011 Also I aimed this idea for The_GTA's resedit, since he should disable the debug whilst editing (it interferes with the viewing and stuff) Link to comment
eAi Posted July 9, 2011 Share Posted July 9, 2011 Feel free to implement it - the code is there and it'd be a nice easy thing for someone to do to learn the MTA codebase. Link to comment
Recommended Posts