Exports
List of available exports for the resource.
Server Exports
getPlayerBlueprints
Retrieves a table containing the player's blueprints.
| Prop | Type | Default |
|---|---|---|
src | number | - |
givePlayerBlueprint
Grants a blueprint to a player. Returns a boolean indicating success.
| Prop | Type | Default |
|---|---|---|
src | number | - |
blueprint | string | - |
removePlayerBlueprint
Removes a blueprint from a player. Returns a boolean indicating success.
| Prop | Type | Default |
|---|---|---|
src | number | - |
blueprint | string | - |
getPlayerLevel
Retrieves the player's current crafting level.
| Prop | Type | Default |
|---|---|---|
src | number | - |
setPlayerLevel
Sets the player's global crafting level. Returns a boolean indicating success.
| Prop | Type | Default |
|---|---|---|
src | number | - |
level | number | - |
setPlayerCategoryLevel
Sets the player's level for a specific crafting category. Returns a boolean indicating success.
| Prop | Type | Default |
|---|---|---|
src | number | - |
category | string | - |
level | number | - |
givePortableItem
Gives a player a portable crafting bench item. Returns a boolean indicating success.
| Prop | Type | Default |
|---|---|---|
src | number | - |
benchType | string | - |
setEntityAsBench
Assigns an entity as a crafting bench. Returns a boolean indicating success.
| Prop | Type | Default |
|---|---|---|
entity | number | - |
benchType | string | - |
removeEntityAsBench
Removes an entity from being a crafting bench. Returns a boolean indicating success.
| Prop | Type | Default |
|---|---|---|
entity | number | - |
setCoordAsBench
Assigns a coordinate as a crafting bench. Returns a boolean indicating success.
| Prop | Type | Default |
|---|---|---|
coord | vector4 | - |
benchType | string | - |
routingBucket | string | - |
getBenchModels
Retrieves a table containing the models for all crafting benches.
Bench Locations
getBenchLocations
Retrieves a paginated list of bench locations.
| Prop | Type | Default |
|---|---|---|
data | table | - |
getBenchLocation
Retrieves a single bench location by ID.
| Prop | Type | Default |
|---|---|---|
id | string | - |
createBenchLocation
Creates a new bench location.
| Prop | Type | Default |
|---|---|---|
data | table | - |
updateBenchLocation
Updates an existing bench location.
| Prop | Type | Default |
|---|---|---|
data | table | - |
deleteBenchLocation
Deletes a bench location by ID.
| Prop | Type | Default |
|---|---|---|
id | string | - |
Bench Types
getBenchTypes
Retrieves a paginated list of bench types.
| Prop | Type | Default |
|---|---|---|
data | table | - |
getBenchType
Retrieves a single bench type by ID.
| Prop | Type | Default |
|---|---|---|
id | string | - |
getBenchTypeLocations
Retrieves all locations for a specific bench type.
| Prop | Type | Default |
|---|---|---|
id | string | - |
getAccessIdentifiers
Retrieves available access identifiers from the framework.
createBenchType
Creates a new bench type.
| Prop | Type | Default |
|---|---|---|
data | table | - |
updateBenchType
Updates an existing bench type.
| Prop | Type | Default |
|---|---|---|
data | table | - |
deleteBenchType
Deletes a bench type by ID.
| Prop | Type | Default |
|---|---|---|
id | string | - |
Blueprints
getTotalBlueprints
Retrieves the total count of blueprints, optionally filtered by search term.
| Prop | Type | Default |
|---|---|---|
search | string | - |
fetchBlueprints
Retrieves a paginated list of blueprints.
| Prop | Type | Default |
|---|---|---|
data | table | - |
getBlueprint
Retrieves a single blueprint by ID.
| Prop | Type | Default |
|---|---|---|
id | string | - |
createBlueprint
Creates a new blueprint.
| Prop | Type | Default |
|---|---|---|
data | table | - |
updateBlueprint
Updates an existing blueprint.
| Prop | Type | Default |
|---|---|---|
data | table | - |
deleteBlueprint
Deletes a blueprint by ID.
| Prop | Type | Default |
|---|---|---|
data | table | - |
Categories
getCategories
Retrieves all crafting categories.
getCategoryRecipes
Retrieves recipes for a specific category with pagination.
| Prop | Type | Default |
|---|---|---|
data | table | - |
createCategory
Creates a new crafting category.
| Prop | Type | Default |
|---|---|---|
data | table | - |
updateCategory
Updates an existing category.
| Prop | Type | Default |
|---|---|---|
data | table | - |
deleteCategory
Deletes a category by ID.
| Prop | Type | Default |
|---|---|---|
data | table | - |
Recipes
fetchRecipeIngredients
Retrieves all ingredients for a specific recipe.
| Prop | Type | Default |
|---|---|---|
id | string | - |
fetchRecipeBlueprints
Retrieves all blueprints required for a specific recipe.
| Prop | Type | Default |
|---|---|---|
id | string | - |
getRecipe
Retrieves a single recipe by ID.
| Prop | Type | Default |
|---|---|---|
id | string | - |
createRecipe
Creates a new recipe.
| Prop | Type | Default |
|---|---|---|
data | table | - |
updateRecipe
Updates an existing recipe.
| Prop | Type | Default |
|---|---|---|
data | table | - |
deleteRecipe
Deletes a recipe by ID.
| Prop | Type | Default |
|---|---|---|
data | table | - |
updateRecipeOrder
Updates the order of a recipe within a category or moves it to a different category.
| Prop | Type | Default |
|---|---|---|
data | table | - |
Items
fetchItems
Retrieves a paginated list of items from the inventory system.
| Prop | Type | Default |
|---|---|---|
data | table | - |
getItem
Retrieves a single item by name.
| Prop | Type | Default |
|---|---|---|
name | string | - |