Table of Contents

Class OpenMpConstants

Namespace
SampSharp.OpenMp.Core.Api
Assembly
SampSharp.OpenMp.Core.dll

Contains constants provided by the open.mp SDK.

public static class OpenMpConstants
Inheritance
OpenMpConstants
Inherited Members

Fields

ACTOR_POOL_SIZE

The maximum number of actors in the server.

public const int ACTOR_POOL_SIZE = 1000

Field Value

int

CLASS_POOL_SIZE

The maximum number of classes in the server.

public const int CLASS_POOL_SIZE = 320

Field Value

int

GANG_ZONE_POOL_SIZE

The maximum number of gang zones in the server.

public const int GANG_ZONE_POOL_SIZE = 1024

Field Value

int

GLOBAL_TEXTDRAW_POOL_SIZE

The maximum number of global text draws in the server.

public const int GLOBAL_TEXTDRAW_POOL_SIZE = 2048

Field Value

int

INVALID_ACTOR_ID

The ID used to represent an invalid actor ID.

public const int INVALID_ACTOR_ID = 65535

Field Value

int

INVALID_COMPONENT_ID

The ID used to represent an invalid vehicle component ID.

public const int INVALID_COMPONENT_ID = 0

Field Value

int

INVALID_DIALOG_ID

The ID used to represent an invalid dialog ID.

public const int INVALID_DIALOG_ID = -1

Field Value

int

INVALID_GANG_ZONE_ID

The ID used to represent an invalid gang zone ID.

public const int INVALID_GANG_ZONE_ID = -1

Field Value

int

INVALID_MENU_ID

The ID used to represent an invalid menu ID.

public const int INVALID_MENU_ID = 255

Field Value

int

INVALID_MENU_ITEM_ID

The ID used to represent an invalid menu item ID.

public const int INVALID_MENU_ITEM_ID = -1

Field Value

int

INVALID_MODEL_ID

The ID used to represent an invalid model ID.

public const ushort INVALID_MODEL_ID = 65535

Field Value

ushort

INVALID_NODE_ID

The ID used to represent an invalid node ID.

public const int INVALID_NODE_ID = -1

Field Value

int

INVALID_OBJECT_ID

The ID used to represent an invalid object ID.

public const int INVALID_OBJECT_ID = 65535

Field Value

int

INVALID_OBJECT_MODEL_ID

The ID used to represent an invalid object model ID.

public const int INVALID_OBJECT_MODEL_ID = -1

Field Value

int

INVALID_PATH_ID

The ID used to represent an invalid path ID.

public const int INVALID_PATH_ID = -1

Field Value

int

INVALID_PICKUP_ID

The ID used to represent an invalid pickup ID.

public const int INVALID_PICKUP_ID = -1

Field Value

int

INVALID_PLAYER_ID

The ID used to represent an invalid player ID.

public const int INVALID_PLAYER_ID = 65535

Field Value

int

INVALID_RECORD_ID

The ID used to represent an invalid record ID.

public const int INVALID_RECORD_ID = -1

Field Value

int

INVALID_TEXTDRAW

The ID used to represent an invalid text draw ID.

public const int INVALID_TEXTDRAW = 65535

Field Value

int

INVALID_TEXT_LABEL_ID

The ID used to represent an invalid text label ID.

public const int INVALID_TEXT_LABEL_ID = 65535

Field Value

int

INVALID_VEHICLE_ID

The ID used to represent an invalid vehicle ID.

public const int INVALID_VEHICLE_ID = 65535

Field Value

int

INVALID_WEAPON_SLOT

The slot ID which represents an invalid weapon slot.

public const byte INVALID_WEAPON_SLOT = 255

Field Value

byte

MAX_ANIMATIONS

The highest animation ID.

public const int MAX_ANIMATIONS = 1813

Field Value

int

MAX_ATTACHED_OBJECT_SLOTS

The number of objects which can be attached to a player.

public const int MAX_ATTACHED_OBJECT_SLOTS = 10

Field Value

int

MAX_CUSTOM_OBJECT_ID

The maximum ID for custom object models.

public const int MAX_CUSTOM_OBJECT_ID = -1000

Field Value

int

MAX_CUSTOM_SKIN_ID

The maximum ID for custom skins.

public const int MAX_CUSTOM_SKIN_ID = 30000

Field Value

int

MAX_DIALOG

The maximum ID a dialog can have.

public const int MAX_DIALOG = 32768

Field Value

int

MAX_GAMETEXT_STYLES

The highest game text style ID.

public const int MAX_GAMETEXT_STYLES = 16

Field Value

int

MAX_GLOBAL_TEXTDRAWS

The maximum number of global text draws which can be shown to a player.

public const int MAX_GLOBAL_TEXTDRAWS = 2048

Field Value

int

MAX_MENU_ITEMS

The maximum number of items in a menu.

public const int MAX_MENU_ITEMS = 12

Field Value

int

MAX_MENU_TEXT_LENGTH

The maximum length of text in a menu.

public const int MAX_MENU_TEXT_LENGTH = 32

Field Value

int

MAX_OBJECT_MATERIAL_SLOTS

The number of materials an object can have.

public const int MAX_OBJECT_MATERIAL_SLOTS = 16

Field Value

int

MAX_PLAYER_NAME

The maximum length of a player name.

public const int MAX_PLAYER_NAME = 24

Field Value

int

MAX_PLAYER_TEXTDRAWS

The maximum number of player text draws which can be shown to a player.

public const int MAX_PLAYER_TEXTDRAWS = 256

Field Value

int

MAX_SEATS

The maximum number of seats in a vehicle.

public const int MAX_SEATS = 4

Field Value

int

MAX_SKILL_LEVEL

The maximum level a player can have in a skill.

public const int MAX_SKILL_LEVEL = 999

Field Value

int

MAX_STREAMED_ACTORS

The maximum number of actors which can be streamed in for a player.

public const int MAX_STREAMED_ACTORS = 50

Field Value

int

MAX_STREAMED_PLAYERS

The maximum number of players which can be streamed in for a player.

public const int MAX_STREAMED_PLAYERS = 200

Field Value

int

MAX_STREAMED_VEHICLES

The maximum number of vehicles which can be streamed in for a player.

public const int MAX_STREAMED_VEHICLES = 700

Field Value

int

MAX_TEXTDRAW_STR_LENGTH

The maximum length of a text draw string.

public const int MAX_TEXTDRAW_STR_LENGTH = 800

Field Value

int

MAX_TEXT_LABELS

The maximum number of text labels in the server.

public const int MAX_TEXT_LABELS = 1024

Field Value

int

MAX_VEHICLE_CARRIAGES

The maximum number of connected vehicle carriages.

public const int MAX_VEHICLE_CARRIAGES = 3

Field Value

int

MAX_VEHICLE_COMPONENTS

The highest vehicle component ID.

public const int MAX_VEHICLE_COMPONENTS = 194

Field Value

int

MAX_VEHICLE_COMPONENT_SLOT

The highest vehicle component slot.

public const int MAX_VEHICLE_COMPONENT_SLOT = 16

Field Value

int

MAX_VEHICLE_COMPONENT_SLOT_IN_RPC

The highest vehicle component slot in an RPC.

public const int MAX_VEHICLE_COMPONENT_SLOT_IN_RPC = 14

Field Value

int

MAX_VEHICLE_MODELS

The maximum number of vehicle models.

public const int MAX_VEHICLE_MODELS = 212

Field Value

int

MAX_WEAPON_ID

The highest weapon ID.

public const int MAX_WEAPON_ID = 47

Field Value

int

MAX_WEAPON_SLOTS

The number of weapon slots a player has.

public const int MAX_WEAPON_SLOTS = 13

Field Value

int

MAX_WORLD_BOUNDS

The default upper X/Y bounds of the world

public const float MAX_WORLD_BOUNDS = 20000

Field Value

float

MENU_POOL_SIZE

The maximum number of menus in the server.

public const int MENU_POOL_SIZE = 128

Field Value

int

MIN_CUSTOM_OBJECT_ID

The minimum ID for custom object models.

public const int MIN_CUSTOM_OBJECT_ID = -30000

Field Value

int

MIN_CUSTOM_SKIN_ID

The minimum ID for custom skins.

public const int MIN_CUSTOM_SKIN_ID = 20001

Field Value

int

MIN_PLAYER_NAME

The minimum length of a player name.

public const int MIN_PLAYER_NAME = 3

Field Value

int

MIN_WORLD_BOUNDS

The default lower X/Y bounds of the world.

public const float MIN_WORLD_BOUNDS = -20000

Field Value

float

MPC_POOL_SIZE

The maximum number of NPCs in the server.

public const int MPC_POOL_SIZE = 1000

Field Value

int

NPC_MOVE_SPEED_AUTO

The speed at which NPCs will move when using the "auto" movement type.

public const float NPC_MOVE_SPEED_AUTO = -1

Field Value

float

NPC_MOVE_SPEED_JOG

The speed at which NPCs will move when using the "jog" movement type.

public const float NPC_MOVE_SPEED_JOG = 0.56444

Field Value

float

NPC_MOVE_SPEED_SPRINT

The speed at which NPCs will move when using the "sprint" movement type.

public const float NPC_MOVE_SPEED_SPRINT = 0.926784

Field Value

float

NPC_MOVE_SPEED_WALK

The speed at which NPCs will move when using the "walk" movement type.

public const float NPC_MOVE_SPEED_WALK = 0.1552086

Field Value

float

NUM_SKILL_LEVELS

The number of skills a player has.

public const int NUM_SKILL_LEVELS = 11

Field Value

int

OBJECT_POOL_SIZE

The maximum number of objects in the server.

public const int OBJECT_POOL_SIZE = 2000

Field Value

int

OBJECT_POOL_SIZE_037

The maximum number of objects clients with a version of 0.3.7 can see.

public const int OBJECT_POOL_SIZE_037 = 1000

Field Value

int

PICKUP_POOL_SIZE

The maximum number of pickups in the server.

public const int PICKUP_POOL_SIZE = 4096

Field Value

int

PLAYER_POOL_SIZE

The maximum number of players in the server.

public const int PLAYER_POOL_SIZE = 1000

Field Value

int

PLAYER_TEXTDRAW_POOL_SIZE

The maximum number of player text draws in the server.

public const int PLAYER_TEXTDRAW_POOL_SIZE = 256

Field Value

int

QUESTION_MARK_MODEL_ID

The ID of the question mark object model.

public const int QUESTION_MARK_MODEL_ID = 18631

Field Value

int

SEAT_NONE

The seat ID used to represent no seat.

public const int SEAT_NONE = -1

Field Value

int

STREAM_DISTANCE

The distance at which objects are streamed in.

public const float STREAM_DISTANCE = 200

Field Value

float

TEAM_NONE

The team ID used to represent no team.

public const int TEAM_NONE = 255

Field Value

int

TEXT_LABEL_POOL_SIZE

The maximum number of text labels in the server

public const int TEXT_LABEL_POOL_SIZE = 1024

Field Value

int

VEHICLE_POOL_SIZE

The maximum number of vehicles in the server.

public const int VEHICLE_POOL_SIZE = 2000

Field Value

int