Skip to content

Latest commit

 

History

History
201 lines (125 loc) · 8.14 KB

2. SA-MP.md

File metadata and controls

201 lines (125 loc) · 8.14 KB

SA:MP

Limits

SA:MP has certain limitations, below is a table of most limits that are in SA:MP.

Script Property

Script Property 0.3.7
Players 1000
Vehicles 2000
Vehicle Models Unlimited
Objects 1000
Virtual Worlds 2,147,483,647
Interiors 256
Classes 320
Map Icons 100
Race Checkpoints 1
Checkpoints 1
Pickups 4096
Global 3D Labels 1024
Per-player 3D Text Labels 1024
Chat Bubble String 144 characters
SetObjectMaterialText(), SetPlayerObjectMaterialText() Text length 2048 characters
Gangzones 1024
Menus 128
Attached player objects 10
Player Variables 800
Actors 1000
Attached player objects 10

Server Property

Server Property 0.3.7
Gamemodes 16
Filterscripts 16
Text Input (Chat/Commands) 128
Text Output 144
Name Length (SetPlayerName()) 24

Textdraws

Textdraws 0.3.7
String Length 1024
Shown In A Single Client's Screen 2048 + 256
Shown In A Single Client's Screen (sprites) 100
Created Serverwise (Global) 2048
Created Serverwise (Per-Player) 256

Dialogs

Dialogs 0.3.7
Dialog IDs 32768
Info (Main text) 4096
Caption 64
Input Text Box (DIALOG_STYLE_INPUT/PASSWORD) 128
Tab List Columns (DIALOG_STYLE_TABLIST(_HEADERS) 4
Tab List Column Characters (DIALOG_STYLE_TABLIST(_HEADERS)) 128
Tab List Row Characters (DIALOG_STYLE_TABLIST(_HEADERS)) 256

Notes

    1. Although the vehicle model limit in 0.3 is unlimited, if you use a large amount of vehicle models, you may notice parts of your mode become framey as vehicle models are dynamically loaded/unloaded. Keeping the number of vehicle models below 150 is a good idea*.
    1. Although the textdraw string limit is 1024 characters, if colour codes (e.g. r) are used beyond the 255th character it may crash the client.
    1. It is possible to show all Textdraws at the same time for one player, however this is not recommended.
    1. To circumvent these limits, it is possible to use a streamer. Streamers work by only creating the objects/vehicles etc. that are close to players. See here (vehicles not supported, but there are streamers out there for those).
    1. Due to client limitations only up to 51 actors may actually be shown at a time.
    1. Vehicle ID's start at ID 1 and thus range from 1 to 1999, even if MAX_VEHICLES is 2000. Objects and player objects also start at ID 1.

Additional

Angle Modes

Animations

Body parts

Bone IDs

Bullet Hit Types

Callbacks Sequence

Camera Cut Styles

Camera Modes

Car Component IDs

Click Sources

Color List

Component slots

Connection status

Crime List

Damage Status

Dialog Styles

Door States

Escape Codes

Explosion Lists

Fighting Styles

Floatround Modes

GameText Styles

Hex Colors

How to get the Interior ID

Keys

Light States

Map Icons

Map Icon Styles

Marker Modes

Material Text Alignments

Material Text Sizes

Network Stats

Object Edition Response Types

Original Car Colors

Paintjobs

Panel States

Pickup ID's

Pickup Types

Player States

Pvar Types

Record Types

SA-MP Objects

Select Object Types

Shop Names

Skins

Sound IDs

Special Actions

Spectate Modes

Starting IDs

Svar Types

Material Text Alignments

Textdraws

TextDraw Sprites

Tire States

Vehicle Color IDs

Vehicle Health

Vehicle IDs

Vehicle Information Types

Vending Machines

Weapon IDs

Weapon Skills

Weapon States

Weather IDs