Jump to content

setDebugLevel (client and/or server)


Recommended Posts

  • MTA Team
Posted

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?

Posted

That only works with lua commandhandlers, not hardcoded commands like /debugscript /say /quit I believe.

  • Discord Moderators
Posted

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?

Posted

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.

Posted
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
Posted

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)

Posted

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...