Framework

The SD.Framework module provides a straightforward method for identifying the framework currently in use on a server.

Overview

Purpose: To globally expose the active framework identifier, enabling scripts to implement conditional logic based on the framework, such as ESX, QB, or others.

Usage Example

if SD.Framework == 'esx' then
    -- Execute ESX-specific code
    print('Running under ESX framework.')
elseif SD.Framework == 'qb' then
    -- Execute QB-specific code
    print('Running under QB framework.')
else
    print('Framework not supported or unidentified.')
end

Last updated