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. Learn Lua - Learn to script - GUI scripting Scripter tools - Find/fix errors yourself(!) Don't pm me for scripting help, keep it for the Scripting subforum!
Moderators Zango Posted July 7, 2011 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 Handling editor | Modloader
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. "Everything exists, because otherwise nothing would", Bob Marley, 2015.
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. Handling editor | Modloader
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