Bridge
One API for ESX, QBCore, QBox, ox and vanilla — built into see_lib, exposed as lib.bridge.
One API for ESX, QBCore, QBox, ox and vanilla — built into see_lib, exposed as lib.bridge.
see_lib ships a multi-framework bridge: you write your logic once against a single
API and it runs the same on ESX, QBCore, QBox, ox — and even with no framework at all. It's
built in and lazy-loaded under lib.bridge, no extra resource to install.
lib.bridge.getPlayer(source) works on ESX, QBCore, QBox, ox and vanilla — no more if framework == ... branches.
The framework and the installed systems are detected on boot. Force any of them with a convar when several are present.
A normalized server and client API: identity, balance, job and gang — the same fields whatever the framework returns.
Four framework-independent axes, each with adapters for the popular systems and a safe fallback.
Anything unsupported degrades to a single warning and a no-op — your script keeps running.
Don't need it? setr see:bridge "false" and it never loads.
-- Identical on ESX, QBCore, QBox, ox and vanilla
local player = lib.bridge.getPlayer(source)
print(player.identifier, player.name)Read on: Detection & config for auto-detection and convars, then the server and client API.