micheal1230 Posted May 31, 2012 Posted May 31, 2012 Unknown Setting Error function devmode() setDevelopmentMode (true) end addCommandHandler("devmode", devmode)
myonlake Posted May 31, 2012 Posted May 31, 2012 And why are you using a command for it when it can only be enabled with the command. Just only use setDevelopmentMode without functions and make sure it's client-side, script started and meta.xml configured correctly.
X-SHADOW Posted May 31, 2012 Posted May 31, 2012 Client-Side addEventHandler('onClientResourceStart', resourceRoot, function() setDevelopmentMode (true) end) meta.xml <meta> <info name="DeveloperMode" version="1.0" type="script" author="X-SHADOW" description="MTA-Thing" /> <!-- Required Server-Scripts --> <script src="client.lua" type="client" /> </meta>
myonlake Posted June 1, 2012 Posted June 1, 2012 Client-Side addEventHandler('onClientResourceStart', resourceRoot, function() setDevelopmentMode (true) end) meta.xml <meta> <info name="DeveloperMode" version="1.0" type="script" author="X-SHADOW" description="MTA-Thing" /> <!-- Required Server-Scripts --> <script src="client.lua" type="client" /> </meta> I am still preferring no events to the mode since it's unnecessary.
micheal1230 Posted June 1, 2012 Author Posted June 1, 2012 do you know what this function does? Yes it enable developer mode so you can do commands like showsound and showcol i mainly wanted it for /showcol
Wei Posted June 1, 2012 Posted June 1, 2012 You can also: /start runcode /crun setDeveloperMode(true)
Jaysds1 Posted June 1, 2012 Posted June 1, 2012 you have to be an admin, so try logging into your admin account then try the command
Cyandie Posted June 1, 2012 Posted June 1, 2012 If you don't know what he means it's a ACL Admin Account you have to add yourself to the ACL and you have to use /register via Console or you make it work InGame you can add a account by doing this /addaccount username password in the console once you do add the admin to the ACL.xml and /login with the details you put it.
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