Last updated
Last updated
The Config.Theme
table includes various color properties to style the application. The colors are defined in hexadecimal and RGBA formats.
This function retrieves the crew ID from an external resource if it is running.
GetResourceState("gfx-crew") checks if the "gfx-crew" resource is started.
exports["gfx-crew"]() retrieves crew data via an external resource's API.
Returns the crew ID if available, otherwise nil
.
You can replace nil with your crew export if you have one.
External Resource Requirement:
The function depends on the external resource gfx-crew
, and if not present, it will return nil
.
This function is a placeholder that currently returns a static squad ID of 1
. You can write your own crew scripts' export instead of 1.
primary
'#ff4f22'
Primary theme color in hexadecimal format
primary-content
'#900000'
Content color for primary theme
primary-opacity
"rgba(255, 47, 47, 0.2)"
Primary color with opacity (RGBA format)
secondary
"#FF2F2F"
Secondary theme color in hexadecimal
secondary-content
'#900000'
Content color for secondary theme
secondary-opacity
"rgba(255, 47, 47, 0.2)"
Secondary color with opacity (RGBA)
Check the instructions below.