index
--- sidebar_position: 1 sidebar_label: "Overview"
# Libraries
Libraries are utility modules built into CB (Community Bridge)Community Bridge (CB). A framework abstraction layer that provides unified APIs across QBCore, ESX, and ox_core, allowing resources to work on any framework.. They provide common functionality for game scripting that isn't specific to any framework.
Libraries are accessed through the cLib table or via the Bridge:
local Bridge = exports['community_bridge']:Bridge()
-- Client libraries
Bridge.Entity.Create(...)
Bridge.Point.Create(...)
Bridge.Marker.Create(...)
Bridge.Anim.Play(...)
-- Or via cLib export
local cLib = exports['community_bridge']:cLib()
cLib.Callback.Trigger(...)
cLib.Math.Round(...)
Available Libraries
| Library | Side | Description |
|---|---|---|
| Animation | Client | Animation playback and management |
| Callback | Shared | Client-server callback system |
| Cutscenes | Client | Cutscene creation and playback |
| Entities | Client & Server | Entity spawning and lifecycle management |
| IDs | Shared | Unique ID generation |
| Logging | Server | Structured logging with webhooks |
| Markers | Client & Server | 3D marker creation |
| Math | Shared | Math utilities (round, clamp, lerp, etc.) |
| Particles | Client | Particle effect management |
| Placers | Client | Object placement systems |
| Points | Client | Distance-based point system |
| Raycast | Client | Raycasting utilities |
| Scaleform | Client | Scaleform movie rendering |
| Table Utilities | Shared | Table manipulation helpers |
| Utility | Client | Model loading, command keys, etc. |
| Easing / LA | Shared | Easing functions and linear algebra |
| Prints | Shared | Formatted print utilities |