Limits

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 01:36, 25 January 2018
RIDE2DAY (Talk | contribs)

← Previous diff
Revision as of 14:03, 11 March 2018
Codeah (Talk | contribs)
(Replaced weird symbols with proper numbering)
Next diff →
Line 11: Line 11:
|- |-
- | [[CreateVehicle|Vehicles]] ✝✝+ | [[CreateVehicle|Vehicles]] <sup>'''(4)'''</sup>
| 2000 | 2000
|- |-
| [[GetVehicleModel|Vehicle Models]] | [[GetVehicleModel|Vehicle Models]]
- | Unlimited **+ | Unlimited <sup>'''(1)'''</sup>
|- |-
- | [[CreateObject|Objects]] ✝✝+ | [[CreateObject|Objects]] <sup>'''(4)'''</sup>
| 1000 | 1000
Line 35: Line 35:
|- |-
- | [[SetPlayerMapIcon|Map Icons]] ✝✝+ | [[SetPlayerMapIcon|Map Icons]] <sup>'''(4)'''</sup>
| 100 | 100
|- |-
- | [[SetPlayerRaceCheckpoint|Race Checkpoints]] ✝✝+ | [[SetPlayerRaceCheckpoint|Race Checkpoints]] <sup>'''(4)'''</sup>
| 1 | 1
|- |-
- | [[SetPlayerCheckpoint|Checkpoints]] ✝✝+ | [[SetPlayerCheckpoint|Checkpoints]] <sup>'''(4)'''</sup>
| 1 | 1
|- |-
- | [[CreatePickup|Pickups]] ✝✝+ | [[CreatePickup|Pickups]] <sup>'''(4)'''</sup>
| 4096 | 4096
|- |-
- | [[Create3DTextLabel|Global 3D Labels]] ✝✝+ | [[Create3DTextLabel|Global 3D Labels]] <sup>'''(4)'''</sup>
| 1024 | 1024
|- |-
- | [[CreatePlayer3DTextLabel|Per-player 3D Text Labels]] ✝✝+ | [[CreatePlayer3DTextLabel|Per-player 3D Text Labels]] <sup>'''(4)'''</sup>
| 1024 | 1024
Line 82: Line 82:
|- |-
- | [[CreateActor|Actors]] (since 0.3.7) ✝✝+ | [[CreateActor|Actors]] (since 0.3.7) <sup>'''(4)'''</sup>
| 1000 | 1000
Line 117: Line 117:
|- |-
| String Length | String Length
- | 1024 characters ***+ | 1024 characters <sup>'''(2)'''</sup>
|- |-
| Shown In A Single Client's Screen | Shown In A Single Client's Screen
- | 2048 + 256 + | 2048 + 256 <sup>'''(3)'''</sup>
|- |-
Line 171: Line 171:
'''Notes:''' '''Notes:'''
-* (**) 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.+ 
-* (***) Although the textdraw string limit is 1024 characters, if [http://wiki.sa-mp.com/wiki/GameTextStyle#Text_Colors colour codes] (e.g. ~r~) are used beyond the 255th character it may crash the client.+* '''(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.
-* () It is possible to show all Textdraws at the same time for one player, however this is not recommended.+ 
-* (✝✝) 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 [http://forum.sa-mp.com/showthread.php?t=102865 here] (vehicles not supported, but there are streamers out there for those).+* '''(2)''' Although the textdraw string limit is 1024 characters, if [http://wiki.sa-mp.com/wiki/GameTextStyle#Text_Colors colour codes] (e.g. ~r~) are used beyond the 255th character it may crash the client.
 + 
 +* '''(3)''' It is possible to show all Textdraws at the same time for one player, however this is not recommended.
 + 
 +* '''(4)''' 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 [http://forum.sa-mp.com/showthread.php?t=102865 here] (vehicles not supported, but there are streamers out there for those).
 + 
* Vehicle ids go from 1 to 1999, even if MAX_VEHICLES is 2000. * Vehicle ids go from 1 to 1999, even if MAX_VEHICLES is 2000.

Revision as of 14:03, 11 March 2018

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

Script Property 0.3.7
Players 1000
Vehicles (4) 2000
Vehicle Models Unlimited (1)
Objects (4) 1000
Virtual Worlds 2,147,483,647
Interiors 255
Classes 320
Map Icons (4) 100
Race Checkpoints (4) 1
Checkpoints (4) 1
Pickups (4) 4096
Global 3D Labels (4) 1024
Per-player 3D Text Labels (4) 1024
Chat Bubble String 144 characters
SetObjectMaterialText,SetPlayerObjectMaterialText Text length 2048 characters
Gangzones 1024
Menus 128
Attached player objects 10
Player Variables 800
Actors (since 0.3.7) (4) 1000
Server Property 0.3.7
Gamemodes 16
Filterscripts 16
Text Input (Chat/Commands) 128 cells (512 bytes)
Text Output (Chat/Commands) 144 cells (576 bytes)
Name Length (SetPlayerName) 24 characters
Textdraws 0.3.7
String Length 1024 characters (2)
Shown In A Single Client's Screen 2048 + 256 (3)
Shown In A Single Client's Screen (sprites) 100
Created Serverwise (Global) 2048
Created Serverwise (Per-Player) 256
Dialogs 0.3.7
Dialog IDs 32767
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.
  • (2) 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.
  • (3) It is possible to show all Textdraws at the same time for one player, however this is not recommended.
  • (4) 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).
  • Vehicle ids go from 1 to 1999, even if MAX_VEHICLES is 2000.
Personal tools