Search

addPenMenuPoint

Description:

Creates a pen menu location.

Parameters:

| Pen Name

The name of the pen which you wish to change the menu location for.

Example:

/addPenMenuPoint testRanch1

Admin Level

2

addPenSpawnCoords

Description:

Set the pen spawn location for given pen ID.

Parameters:

| Pen Name

The name of the pen which you wish to change the menu location for.

Example:

/addPenSpawnCoords testRanch1

Admin Level

2

startPen

Description:

Start the creation of a pen.

Example:

/startPen

Admin Level

2

emptyLocalPens

Description:

Removes local pen data currently in creation.

Example:

/emptyLocalPens

Admin Level

2

addPoint

Description:

Adds a point to the current working pen.

Example:

/addPoint

Admin Level

2

undoPoint

Description:

Removes the last point in the working pen creation array.

Example:

/undoPoint

Admin Level

2

cancelPen

Description:

Cancels the creation of the current working pen creation array and removes it.

Example:

/cancelPen

Admin Level

2

drawPens

Description:

Draw all local pens on screen using debug lines.

Example:

/drawPens

Admin Level

2

getPenByType

Description:

Get all pen data by type to local based on business id.

Parameters:

| Type

The type of livestock pen. Can be cattle, sheep, pig, chicken, or goat.

| Business ID (Optional)

Specify the business id of the pen data to return.

Example:

/getPenByType cattle

Admin Level

2

getAllPenData

Description:

Get ALL pen dta to local based on your current business id.

Example:

/getAllPenData

Admin Level

2

finishPen

Description:

Complete the creation of the pen and save it in the database.

Parameters:

| Pen Name

Name of the pen to be created.

| Business ID

ID of the business to assign the pen to.

Example:

/finishPen test 1

Admin Level

2

checkStockyardInventory

Description:

Checks ALL the stockyard inventories on the back end and refreshes them if need be.

Example:

/checkStockyardInventory

Admin Level

2

refreshStockyardInventory

Description:

Completely refreshes ALL stockyard inventories.

Example:

/refreshStockyardInventory

Admin Level

2

toggleCoreDebugging

Description:

Toggles console debugging output for the ranching_core script

Example:

/toggleCoreDebugging

Admin Level

2

toggleMenuDebugging

Description:

Toggles console debugging output for the ranching_menus script

Example:

/toggleCoreDebugging

Admin Level

2

spawnPlayerLivestock

Description:

Spawns all given livestock type for a player's business no matter where they are.

Parameters:

| Livestock Type

The livestock type or 'all'. Can be cattle, sheep, pig, chicken, or goat.

Example:

/spawnPlayerLivestock all

Admin Level

2

putLivestockAway

Description:

Puts away a business livestock no matter where they are.

Parameters:

| Livestock Type

The livestock type or 'all'. Can be cattle, sheep, pig, chicken, or goat.

Example:

/putLivestockAway all

Admin Level

2

spawnAnimal

Description:

Spawns a given animal type by either a pre-defined name or by the animal ped model string. Can be cow, sheep, pig, chicken, or goat a swell.

Parameters:

| Animal Type

The livestock type. Can be cattle, sheep, pig, chicken, goat, or an animal ped model string.

| Outfit OR T/F

If given an umber, it will set the outfit. If given True or False it will determine if it should be a livestock animal.

| T/F or Livestock Type (Requires a number on previous)

If given an outfit number, this will be True or False to determine if it should be a livestock animal. If no outfit is given, this will determine livestock type.

| Livestock Type (Requires T/F to previous)

This will determine the livestock type if an outfit is given.

Example:

/spawnPlayerLivestock

Admin Level

2

spawnObject

Description:

Spawns a given object on the players location.

Parameters:

| Object Model

The object model string to be spawned.

Example:

/spawnObject p_campfire04x

Admin Level

2

setMilked

Description:

Sets how many times you would have milked a cow (for testing/debugging purposes).

Parameters:

| Number

The number to set the 'setMilked' amount to.

Example:

/setMilked 10

Admin Level

2

clearChores

Description:

Clears the chores on the player and removes any objects associated.

Example:

/clearChores

Admin Level

2

hideMenu

Description:

Clears the specified UI element.

Parameters:

| UI Screen

This has to be a specific UI element in its exact wording/capitalization.

Example:

/hideMenu Stockyards

Admin Level

2

getRanchingMenus

Description:

This will get ALL ranching menus, useful for when creating new menus and need to grab it from the DB.

Example:

/getRanchingMenus

Admin Level

2

addRanchingMenu

Description:

Create a new menu for ranching purposes, can be a pen or livestock menu.

Parameters:

| Menu Name

A name for the menu (should be unique).

| Menu Type

The menu type. Can be pen name, cattle, sheep, pig, chicken, or goat

Example:

/addRanchingMenu cattle

Admin Level

2

addRanchingMenuSpawnCoords

Description:

Sets the location that livestock will spawn when interacting with the menu. Uses the player's location.

Parameters:

| Menu Name

The menu you wish to change the spawn coords for.

Example:

/addRanchingMenuSpawnCoords test

Admin Level

2