Admin Commands
Core Crafting includes admin commands for managing player experience and blueprints.
Experience Commands
admin
/addcraftexpqb-coreesx
Adds crafting experience to a player. 100 XP = 1 level. QBCore uses addcraftexp, ESX uses givecraftexp.
| Argument | Type | Description |
|---|---|---|
player_id | number | The player server ID |
amount | number | Amount of XP to add |
Usage
lua
-- Give player 5 a full level (100 XP)
/addcraftexp 5 100
-- ESX equivalent
/givecraftexp 5 100admin
/setcraftexpqb-coreesx
Sets a player's crafting experience to an exact value. Overwrites any existing XP.
| Argument | Type | Description |
|---|---|---|
player_id | number | The player server ID |
amount | number | XP value to set |
Usage
lua
-- Set player 5 to level 10 (1000 XP)
/setcraftexp 5 1000Blueprint Commands
admin
/giveblueprintqb-coreesx
Grants a specific blueprint to a player. The item must be a recipe with requireBlueprint = true.
| Argument | Type | Description |
|---|---|---|
player_id | number | The player server ID |
item_name | string | Recipe key from Config.Recipes |
Usage
lua
-- Give player 5 the pistol blueprint
/giveblueprint 5 weapon_pistol
-- Give player 5 the first aid blueprint
/giveblueprint 5 firstaidINFO
All commands require admin permissions. The item_name argument must match a recipe key in Config.Recipes that has requireBlueprint = true.
