API
This page covers the API exports, events, and triggers that allow you to integrate Koja-Crafting with other scripts and resources.
π₯οΈ Server Exports
AddExp Export
Syntax
exports['koja-crafting']:AddExp(data)Parameters
data = {
identifier = 'steam:110000XXXXXXXX', -- Player identifier (optional if playerId provided)
playerId = 1, -- Server ID (optional if identifier provided)
exp = 100 -- Amount of XP to add
}Parameter
Type
Required
Description
Examples
How It Works
AddBlueprint Export
Syntax
Parameters
Parameter
Type
Required
Description
Examples
Blueprint Configuration Reference
Place Crafting
Usage
Parameters
Parameter
Type
Description
Using the export in inventory to place a station.
OX-INVENTORY
ESX
QB-CORE
π Callbacks
koja-crafting:server:checkForBlueprints
Usage
Response Structure
Example Integration
π¨ Integration Examples
Example 1: Quest System Integration
π Related Documentation
π Getting Help with Integration
Last updated