Saudi Server Posted September 2, 2010 Share Posted September 2, 2010 hello hi guys how output dxDrawText ? and How to Make Special script for admin ( only admin ) button = guiCreateButton(0.075,0.63,0.1,0.065,"~ Send !",true) editBox = guiCreateEdit(0.0037,0.3717,0.255,0.2617,"",true) guiEditSetMaxLength(editBox,9000) function outputEditBox () local text = guiGetText ( editBox ) outputChatBox ( text ) end addEventHandler ( "onClientGUIClick", button, outputEditBox ) addEventHandler("onClientRender",root, function() dxDrawText("Admin : ",9.0,198.0,194.0,241.0,tocolor(0,0,120,255),1.0,"default","left","top",false,false,false) end ) Link to comment
Castillo Posted September 2, 2010 Share Posted September 2, 2010 maybe would be better you to use a guiLabel, dunno its easier to use it Link to comment
Saudi Server Posted September 2, 2010 Author Share Posted September 2, 2010 how use the lapel plz help me Link to comment
dzek (varez) Posted September 2, 2010 Share Posted September 2, 2010 this could be useful too https://wiki.multitheftauto.com/wiki/Int ... ng_the_GUI Link to comment
Saudi Server Posted September 2, 2010 Author Share Posted September 2, 2010 i deleted dxdrawtext and create Lapel but not work GUIEditor_Label = {} button = guiCreateButton(60,378,80,39,"~ Send !",false) GUIEditor_Label[1] = guiCreateLabel(3,182,203,44,"Admin : ",false) guiLabelSetColor(GUIEditor_Label[1],0,0,120,255) guiLabelSetVerticalAlign(GUIEditor_Label[1],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",false) editBox = guiCreateEdit(3,223,204,157,"",false) function outputEditBox () local text = guiGetText ( editBox ) outputChatBox ( text ) end Link to comment
dzek (varez) Posted September 2, 2010 Share Posted September 2, 2010 i see no action in your script. your button will do nothing on click. tell us exactly - whats wrong? Link to comment
Saudi Server Posted September 2, 2010 Author Share Posted September 2, 2010 ok man but how output Lapel Link to comment
dzek (varez) Posted September 2, 2010 Share Posted September 2, 2010 https://wiki.multitheftauto.com/wiki/Cli ... _functions https://wiki.multitheftauto.com/wiki/GuiSetText Link to comment
Saudi Server Posted September 2, 2010 Author Share Posted September 2, 2010 thxx man but How to Make Special script for admin ( only admin - no default , moderator , supermoderator ) Link to comment
BinSlayer1 Posted September 2, 2010 Share Posted September 2, 2010 https://wiki.multitheftauto.com/wiki/Has ... rmissionTo Link to comment
dzek (varez) Posted September 2, 2010 Share Posted September 2, 2010 Hope you understand the difference between server and client side scripts 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