reeshan Posted August 25, 2013 Posted August 25, 2013 how do i turn it on and i want to use the showcol
K4stic Posted August 25, 2013 Posted August 25, 2013 (edited) you can see all info here about Development Mode=> Click Here! and Here my Example: client.lua addCommandHandler("devmode", function ( ) if ( getDevelopmentMode( ) == false ) then setDevelopmentMode( true ) else setDevelopmentMode( false ) end end ) meta.xml Edited August 25, 2013 by Guest
reeshan Posted August 25, 2013 Author Posted August 25, 2013 i don't know how to use it can u make a direct lua for me
reeshan Posted August 25, 2013 Author Posted August 25, 2013 i got this error [2013-08-25 14:16:55] start: Requested by Console [2013-08-25 14:16:55] Starting dev [2013-08-25 14:16:55] SCRIPT ERROR: dev\dev.lua:9: ')' expected (to close '(' at line 1) near 'end' [2013-08-25 14:16:55] WARNING: Loading script failed: dev\dev.lua:9: ')' expected (to close '(' at line 1) near 'end' [2013-08-25 14:16:55] start: Resource 'dev' started [2013-08-25 14:17:39] restart: Requested by Console [2013-08-25 14:17:39] restart: Resource restarting... [2013-08-25 14:17:39] Stopping dev [2013-08-25 14:17:40] Resource 'dev' changed, reloading and starting [2013-08-25 14:17:40] Starting dev [2013-08-25 14:17:40] SCRIPT ERROR: dev\dev.lua:10: ')' expected (to close '(' at line 2) near 'end' [2013-08-25 14:17:40] WARNING: Loading script failed: dev\dev.lua:10: ')' expected (to close '(' at line 2) near 'end' [2013-08-25 14:17:40] dev restarted successfully
PotatoHead Posted August 25, 2013 Posted August 25, 2013 addCommandHandler("devmode", function ( ) if ( getDevelopmentMode( ) == false ) then setDevelopmentMode( true ) else setDevelopmentMode( false ) end end end) Try that. I think it sohuld work. He forgot to close one bracket so. If that doesnt work try it this way. function devMode() if (getDevelopmentMode() == false) then setDevelopmentMode(true) else setDevelopmentMode(false) end end end addCommandHandler("togdev", devMode) CMD for that is /togdev
K4stic Posted August 25, 2013 Posted August 25, 2013 i was make fail sorry i just have other thinks anyway i fix the code and add meta.xml
Castillo Posted August 25, 2013 Posted August 25, 2013 You can also do it on just one line: addCommandHandler ( "devmode", function ( ) setDevelopmentMode ( not getDevelopmentMode ( ) ) end )
BieHDC Posted August 26, 2013 Posted August 26, 2013 or if you prefer gui then go into adminpanel > Resources and down there is a text input type in there "setDevelopmentMode(true)" without "" and then press F8 and type "showcol" wo ""
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