Jump to content

dxDrawText center


Matevsz

Recommended Posts

Hello, when I push the "R" is you can not see the names of the radio.

debugscript 3

Warning Bad argument @ 'dxDrawText' [expected string at argument 1, got nil]

  
function renderRadio () 
dxDrawText (textRadio,0,0,sx,96,-922761116,2,"sans","center","center",false,false,true) 
end 
addEventHandler ("onClientRender",getRootElement(),renderRadio) 
  

In this line is error.

Link to comment

try this

function renderRadio () 
dxDrawText(textRadio,0,0,0,0, tocolor(255  ,255  ,255  ,255), 1.0, "default-bold", "center", "center", false, false, false) 
end 
addEventHandler ("onClientRender",getRootElement(),renderRadio) 

then take their position of screen X and Y :wink:

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