Jump to content

طلب كود


Recommended Posts

تفضل , ماجربته : )

: حط اسم النافذهـ عشان اذا تبي الاسم حقها يتلون والزر مثل الشيء , هذا مثال

addEventHandler ( "onClientResourceStart", resourceRoot, function (    ) 
    if ( isTimer ( TimerColor ) ) then  
        killTimer ( TimerColor ) 
    end 
        TimerColor = setTimer ( function (   ) 
        local RandomColor = string.format ( "%.2X%.2X%.2X%.2X", 255, math.random ( 255 ), math.random ( 255 ), math.random ( 255 ) ) 
        guiSetProperty ( اسم الزر, "NormalTextColour", RandomColor ) 
        guiSetProperty ( اسم النافذه, "CaptionColour", RandomColor ) 
    end, 300, 0 ) 
end ) 
Link to comment

يلون كل البوتون بلوحة الادمن

setTimer(function() 
for _, button in ipairs(getElementsByType('gui-button',getResourceRootElement(getThisResource()))) do 
guiSetProperty(button, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X",255,math.random(255), math.random(255), math.random(255))) 
end 
end,500,0) 

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