Jump to content

how output dxDrawText ?


Saudi Server

Recommended Posts

hello

hi guys

how output dxDrawText ?

19175396.jpg

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...