Developer Framework Exports

C7 Framework V3 provides a set of server-side exports that allow developers to access character information from any resource.

These exports are safe, reliable, and do not require direct interaction with internal framework structures.

Available Exports

Below is the full list of exports provided by the framework.

1. GetActiveCharacter

Returns the full character table for the player.

local char = exports["c7-scripts-framework-v3"]:GetActiveCharacter(src)

This will return a table with the following data:

{
    char_id = "AB-123456",
    char_first_name = "John",
    char_last_name = "Smith",
    char_department = "Police",
    char_callsign = "123",
    char_gender = "Male",
    char_dob = "1990-01-01"
}

Returns nil if the player has no active character.

2. GetCharID

Returns the character’s unique ID (e.g., "AB-123456").

This will return a string or nil if unavailable

3. GetCharFullName

Returns the character’s full name as "First Last".

This will return a string with formatted full name or nil if unavailable

4. GetCharFirstName

Returns only the character’s first name..

This will return a string with first name or nil if unavailable

5. GetCharLastName

Returns only the character’s first name..

This will return a string with last name or nil if unavailable

5. GetCharDept

Returns the department the character is assigned to.

This will return a string with department name or nil if unavailable

6. GetCharCopy

Returns a safe, read-only copy of the character table. Use this when you need character info without risking accidental modification of framework data.

This will return a table containing:

Usage Examples:

Displaying Character Name in a Custom Script

Checking Department for Permissions

Retrieving Character Data Safely

Last updated