MTA Team qaisjp Posted July 6, 2011 MTA Team 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?
CrazyDude Posted July 7, 2011 Posted July 7, 2011 You can try to use https://wiki.multitheftauto.com/wiki/Exe ... andHandler
SDK Posted July 7, 2011 Posted July 7, 2011 That only works with lua commandhandlers, not hardcoded commands like /debugscript /say /quit I believe.
Discord Moderators Zango Posted July 7, 2011 Discord Moderators 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?
botanist Posted July 7, 2011 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
diegofkda Posted July 7, 2011 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.
botanist Posted July 8, 2011 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.
MTA Team qaisjp Posted July 8, 2011 Author MTA Team 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)
eAi Posted July 9, 2011 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.
Recommended Posts