st.framework — Framework Bridge
Detects the active framework (ESX or QB-Core) and provides a unified interface. Available both server and client but with different method sets.
Setup
st.framework is automatically initialized when the framework-bridge module loads. No manual initialization is required.
Framework Hooks (server)
These hooks fire via st.hook.doActions(...):
| Hook name | Arguments | When |
|---|---|---|
playerLoaded | playerId | Player fully loaded |
playerDropped | playerId | Player disconnected |
setJob | source, newJob, lastJob | Job changed (ESX) |
setGang | source, gang | Gang changed (QB) |
Framework Hooks (client)
| Hook name | Arguments | When |
|---|---|---|
playerLoaded | — | Player loaded |
onPlayerLogout | — | Player logged out |
setJob | newJob | Job changed |