Jump to content

x{dx}x problem


Master_MTA

Recommended Posts

Posted

hi all i have small question how i can transfer the text length to pixel i wanna check when i draw dx text if it more than 100px maybe then return like that

local sx_,sy_=guiGetScreenSize()
local mx,my=sx_/1366,sy_/768
local tt='test'
addEventHandler('onClientRender',root,function()
    if #tt+my*275>=278 then return end  ----------my try
dxDrawText ( tt,mx*323, my*275,mx* 265,my* 231, toccolor(255,0,255,255), 1.4) --------------- font size is the problem
end)

 

Skype 01100001 01101100 01101001 01011111 01101101 01110100 00110001 00111001 00111001 00111001

every thing is gonna be alright

every thing is gonna be okay

it's gonna be a good good life

that's what my therapist say

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