📦 PX-LIB
Core bridge and framework abstraction library for supported PX Scripts resources (such as px-weaponshop). Provides unified wrappers for players, database operations, inventories, notifications, and interaction systems.
📋 Compatibility
| Layer | Supported Systems | Details |
|---|---|---|
| Framework | qb • esx • qbx • ox | Native support for major FiveM frameworks |
| Database | oxmysql • mysql-async • ghmattimysql | Asynchronous query handling |
| Inventory | qb-inventory • ox_inventory | Standard inventory abstractions |
| Interaction | drawtext • target | Dynamic in-game UI interaction |
| Target System | qb-target • ox_target | Raycast / entity zone targeting |
| Notification | qb • ox • esx | Framework-native alert popups |
| Performance (Resmon) | ⚡ Zero Overhead | 0.00ms (Pure exports bridge) |
Installation
Download & Extract
Download the latest version of px-lib and extract it into your FiveM server’s resources directory.
Recommendation: Keep the folder name as px-lib without any version numbers or branch tags.
- fxmanifest.lua
Add to Server Config
Add ensure px-lib to your server.cfg. It must be placed after your core framework/database and before any dependent PX resources:
# Core Dependencies
ensure [core]
ensure [inventory]
ensure [target]
# PX Bridge Library (Load First)
ensure px-lib
# PX Scripts Resources
ensure [px-scripts]Always ensure that px-lib is started before any dependent PX resources (such as px-weaponshop) to avoid nil bridge errors on server boot. Resources with native standalone bridges do not require px-lib.
Need Help?
👾 Join Our Discord Community
Encountering issues or have questions regarding configuration? Our support team is ready to assist you.
Get Support ↗
Created with ❤️ by PixelSoft