MTA: San Andreas scripting
MTA:SA script and resource numbers
These numbers are for people writing MTA resources. They are not the codes a player sees in a dialog: they arrive in events and callbacks such as onClientBrowserLoadingFailed, fetchRemote and the client manual's tables. They are listed here because the same number means different things in different places.
Browser loading failures
The number given to onClientBrowserLoadingFailed when a page inside the game fails to load.
| Number | Meaning |
|---|---|
0 | No error |
-2 | General failure |
-3 | Cancelled |
-4 | Argument invalid |
-5 | Handle invalid |
-6 | File absent |
-7 | Timeout |
-8 | Oversized file |
-9 | Unexpected failure |
-10 | Access denied |
-11 | Unimplemented operation |
-100 | Connection closed |
-101 | Connection reset |
-102 | Connection refused |
-103 | Connection aborted |
-104 | Connection failed |
-105 | Name unresolved |
-106 | Internet disconnected |
-107 | SSL protocol failure |
-108 | Address invalid |
-109 | Address unreachable |
-110 | Client certificate required |
-111 | Tunnel connection failed |
-112 | SSL versions disabled |
-113 | SSL version/cipher mismatch |
-114 | SSL renegotiation requested |
-200 | Certificate hostname mismatch |
-201 | Certificate date invalid |
-202 | Certificate authority invalid |
-203 | Certificate errors |
-204 | Revocation mechanism absent |
-205 | Revocation check unavailable |
-206 | Certificate revoked |
-207 | Certificate invalid |
-208 | Certificate range-end marker |
-300 | URL invalid |
-301 | Scheme disallowed |
-302 | Scheme unknown |
-310 | Excess redirects |
-311 | Unsafe redirect |
-312 | Unsafe port |
-320 | Response invalid |
-321 | Chunk encoding invalid |
-322 | Method unsupported |
-323 | Unexpected proxy authentication |
-324 | Empty response |
-325 | Oversized response headers |
-400 | Cache miss |
-501 | Insecure response |
Client download errors
The client manual's download error numbers.
| Number | Meaning |
|---|---|
0 | Unclassified failure |
1 | File descriptors invalid |
2 | Maximum descriptor invalid |
3 | Select result invalid |
4 | Initial multi-perform invalid |
5 | Multi-perform result invalid |
6 | New-download multi-perform invalid |
7 | Unexpected cURL message |
8 | Connection unavailable |
9 | Download failed |
10 | Download initialization failed |
Fatal client errors
The client manual's fatal error numbers.
| Number | Meaning |
|---|---|
1 | Ingame-event player-model absent |
2 | Ingame-event player absent |
3 | Server downloads disabled |
4 | Player-list player-model absent |
5 | Player-list player absent |
6 | Entity custom-data length invalid |
7 | Entity bitstream invalid |
8 | System entity received |
9 | Object creation failed |
10 | Pickup creation failed |
11 | Vehicle creation failed |
12 | Team-name length invalid |
13 | Lua-event-name length invalid |
14 | Resource-name length invalid |
Unable to enter a vehicle
Why the client refused a vehicle entry.
| Number | Meaning |
|---|---|
1 | Script cancellation |
2 | Script cancellation: jacking |
3 | Occupier entering/exiting |
4 | Seat invalid |
5 | Too distant |
6 | Already seated |
7 | Entry/exit underway |
8 | Trailer/invalid vehicle |
fetchRemote and callRemote
MTA's own result numbers. Values from 1 to 89 are cURL results and belong to that library, not to MTA.
| Number | Meaning |
|---|---|
1002 | Request aborted |
1003 | Initialization failure |
1004 | URL parse failure |
1005 | Hostname resolution failure |
1006 | Destination IP disallowed |
1007 | File operation failure |
The codes players see · Crash codes and offsets
Where this comes from
- wiki.multitheftauto.com/wiki/Client_Manual
- wiki.multitheftauto.com/wiki/OnClientBrowserLoadingFailed
- wiki.multitheftauto.com/wiki/FetchRemote
Meanings read from these sources on 5 September 2026 and written in our own words here.