⚙️Configuration

Check the instructions below.

Theme Settings

The Config.Theme table includes various color properties to style the application. The colors are defined in hexadecimal and RGBA formats.

Property
Value
Description

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)


Editable Functions

GetCrewId Function

This function retrieves the crew ID from an external resource if it is running.

local crewScript = GetResourceState("gfx-crew") == "started" and "gfx-crew"

function GetCrewId()
    if crewScript == "gfx-crew" then
        local crewData = exports["gfx-crew"]:GetPlayerCrewData()
        return crewData and crewData.crewId
    else
        return nil
    end
end
  • 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.

GetSquadId Function

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.

function GetSquadId()
    return 1
end

Last updated