Dynamically gathering colors
About
If you would like to get colors of the interface in your other resource, this guide is for you!
Gathering
Simply headover to your resource and apply that code:
RegisterNetEvent('ZSX_UIV2:Storage:OnColorUpdate')
AddEventHandler('ZSX_UIV2:Storage:OnColorUpdate', function(rgb, hex)
end)
Params
Param
Data
rgb
Returns color in rgb object.
hex
Returns color in hex string
Last updated