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.