Saudi Server Posted September 2, 2010 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 )
Castillo Posted September 2, 2010 Posted September 2, 2010 maybe would be better you to use a guiLabel, dunno its easier to use it San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
dzek (varez) Posted September 2, 2010 Posted September 2, 2010 this could be useful too https://wiki.multitheftauto.com/wiki/Int ... ng_the_GUI Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
Saudi Server Posted September 2, 2010 Author 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
dzek (varez) Posted September 2, 2010 Posted September 2, 2010 i see no action in your script. your button will do nothing on click. tell us exactly - whats wrong? Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
dzek (varez) Posted September 2, 2010 Posted September 2, 2010 https://wiki.multitheftauto.com/wiki/Cli ... _functions https://wiki.multitheftauto.com/wiki/GuiSetText Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
Saudi Server Posted September 2, 2010 Author Posted September 2, 2010 thxx man but How to Make Special script for admin ( only admin - no default , moderator , supermoderator )
BinSlayer1 Posted September 2, 2010 Posted September 2, 2010 https://wiki.multitheftauto.com/wiki/Has ... rmissionTo
dzek (varez) Posted September 2, 2010 Posted September 2, 2010 Hope you understand the difference between server and client side scripts Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
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