Jump to content

[HELP] Occupation in DxdrawText


MrJuhis

Recommended Posts

I can't see my occupation on my screen. Help!

local sx,sy = guiGetScreenSize() 
local px,py = 1600,900 
local x,y =  (sx/px), (sy/py)        
         
addEventHandler("onClientRender", root, 
    function(source) 
        dxDrawText( "Current Job: "..getElementData ( source, "Occupation" ).., x*10, y*863, x*247, y*891, tocolor(0, 0, 0, 255), 1.00, "pricedown", "center", "center", false, false, true, false, false) -- Your Text Bottom Left 
    end 
) 

Link to comment
local sx,sy = guiGetScreenSize() 
local px,py = 1600,900 
local x,y =  (sx/px), (sy/py)       
        
addEventHandler("onClientRender", root, 
    function() 
        dxDrawText( "Current Job: "..getElementData ( localPlayer, "Occupation" ), x*10, y*863, x*247, y*891, tocolor(0, 0, 0, 255), 1.00, "pricedown", "center", "center", false, false, true, false, false) -- Your Text Bottom Left 
    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...