myyusuf Posted March 6, 2012 Posted March 6, 2012 local txd, state bindKey( 'F2', 'down', function( ) state = not state if state then destroyElement( txd ) outputChatBox("#ffcc00[MSG]: #c0c0c0Road texture disabled!", source,255,255,255,true) else txd = engineLoadTXD( 'vgncarshade1.txd', 3458 ) engineImportTXD( txd, 3458 ) txd = engineLoadTXD( 'vgncarshade.txd', 8838 ) engineImportTXD( txd, 8838 ) outputChatBox("#ffcc00[MSG]: #c0c0c0Road texture enabled!", source,255,255,255,true) end end ) it isnt running. what is problem?
denny199 Posted March 6, 2012 Posted March 6, 2012 (edited) -=-deleted-=- Edited March 6, 2012 by Guest Sometimes I dream about cheese
Kenix Posted March 6, 2012 Posted March 6, 2012 local txd, txd2, state bindKey( 'F2', 'down', function( ) state = not state if state then destroyElement( txd ) destroyElement( txd2 ) outputChatBox( '#ffcc00[MSG]: #c0c0c0Road texture disabled!', 255,255,255,true ) else txd = engineLoadTXD( 'vgncarshade1.txd', 3458 ) engineImportTXD( txd, 3458 ) txd2 = engineLoadTXD( 'vgncarshade.txd', 8838 ) engineImportTXD( txd2, 8838 ) outputChatBox( '#ffcc00[MSG]: #c0c0c0Road texture enabled!', 255,255,255,true ) end end ) Because in client side in function outputChatBox 2 argument is number, but you use element. https://wiki.multitheftauto.com/wiki/OutputChatBox And also you i see you replace old variable txd with new. You need define txd2 variable for delete texture in next time. http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
Kenix Posted March 6, 2012 Posted March 6, 2012 No problem. http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
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