Jump to content

Help - guiSetLabelColor


xXMADEXx

Recommended Posts

For some reason, when the player presses the button, it will not set the label color o.O

addEventHandler("onClientGUIClick",root, 
    function () 
        local neon_get_r = tonumber(guiGetText(rog_modshop_neon_edit_r)) 
        local neon_get_g = tonumber(guiGetText(rog_modshop_neon_edit_g)) 
        local neon_get_b = tonumber(guiGetText(rog_modshop_neon_edit_b)) 
        if source == rog_modshop_neon_btn_back then 
            guiSetVisible(rog_modshop_neon_window,false) 
            guiSetVisible(rog_modshop_upgrades_window,true) 
        elseif source == rog_modshop_neon_btn_add then 
            triggerServerEvent("rog:modshop:neon",localPlayer, localPlayer, neon_get_r, neon_get_g, neon_get_b) 
        elseif source == rog_modshop_neon_btn_colorTest then 
            local neon_lbl_colorTest = guiCreateLabel(17, 190, 288, 20, "Color",false,rog_modshop_neon_window) 
            guiLabelSetColor ( myLabel, neon_get_r, neon_get_g, neon_get_b) 
        end 
    end 
) 

Link to comment
addEventHandler("onClientGUIClick",root, 
    function () 
        local neon_get_r = tonumber(guiGetText(rog_modshop_neon_edit_r)) 
        local neon_get_g = tonumber(guiGetText(rog_modshop_neon_edit_g)) 
        local neon_get_b = tonumber(guiGetText(rog_modshop_neon_edit_b)) 
        if source == rog_modshop_neon_btn_back then 
            guiSetVisible(rog_modshop_neon_window,false) 
            guiSetVisible(rog_modshop_upgrades_window,true) 
        elseif source == rog_modshop_neon_btn_add then 
            triggerServerEvent("rog:modshop:neon",localPlayer, localPlayer, neon_get_r, neon_get_g, neon_get_b) 
        elseif source == rog_modshop_neon_btn_colorTest then 
            local neon_lbl_colorTest = guiCreateLabel(17, 190, 288, 20, "Color",false,rog_modshop_neon_window) 
            guiLabelSetColor ( neon_lbl_colorTest, neon_get_r, neon_get_g, neon_get_b) 
        end 
    end 
) 

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