Installation Steps
1
Install dependencies
ox_lib
Download ox_lib (CommunityOx)
oxmysql
Download oxmysql (overextended)
2
Extract and place the resource
Extract the script from the zip file and place it into your resources folder (for example
standalone or [projectx]).3
Import the SQL
Import
sql/install.sql into your database. This creates the player_xp table.The script can also auto-add missing columns at runtime if the table already exists.
Legacy Pickle XP JSON data can migrate automatically when skill keys match entries in
Config.Skills.4
Configure the resource
Open
config/config.lua and adjust the settings to your liking. See the configuration section below for details.5
Add to server.cfg
Start
projectx-xp after your framework, ox_lib, and oxmysql, and before any scripts that award XP:6
Configure the bridge (Optional)
If you use projectx-bridge, set
XPSystem to 'projectx' or 'auto'.'projectx'— always use projectx-xp'auto'— detects projectx-xp when the resource is started
7
Add the menu item (Optional)
If you enable
UseItem, add the x_device item to your inventory so players can open the XP menu from an item.Configuration
Key options inconfig/config.lua:
General Settings
When enabled, using the
x_device item opens the XP menu. Add the item to your inventory if you enable this.Notifications
UI & Leaderboard
Skills (Config.Skills)
Each entry in Config.Skills is keyed by a skill ID (for example criminal) and supports:
Milestone
Rewards support types such as:
money— cash/bank rewarditem— inventory item rewardexport— custom export callback
criminal, fishing, crafting, mechanic, delivery, farming, diving, mining
UI Build
The shipped UI lives inweb/build. Only rebuild web/ if you edit the UI source:
