Jump to content

[ Help ] Taple :| Some Problem


iPrestege

Recommended Posts

Hello , how are you today hmm ... are you fine ? :D

i have some problem with this shit code :| when i do restart admin the function of the code doesn,t work :@ :redhotevil:

idont know why ! this is the code for kenix but i add some thing .. :

for _, Ads in ipairs( getElementsByType( 'gui-button' ) ) do 
    guiSetProperty( Ads, 'NormalTextColour', 'FFFFFF00' ) 
  guiSetProperty( Ads, 'HoverTextColour', 'FFFF0000' ) 
  guiSetProperty( Ads, 'PushedTextColour', 'FF220000' ) 
 guiSetFont ( Ads, "default-bold-small" ) 
end 
  
  
  

:cry:

Link to comment
addEventHandler("onClientResourceStart", root, 
function() 
    for _, Ads in ipairs(getElementsByType('gui-button')) do 
        guiSetProperty(Ads, 'NormalTextColour', 'FFFFFF00') 
        guiSetProperty(Ads, 'HoverTextColour', 'FFFF0000') 
        guiSetProperty(Ads, 'PushedTextColour', 'FF220000') 
        guiSetFont(Ads, "default-bold-small") 
    end 
end) 

Link to comment
addEventHandler("onClientResourceStart", root, 
function() 
    for _, Ads in ipairs(getElementsByType('gui-button')) do 
        guiSetProperty(Ads, 'NormalTextColour', 'FFFFFF00') 
        guiSetProperty(Ads, 'HoverTextColour', 'FFFF0000') 
        guiSetProperty(Ads, 'PushedTextColour', 'FF220000') 
        guiSetFont(Ads, "default-bold-small") 
    end 
end) 

Doesn,t Work :cry:

Link to comment

I think timer is needed.

addEventHandler("onClientResourceStart", root, 
function() 
    setTimer(function() 
        for _, Ads in ipairs(getElementsByType('gui-button')) do 
            guiSetProperty(Ads, 'NormalTextColour', 'FFFFFF00') 
            guiSetProperty(Ads, 'HoverTextColour', 'FFFF0000') 
            guiSetProperty(Ads, 'PushedTextColour', 'FF220000') 
            guiSetFont(Ads, "default-bold-small") 
        end 
    end, 250, 1) 
end) 

Link to comment
I think timer is needed.
addEventHandler("onClientResourceStart", root, 
function() 
    setTimer(function() 
        for _, Ads in ipairs(getElementsByType('gui-button')) do 
            guiSetProperty(Ads, 'NormalTextColour', 'FFFFFF00') 
            guiSetProperty(Ads, 'HoverTextColour', 'FFFF0000') 
            guiSetProperty(Ads, 'PushedTextColour', 'FF220000') 
            guiSetFont(Ads, "default-bold-small") 
        end 
    end, 250, 1) 
end) 

it works TAPL Thanks But The admin panel Not colored what is the reason? how can i fix it ?

Link to comment
I think timer is needed.
addEventHandler("onClientResourceStart", root, 
function() 
    setTimer(function() 
        for _, Ads in ipairs(getElementsByType('gui-button')) do 
            guiSetProperty(Ads, 'NormalTextColour', 'FFFFFF00') 
            guiSetProperty(Ads, 'HoverTextColour', 'FFFF0000') 
            guiSetProperty(Ads, 'PushedTextColour', 'FF220000') 
            guiSetFont(Ads, "default-bold-small") 
        end 
    end, 250, 1) 
end) 

it works TAPL Thanks But The admin panel Not colored what is the reason? how can i fix it ?

/restart admin 

:mrgreen:

Link to comment
I think timer is needed.
addEventHandler("onClientResourceStart", root, 
function() 
    setTimer(function() 
        for _, Ads in ipairs(getElementsByType('gui-button')) do 
            guiSetProperty(Ads, 'NormalTextColour', 'FFFFFF00') 
            guiSetProperty(Ads, 'HoverTextColour', 'FFFF0000') 
            guiSetProperty(Ads, 'PushedTextColour', 'FF220000') 
            guiSetFont(Ads, "default-bold-small") 
        end 
    end, 250, 1) 
end) 

it works TAPL Thanks But The admin panel Not colored what is the reason? how can i fix it ?

/restart admin 

:mrgreen:

I do restart for Admin Panel but didn,t work .

:roll::mrgreen:

Link to comment

Oh i see

Well, let make it with infinite timer then, not best solution anyway but it can do the job.

addEventHandler("onClientResourceStart", resourceRoot, 
function() 
    setTimer(function() 
        for _, Ads in ipairs(getElementsByType('gui-button')) do 
            guiSetProperty(Ads, 'NormalTextColour', 'FFFFFF00') 
            guiSetProperty(Ads, 'HoverTextColour', 'FFFF0000') 
            guiSetProperty(Ads, 'PushedTextColour', 'FF220000') 
            guiSetFont(Ads, "default-bold-small") 
        end 
    end, 250, 0) 
end) 

Link to comment
Oh i see

Well, let make it with infinite timer then, not best solution anyway but it can do the job.

addEventHandler("onClientResourceStart", resourceRoot, 
function() 
    setTimer(function() 
        for _, Ads in ipairs(getElementsByType('gui-button')) do 
            guiSetProperty(Ads, 'NormalTextColour', 'FFFFFF00') 
            guiSetProperty(Ads, 'HoverTextColour', 'FFFF0000') 
            guiSetProperty(Ads, 'PushedTextColour', 'FF220000') 
            guiSetFont(Ads, "default-bold-small") 
        end 
    end, 250, 0) 
end) 

it works 100 % thank you TAPL :oops::mrgreen:

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