[INCLUDE] SF

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
// RPCs
const
RPC_CLICKPLAYER = 23
RPC_CLIENTJOIN = 25
RPC_ENTERVEHICLE = 26
RPC_ENTEREDITOBJECT = 27
RPC_SCRIPTCASH = 31
RPC_SERVERCOMMAND = 50
RPC_SPAWN = 52
RPC_DEATH = 53
RPC_NPCJOIN = 54
RPC_DIALOGRESPONSE = 62
RPC_CLICKTEXTDRAW = 83
RPC_SCMEVENT = 96
RPC_WEAPONPICKUPDESTROY = 97
RPC_CHAT = 101
RPC_SRVNETSTATS = 102
RPC_CLIENTCHECK = 103
RPC_DAMAGEVEHICLE = 106
RPC_GIVETAKEDAMAGE = 115
RPC_EDITATTACHEDOBJECT = 116
RPC_EDITOBJECT = 117
RPC_SETINTERIORID = 118
RPC_MAPMARKER = 119
RPC_REQUESTCLASS = 128
RPC_REQUESTSPAWN = 129
RPC_PICKEDUPPICKUP = 131
RPC_MENUSELECT = 132
RPC_VEHICLEDESTROYED = 136
RPC_MENUQUIT = 140
RPC_EXITVEHICLE = 154
RPC_UPDATESCORESPINGSIPS = 155
end
// Scripting/Server RPCs
const
RPC_SCRSETPLAYERNAME = 11
RPC_SCRSETPLAYERPOS = 12
RPC_SCRSETPLAYERPOSFINDZ = 13
RPC_SCRSETPLAYERHEALTH = 14
RPC_SCRTOGGLEPLAYERCONTROLLABLE = 15
RPC_SCRPLAYSOUND = 16
RPC_SCRSETPLAYERWORLDBOUNDS = 17
RPC_SCRGIVEPLAYERMONEY = 18
RPC_SCRSETPLAYERFACINGANGLE = 19
RPC_SCRRESETPLAYERMONEY = 20
RPC_SCRRESETPLAYERWEAPONS = 21
RPC_SCRGIVEPLAYERWEAPON = 22
RPC_SCRSETVEHICLEPARAMSEX = 24
RPC_SCRCANCELEDIT = 28
RPC_SCRSETPLAYERTIME = 29
RPC_SCRTOGGLECLOCK = 30
RPC_SCRWORLDPLAYERADD = 32
RPC_SCRSETPLAYERSHOPNAME = 33
RPC_SCRSETPLAYERSKILLLEVEL = 34
RPC_SCRSETPLAYERDRUNKLEVEL = 35
RPC_SCRCREATE3DTEXTLABEL = 36
RPC_SCRDISABLECHECKPOINT = 37
RPC_SCRSETRACECHECKPOINT = 38
RPC_SCRDISABLERACECHECKPOINT = 39
RPC_SCRGAMEMODERESTART = 40
RPC_SCRPLAYAUDIOSTREAM = 41
RPC_SCRSTOPAUDIOSTREAM = 42
RPC_SCRREMOVEBUILDINGFORPLAYER = 43
RPC_SCRCREATEOBJECT = 44
RPC_SCRSETOBJECTPOS = 45
RPC_SCRSETOBJECTROT = 46
RPC_SCRDESTROYOBJECT = 47
RPC_SCRDEATHMESSAGE = 55
RPC_SCRSETPLAYERMAPICON = 56
RPC_SCRREMOVEVEHICLECOMPONENT = 57
RPC_SCRUPDATE3DTEXTLABEL = 58
RPC_SCRCHATBUBBLE = 59
RPC_SCRSOMEUPDATE = 60
RPC_SCRSHOWDIALOG = 61
RPC_SCRDESTROYPICKUP = 63
RPC_SCRLINKVEHICLETOINTERIOR = 65
RPC_SCRSETPLAYERARMOUR = 66
RPC_SCRSETPLAYERARMEDWEAPON = 67
RPC_SCRSETSPAWNINFO = 68
RPC_SCRSETPLAYERTEAM = 69
RPC_SCRPUTPLAYERINVEHICLE = 70
RPC_SCRREMOVEPLAYERFROMVEHICLE = 71
RPC_SCRSETPLAYERCOLOR = 72
RPC_SCRDISPLAYGAMETEXT = 73
RPC_SCRFORCECLASSSELECTION = 74
RPC_SCRATTACHOBJECTTOPLAYER = 75
RPC_SCRINITMENU = 76
RPC_SCRSHOWMENU = 77
RPC_SCRHIDEMENU = 78
RPC_SCRCREATEEXPLOSION = 79
RPC_SCRSHOWPLAYERNAMETAGFORPLAYER = 80
RPC_SCRATTACHCAMERATOOBJECT = 81
RPC_SCRINTERPOLATECAMERA = 82
RPC_SCRSETOBJECTMATERIAL = 84
RPC_SCRGANGZONESTOPFLASH = 85
RPC_SCRAPPLYANIMATION = 86
RPC_SCRCLEARANIMATIONS = 87
RPC_SCRSETPLAYERSPECIALACTION = 88
RPC_SCRSETPLAYERFIGHTINGSTYLE = 89
RPC_SCRSETPLAYERVELOCITY = 90
RPC_SCRSETVEHICLEVELOCITY = 91
RPC_SCRCLIENTMESSAGE = 93
RPC_SCRSETWORLDTIME = 94
RPC_SCRCREATEPICKUP = 95
RPC_SCRMOVEOBJECT = 99
RPC_SCRENABLESTUNTBONUSFORPLAYER = 104
RPC_SCRTEXTDRAWSETSTRING = 105
RPC_SCRSETCHECKPOINT = 107
RPC_SCRGANGZONECREATE = 108
RPC_SCRPLAYCRIMEREPORT = 112
RPC_SCRSETPLAYERATTACHEDOBJECT = 113
RPC_SCRGANGZONEDESTROY = 120
RPC_SCRGANGZONEFLASH = 121
RPC_SCRSTOPOBJECT = 122
RPC_SCRSETNUMBERPLATE = 123
RPC_SCRTOGGLEPLAYERSPECTATING = 124
RPC_SCRPLAYERSPECTATEPLAYER = 126
RPC_SCRPLAYERSPECTATEVEHICLE = 127
RPC_SCRSETPLAYERWANTEDLEVEL = 133
RPC_SCRSHOWTEXTDRAW = 134
RPC_SCRTEXTDRAWHIDEFORPLAYER = 135
RPC_SCRSERVERJOIN = 137
RPC_SCRSERVERQUIT = 138
RPC_SCRINITGAME = 139
RPC_SCRREMOVEPLAYERMAPICON = 144
RPC_SCRSETPLAYERAMMO = 145
RPC_SCRSETGRAVITY = 146
RPC_SCRSETVEHICLEHEALTH = 147
RPC_SCRATTACHTRAILERTOVEHICLE = 148
RPC_SCRDETACHTRAILERFROMVEHICLE = 149
RPC_SCRSETWEATHER = 152
RPC_SCRSETPLAYERSKIN = 153
RPC_SCRSETPLAYERINTERIOR = 156
RPC_SCRSETPLAYERCAMERAPOS = 157
RPC_SCRSETPLAYERCAMERALOOKAT = 158
RPC_SCRSETVEHICLEPOS = 159
RPC_SCRSETVEHICLEZANGLE = 160
RPC_SCRSETVEHICLEPARAMSFORPLAYER = 161
RPC_SCRSETCAMERABEHINDPLAYER = 162
RPC_SCRWORLDPLAYERREMOVE = 163
RPC_SCRWORLDVEHICLEADD = 164
RPC_SCRWORLDVEHICLEREMOVE = 165
RPC_SCRWORLDPLAYERDEATH = 166
end
// Packets
const
PACKET_INTERNAL_PING = 6
PACKET_PING = 7
PACKET_PING_OPEN_CONNECTIONS = 8
PACKET_CONNECTED_PONG = 9
PACKET_REQUEST_STATIC_DATA = 10
PACKET_CONNECTION_REQUEST = 11
PACKET_AUTH_KEY = 12
PACKET_BROADCAST_PINGS = 14
PACKET_SECURED_CONNECTION_RESPONSE = 15
PACKET_SECURED_CONNECTION_CONFIRMATION = 16
PACKET_RPC_MAPPING = 17
PACKET_SET_RANDOM_NUMBER_SEED = 19
PACKET_RPC = 20
PACKET_RPC_REPLY = 21
PACKET_DETECT_LOST_CONNECTIONS = 23
PACKET_OPEN_CONNECTION_REQUEST = 24
PACKET_OPEN_CONNECTION_REPLY = 25
PACKET_CONNECTION_COOKIE = 26
PACKET_RSA_PUBLIC_KEY_MISMATCH = 28
PACKET_CONNECTION_ATTEMPT_FAILED = 29
PACKET_NEW_INCOMING_CONNECTION = 30
PACKET_NO_FREE_INCOMING_CONNECTIONS = 31
PACKET_DISCONNECTION_NOTIFICATION = 32
PACKET_CONNECTION_LOST = 33
PACKET_CONNECTION_REQUEST_ACCEPTED = 34
PACKET_INITIALIZE_ENCRYPTION = 35
PACKET_CONNECTION_BANNED = 36
PACKET_INVALID_PASSWORD = 37
PACKET_MODIFIED_PACKET = 38
PACKET_PONG = 39
PACKET_TIMESTAMP = 40
PACKET_RECEIVED_STATIC_DATA = 41
PACKET_REMOTE_DISCONNECTION_NOTIFICATION = 42
PACKET_REMOTE_CONNECTION_LOST = 43
PACKET_REMOTE_NEW_INCOMING_CONNECTION = 44
PACKET_REMOTE_EXISTING_CONNECTION = 45
PACKET_REMOTE_STATIC_DATA = 46
PACKET_ADVERTISE_SYSTEM = 56
PACKET_VEHICLE_SYNC = 200
PACKET_RCON_COMMAND = 201
PACKET_RCON_RESPONCE = 202
PACKET_AIM_SYNC = 203
PACKET_WEAPONS_UPDATE = 204
PACKET_STATS_UPDATE = 205
PACKET_BULLET_SYNC = 206
PACKET_PLAYER_SYNC = 207
PACKET_MARKERS_SYNC = 208
PACKET_UNOCCUPIED_SYNC = 209
PACKET_TRAILER_SYNC = 210
PACKET_PASSENGER_SYNC = 211
PACKET_SPECTATOR_SYNC = 212
end
// Gamestates
const
GAMESTATE_NONE = 0
GAMESTATE_WAIT_CONNECT = 1
GAMESTATE_AWAIT_JOIN = 2
GAMESTATE_CONNECTED = 3
GAMESTATE_RESTARTING = 4
GAMESTATE_DISCONNECTED = 5
end
// BitStream
const
BS_TYPE_BYTE = 0
BS_TYPE_BOOL = 1
BS_TYPE_SHORT = 2
BS_TYPE_INT = 3
BS_TYPE_FLOAT = 4
BS_TYPE_ARRAY = 5
BS_TYPE_BITSTREAM = 6
end
// Priorities
const
SYSTEM_PRIORITY = 0
HIGH_PRIORITY = 1
MEDIUM_PRIORITY = 2
LOW_PRIORITY = 3
end
// Reliability
const
UNRELIABLE = 6
UNRELIABLE_SEQUENCED = 7
RELIABLE = 8
RELIABLE_ORDERED = 9
RELIABLE_SEQUENCED = 10
end
// Sendrates
const
ONFOOTSENDRATE = 1
INCARSENDRATE = 2
AIMSENDRATE = 3
end
// SAMP Limits
const
MAX_PLAYERS = 1004
MAX_VEHICLES = 2000
MAX_PICKUPS = 4096
MAX_OBJECTS = 1000
MAX_GANGZONES = 1024
MAX_3DTEXTS = 2048
MAX_TEXTDRAWS = 2048
MAX_CLIENTCMDS = 144
MAX_MENUS = 128
end
// Text Styles
const
FCR_NONE = 0x0
FCR_BOLD = 0x1
FCR_ITALICS = 0x2
FCR_BORDER = 0x4
FCR_SHADOW = 0x8
FCR_UNDERLINE = 0x10
FCR_STRIKEOUT = 0x20
end
// SAMP SCM Events
const
SCMEVENT_PAINTJOB = 1
SCMEVENT_UPGRADE = 2
SCMEVENT_COLOR = 3
SCMEVENT_MODSHOPENTEREXIT = 4
end
// Special Actions
const
SPECIAL_ACTION_NONE = 0
SPECIAL_ACTION_DUCK = 1
SPECIAL_ACTION_USEJETPACK = 2
SPECIAL_ACTION_ENTER_VEHICLE = 3
SPECIAL_ACTION_EXIT_VEHICLE = 4
SPECIAL_ACTION_DANCE1 = 5
SPECIAL_ACTION_DANCE2 = 6
SPECIAL_ACTION_DANCE3 = 7
SPECIAL_ACTION_DANCE4 = 8
SPECIAL_ACTION_HANDSUP = 10
SPECIAL_ACTION_USECELLPHONE = 11
SPECIAL_ACTION_SITTING = 12
SPECIAL_ACTION_STOPUSECELLPHONE = 13
SPECIAL_ACTION_DRINK_BEER = 20
SPECIAL_ACTION_SMOKE_CIGGY = 21
SPECIAL_ACTION_DRINK_WINE = 22
SPECIAL_ACTION_DRINK_SPRUNK = 23
SPECIAL_ACTION_CUFFED = 24
SPECIAL_ACTION_CARRY = 25
SPECIAL_ACTION_URINATE = 68
end
// SAMP Dialog Styles
const
DIALOG_STYLE_MSGBOX = 0
DIALOG_STYLE_INPUT = 1
DIALOG_STYLE_LIST = 2
DIALOG_STYLE_PASSWORD = 3
DIALOG_STYLE_TABLIST = 4
DIALOG_STYLE_TABLIST_HEADERS = 5
end
// SAMP Cursor Modes
const
CMODE_DISABLED = 0
CMODE_LOCKKEYS_NOCURSOR = 1
CMODE_LOCKCAMANDCONTROL = 2
CMODE_LOCKCAM = 3
CMODE_LOCKCAM_NOCURSOR = 4
end
// RakNet Hook Parameters
const
PARAM_BITSTREAM = 0
PARAM_PACKETID = 1
PARAM_PRIORITY = 2
PARAM_RELIABILITY = 3
PARAM_ORDERINGCHANNEL = 4
PARAM_SHIFTTIMESTAMP = 5
end
// Primitive Types
const
D3DPT_POINTLIST = 1
D3DPT_LINELIST = 2
D3DPT_LINESTRIP = 3
D3DPT_TRIANGLELIST = 4
D3DPT_TRIANGLESTRIP = 5
D3DPT_TRIANGLEFAN = 6
end
const
EVENT_BUTTON_CLICKED = 257
EVENT_COMBOBOX_SELECTION_CHANGED = 513
EVENT_RADIOBUTTON_CHANGED = 769
EVENT_CHECKBOX_CHANGED = 1025
EVENT_SLIDER_VALUE_CHANGED = 1281
EVENT_EDITBOX_STRING = 1537
EVENT_EDITBOX_CHANGE = 1538
EVENT_LISTBOX_ITEM_DBLCLK = 1793
EVENT_LISTBOX_SELECTION = 1794
end