Jump to content

languages toggle


Blaawee

Recommended Posts

Posted

i want to make to languages in the freeroam game mode

here is what i did :

function togglarbic(text) 
    if text == "kill" then 
    guiSetText( "انتحآر" ) 
    else 
    guiSetText( "kill" )  
        if text == "skin" then 
        guiSetText( "شخصيآت" ) 
        else 
        guiSetText( "skin" ) 
        end 
    end 
end  
addEventHandler ( "onClientClick", getRootElement(), togglarbic ) 

and i put a 'chk'

{'chk', id='Arbic', onclick=togglarbic} 

Posted
Then open the script where the GUI are created, and edit it.

Else you need to use guiSetText properly, and several times to accomplish full change.

how to make this?

Welcom to my server Q.5

Current game type in my server Drift

350x20_FFFFFF_FFFFFF_000000_000000.png

my Email : [email protected]

Programming level: 90%

Posted
function togglarbic(text) 
    if text == "kill" then 
    guiSetText( "انتحآر" ) 
    else 
    guiSetText( "kill" )  
        if text == "skin" then 
        guiSetText( "شخصيآت" ) 
        else 
        guiSetText( "skin" ) 
        end 
    end 
end  
addEventHandler ( "onClientClick", getRootElement(), togglarbic ) 

so thats what i did

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