client
Framework

Functions

To use any of these functions YOU MUST HAVE IMPORTED THE CORE in your fxmanifest.

getPlayerGroup()

Returns a table containing the current player's job(s) and/or gang(s)

Renewed.getPlayerGroup()

Return:

  • group: table<string, number>

Usage Example:

    local Groups = Renewed.getPlayerGroup()
    -- output example: {['police'] = 1, ['ambulance'] = 2}

getCharId()

Returns the current player's character ID

Renewed.getCharId()

Return:

  • charId: string

Usage Example:

    local charId = Renewed.getCharId()
    -- output example: RFSA321

getCharName()

Returns the current player's full name

Renewed.getCharName()

Return:

  • fullName: string

Usage Example:

    local fullName = Renewed.getCharName()
    -- output example: Hunter Smith

hasGroup()

Check if the player has a specific group

Renewed.hasGroup()

Return:

  • hasGroup: boolean

Usage Example:

    local hasGroup = Renewed.hasGroup('police', 1)
    -- output example: true