Jump to content

I Have dx problem 2?


Recommended Posts

Posted

Hi guys;

I have dx problem.this time I don't find a cursor position.

My code

function onClientClick(button,state,aX,aY,wX,wY,wZ,cElement) 
    if button == "left" and state=="up" and panel=="1" then 
    elseif (aX>=135) and (aX<=135+126) and (aY>=sY-294) and (aY<=(sY-294)+20) and dxIstatistik=="1" then 
            executeCommandHandler("nos","nfs") 
        elseif (aX>=94) and (aX<=94+126) and (aY>=sY-274) and (aY<=(sY-274)+20) and dxIstatistik=="1" then  
            executeCommandHandler("nos","normal") 
    elseif (aX>=135) and (aX<=135+120) and (aY>=sY-300) and (aY<=(sY-200)+20) and dxIstatistik=="1" then 
            triggerServerEvent("otomatikGirisDegis",g_Me) 
            elseif (aX>=135) and (aX<=135+126) and (aY>=sY-450) and (aY<=(sY-350)+20) and dxIstatistik=="1" then 
            triggerServerEvent("beniHatirlaDegis",g_Me) 
            elseif (aX>=135) and (aX<=135+126) and (aY>=sY-284) and (aY<=(sY-214)+20) and dxIstatistik=="1" then 
            triggerServerEvent("cikisYap",g_Me) 
    end 
end 
addEventHandler("onClientClick",g_Root,onClientClick) 

I want find following position;

45thf.jpg

Posted

Jaysds1, u're kidding us, no? Obviously, it's dx text. GUI Labels don't support these fonts.

EPT Team Server Development: 0%

Learning C++ | C++ is amazing xD

Posted
Jaysds1, u're kidding us, no? Obviously, it's dx text. GUI Labels don't support these fonts.

https://wiki.multitheftauto.com/wiki/Sta ... Font_Names

anyways, Instead of doing that, you could make guiCreateLabel over the dx and use it as a button, you don't have to put anything in it.

My in-game name: Jaysds1

Retired CMG Scripter

World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode

Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/

 

sE5Qm.png

TiV3C.png

img.php?id=0&text=Lua%20Scripter

Posted
Jaysds1, u're kidding us, no? Obviously, it's dx text. GUI Labels don't support these fonts.

Indeed, they mayn't support them, but you can always use guiCreateFont and then have that font.

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.

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