Framework Adapters (bridge/framework/)
Framework adapters provide player state checks, character identification, job details, and cash/bank balance manipulation.
Supported Frameworks
- Qbox (
bridge/framework/qbox.lua): Nativeqbx_coreplayer object and callbacks. - QBCore (
bridge/framework/qb.lua): StandardQBCore.Functions.GetPlayer. - ESX Legacy (
bridge/framework/esx.lua):ESX.GetPlayerFromId. - ox_core (
bridge/framework/ox.lua):Ox.GetPlayer. - Standalone (
bridge/framework/standalone.lua): Fallback for custom servers.
Adding a Custom Framework
To add your own custom framework:
-
Create
bridge/framework/custom.lua. -
Implement the standard methods:
LuaFinals.Bridge.GetPlayerName = function(source) ... end Finals.Bridge.GetPlayerJob = function(source) ... end Finals.Bridge.GetMoney = function(source, moneyType) ... end Finals.Bridge.AddMoney = function(source, moneyType, amount) ... end Finals.Bridge.RemoveMoney = function(source, moneyType, amount) ... end -
Set
Config.Bridge.Framework = 'custom'inconfiguration/config.lua.
