micheal1230 Posted May 31, 2012 Share Posted May 31, 2012 Unknown Setting Error function devmode() setDevelopmentMode (true) end addCommandHandler("devmode", devmode) Link to comment
micheal1230 Posted May 31, 2012 Author Share Posted May 31, 2012 is it client side ? Yes Link to comment
TAPL Posted May 31, 2012 Share Posted May 31, 2012 do you know what this function does? Link to comment
myonlake Posted May 31, 2012 Share 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. Link to comment
X-SHADOW Posted May 31, 2012 Share 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> Link to comment
myonlake Posted June 1, 2012 Share 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. Link to comment
micheal1230 Posted June 1, 2012 Author Share 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 Link to comment
Wei Posted June 1, 2012 Share Posted June 1, 2012 You can also: /start runcode /crun setDeveloperMode(true) Link to comment
Jaysds1 Posted June 1, 2012 Share Posted June 1, 2012 you have to be an admin, so try logging into your admin account then try the command Link to comment
Cyandie Posted June 1, 2012 Share 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. Link to comment
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