Jump to content

how output dxDrawText ?


Saudi Server

Recommended Posts

Posted

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 
) 

Posted

maybe would be better you to use a guiLabel, dunno its easier to use it ;)

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

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)!

Posted

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 

Posted

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)!

Posted

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)!

Posted

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)!

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...