SHOW:
|
|
- or go back to the newest paste.
1 | //Doesn't this look more familiar Chr0m3? | |
2 | //So why not post this? It's public.... | |
3 | ||
4 | #include <xtl.h> | |
5 | #include <xkelib.h> | |
6 | #include <xhttp.h> | |
7 | #include <xauth.h> | |
8 | ||
9 | //#define DEVKIT // defines the menu for DEVKIT also need to do this in Tools.cc also need to change sleep from 500 to 1400 | |
10 | ||
11 | #ifdef DEVKIT | |
12 | #include <xbdm.h> | |
13 | #endif | |
14 | ||
15 | //#define personal // my personal version with cash drop | |
16 | //#define printf // Stops printfs working or Comment out to use prints | |
17 | ||
18 | int GlobalToAddress(int Global, int imm) { | |
19 | return *(int *)(0x83d3cb98 + ((Global & 0xFFFFFF) >> 16 & 0xFFFC) + (imm * 4)); | |
20 | } | |
21 | ||
22 | ||
23 | #include "globals.h" | |
24 | #include "Tools.h" | |
25 | #include "GTAVMenu.h" | |
26 | #include "Input.h" | |
27 | #include "GTAVNatives.h" | |
28 | #include "DataManager.h" | |
29 | #include "ServerCommunicator.h" | |
30 | #include "EncryptedDWORD.h" | |
31 | #include "MenuSecurity.h" | |
32 | #include <cfloat> | |
33 | ||
34 | int gauge = 0; | |
35 | int fan; | |
36 | bool wtf = false; | |
37 | char *main_text; | |
38 | bool attachspawn = false; | |
39 | bool normalspawn = false; | |
40 | bool custom_plate = false; | |
41 | bool custom_per = false; | |
42 | int Var_Pointer; | |
43 | XOVERLAPPED Overlapped; | |
44 | WCHAR Username[512]; | |
45 | XOVERLAPPED Overlapped2; | |
46 | WCHAR Username2[15]; | |
47 | char gamertag; | |
48 | using std::string; | |
49 | typedef unsigned long long u64; | |
50 | ||
51 | ||
52 | EncryptedDWORD *hook1; | |
53 | EncryptedDWORD *hook2; | |
54 | EncryptedDWORD *hook3; | |
55 | EncryptedDWORD *nativeHook; | |
56 | EncryptedDWORD *printToScreen; | |
57 | EncryptedDWORD *customGetPedLastWeap; | |
58 | EncryptedDWORD *customGetModelDim; | |
59 | ||
60 | ||
61 | //#define Auth // Defines AUTH for hysterias dev | |
62 | bool rocket_gun = false; | |
63 | int objecthandle; | |
64 | float objectcoordx, objectcoordy, objectcoordz, objectheading, objectpitch = 0, objectroll = 0, objectyaw = 0; | |
65 | int waterobj; | |
66 | int neonr, neong, neonb; | |
67 | bool zdrop = false; | |
68 | int wheel = 0; | |
69 | int cashclient; | |
70 | bool alltelefootway = false; | |
71 | bool telefoot_way = false; | |
72 | bool objectspawn = false; | |
73 | bool aiming = false; | |
74 | int chop; | |
75 | int rocketid; | |
76 | bool warp = false; | |
77 | int animid; | |
78 | bool nap = false; | |
79 | bool kidnap = false; | |
80 | bool aimbot = false; | |
81 | bool aimbot_active = false; | |
82 | int model; | |
83 | //unsigned int uammo = 0x82F02FEC; | |
84 | //unsigned int uammo2 = 0x82EEB7E4; | |
85 | unsigned int uammo2 = 0x82F02FEC; | |
86 | unsigned int uammo = 0x82EEB7E4; | |
87 | extern "C" const TCHAR szModuleName[] = TEXT("GTAVMenu.dll"); | |
88 | ||
89 | int CarPed; | |
90 | bool playerInvincibilityActive = false; | |
91 | bool buttonpressed = false; | |
92 | bool rainbow = false; | |
93 | bool invisible = false; | |
94 | bool superjump = false; | |
95 | bool superruncheck = false; | |
96 | bool deagle = false; | |
97 | bool carvisible = false; | |
98 | bool playervisible = false; | |
99 | int myplayerped; | |
100 | int rainbowcar; | |
101 | int invisiblecar = false; | |
102 | ||
103 | bool showingMessageOnScreen = false; | |
104 | bool fadingMessage = false; | |
105 | int messageFade = 0; | |
106 | stack<char*> messageLog; | |
107 | int showingMessageTimer = 0; | |
108 | int showingMessageTimerStart = 0; | |
109 | XVIDEO_MODE VideoMode; | |
110 | char messageBuffer[256]; | |
111 | ||
112 | float messageTextX = 0.50000000f; | |
113 | float messageTextY = 0.91000000f; | |
114 | ||
115 | void ShowMessageOnScreen(char *format, ...) { | |
116 | va_list args; | |
117 | va_start(args, format); | |
118 | vsprintf(messageBuffer, format, args); | |
119 | va_end(args); | |
120 | ||
121 | showingMessageTimer = 0; | |
122 | showingMessageOnScreen = true; | |
123 | showingMessageTimerStart = GetTickCount(); | |
124 | messageFade = 255; | |
125 | } | |
126 | ||
127 | void ShowMessageUpdate() { | |
128 | // Check to see if we are showing a message on the screen | |
129 | if (!showingMessageOnScreen) { | |
130 | return; | |
131 | } | |
132 | ||
133 | if ((GetTickCount() - showingMessageTimerStart) >= 4000) { | |
134 | messageFade--; | |
135 | } | |
136 | ||
137 | if ((GetTickCount() - showingMessageTimerStart) >= 5000) { | |
138 | showingMessageOnScreen = false; | |
139 | showingMessageTimer = 0; | |
140 | ZeroMemory(&messageBuffer, 256); | |
141 | } | |
142 | ||
143 | PrintToScreen(messageBuffer, messageTextX, messageTextY, 255, 255, 255, messageFade, 0.45f, 0.45f, 1, 0); | |
144 | } | |
145 | ||
146 | bool IsPlayerWithinArea(float playerX, float playerY, float areaX, float areaY, float areaSize) { | |
147 | float corner1X = areaX; | |
148 | float corner1Y = areaY; | |
149 | ||
150 | float corner2X = areaX + areaSize; | |
151 | float corner2Y = areaY + areaSize; | |
152 | ||
153 | float corner3X = areaX + areaSize; | |
154 | float corner3Y = areaY; | |
155 | ||
156 | float corner4X = areaX; | |
157 | float corner4Y = areaY + areaSize; | |
158 | ||
159 | if (playerX >= corner1X && playerX <= corner2X && playerY >= corner1Y && playerY <= corner2Y) { | |
160 | return true; | |
161 | } | |
162 | ||
163 | return false; | |
164 | } | |
165 | ||
166 | ||
167 | int are_you_in_veh_if_so_get_handle() { | |
168 | if (!is_ped_on_foot(PlayerPedId())) { | |
169 | int vehicle; | |
170 | vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
171 | return vehicle; | |
172 | } | |
173 | return 0; | |
174 | } | |
175 | PXOVERLAPPED over; | |
176 | PMESSAGEBOX_RESULT result; | |
177 | LPCWSTR* text; | |
178 | ||
179 | DWORD WINAPI MessageBoxThread(PVOID pvParam) { | |
180 | //LPCWSTR Text, Caption; | |
181 | text = new LPCWSTR[1]; | |
182 | text[0] = L"Reboot"; | |
183 | ||
184 | extern wchar_t *MenuUpdateInfoConverted; | |
185 | //MessageBox(MenuUpdateInfoConverted, L"Menu Updated"); | |
186 | ||
187 | over = new XOVERLAPPED(); | |
188 | memset(over, 0, sizeof(over)); | |
189 | result = new MESSAGEBOX_RESULT(); | |
190 | memset(result, 0, sizeof(result)); | |
191 | ||
192 | while(XShowMessageBoxUI(0, L"Menu Updated", MenuUpdateInfoConverted, 1, text, 0, XMB_NOICON, result, over) == ERROR_ACCESS_DENIED) | |
193 | Sleep(500); | |
194 | while(!XHasOverlappedIoCompleted(over)) | |
195 | Sleep(500); | |
196 | ||
197 | HalReturnToFirmware(HalFatalErrorRebootRoutine); | |
198 | ||
199 | return 0; | |
200 | } | |
201 | ||
202 | int getFirstFreeSeatIndex(int vehicleHandle){ | |
203 | ||
204 | int maxSeatNum = get_vehicle_max_number_of_passengers(vehicleHandle); | |
205 | ||
206 | for (int i = -1; i < maxSeatNum;i++) | |
207 | { | |
208 | if (is_vehicle_seat_free(vehicleHandle, i)) | |
209 | { | |
210 | return i; | |
211 | } | |
212 | } | |
213 | return -2; | |
214 | } | |
215 | bool follow = false; | |
216 | void MakePlayerComeTome(int playerID) | |
217 | { | |
218 | float Pos[3]; | |
219 | if (!network_is_player_active(playerID)) | |
220 | return; | |
221 | int theirPedHandle = GetPlayerHandle(playerID); | |
222 | int myPedHandle = PlayerPedId(); | |
223 | if (!DoesEntityExist(theirPedHandle)) | |
224 | return; | |
225 | follow = true; | |
226 | } | |
227 | ||
228 | bool telefoot = false; | |
229 | void MakePlayerComeTomeFoot(int playerID) | |
230 | { | |
231 | float Pos[3]; | |
232 | if (!network_is_player_active(playerID)) | |
233 | return; | |
234 | int theirPedHandle = GetPlayerHandle(playerID); | |
235 | int myPedHandle = PlayerPedId(); | |
236 | if (!DoesEntityExist(theirPedHandle)) | |
237 | return; | |
238 | telefoot = true; | |
239 | } | |
240 | ||
241 | ||
242 | ||
243 | void MakePlayerEnterMyVehicle(int playerID) | |
244 | { | |
245 | /*if (!network_is_player_active(playerID)) | |
246 | return; | |
247 | int theirpedHandle = GetPlayerHandle(playerID); | |
248 | if (is_entity_dead(theirpedHandle)) | |
249 | return; | |
250 | ||
251 | int myPedHandle = PlayerPedId(); | |
252 | ||
253 | if (is_ped_on_foot(myPedHandle) || !is_ped_on_foot(theirpedHandle)) | |
254 | { | |
255 | ShowMessageOnScreen("~b~ Can't do task either you aren't in a car or the player isn't on foot!"); | |
256 | return; | |
257 | } | |
258 | /*int myVehicle = GetCarCharIsIn(myPedHandle, 0); | |
259 | ||
260 | int firstFreeSeatInMyVehicle = getFirstFreeSeatIndex(myVehicle); | |
261 | ShowMessageOnScreen("~b~ Got free seat %i", firstFreeSeatInMyVehicle); | |
262 | if (firstFreeSeatInMyVehicle == -2) | |
263 | ShowMessageOnScreen("~b~ No Free Seat");*/ | |
264 | ShowMessageOnScreen("~b~ Player should now get in your vehicle"); | |
265 | } | |
266 | bool vm_animm = false; | |
267 | /*void PlayPedAnim(char *animDictName, char *animName, int playerIndex) | |
268 | { | |
269 | int playerPedHandle = GetPlayerHandle(playerIndex); | |
270 | ||
271 | }*/ | |
272 | ||
273 | void StopPlayerTasks(int playerID){ | |
274 | int pedHandle = GetPlayerHandle(playerID); | |
275 | clear_ped_tasks(pedHandle); | |
276 | } | |
277 | ||
278 | unsigned int get_hash_key(char *key) | |
279 | { | |
280 | size_t len = strlen(key); | |
281 | unsigned int hash, i; | |
282 | for(hash = i = 0; i < len; ++i) | |
283 | { | |
284 | hash += tolower(key[i]); | |
285 | hash += (hash << 10); | |
286 | hash ^= (hash >> 6); | |
287 | } | |
288 | hash += (hash << 3); | |
289 | hash ^= (hash >> 11); | |
290 | hash += (hash << 15); | |
291 | return hash; | |
292 | } | |
293 | ||
294 | bool hash_check(char *string, int hash) | |
295 | { | |
296 | int hashval = get_hash_key(string); | |
297 | return (hashval == hash); | |
298 | } | |
299 | void secure_check() { | |
300 | #ifdef PRIVATE | |
301 | unsigned int scroll_check = -2121299452; | |
302 | scroll_1 = "Welcome To GTA V Fucker | Private Version | Made By Chr0m3 x MoDz"; | |
303 | #else | |
304 | unsigned int scroll_check = -1239404636; | |
305 | scroll_1 = "Welcome To GTA V Fucker | Premium Version | Made By Chr0m3 x MoDz"; | |
306 | #endif | |
307 | if (!hash_check(scroll_1, scroll_check)) | |
308 | { | |
309 | text_secure = false; | |
310 | } | |
311 | } | |
312 | ||
313 | ||
314 | unsigned char Numbers[257] = {0x00, 0x01, 0x02, 0x03, | |
315 | 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, | |
316 | 0x0C, 0x0D, 0x0E, 0x0F, 0x10, 0x11, 0x12, 0x13, | |
317 | 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, | |
318 | 0x1C, 0x1D, 0x1E, 0x1F, 0x20, 0x21, 0x22, 0x23, | |
319 | 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, 0x2B, | |
320 | 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, 0x32, 0x33, | |
321 | 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3A, 0x3B, | |
322 | 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, 0x42, 0x43, | |
323 | 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4A, 0x4B, | |
324 | 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, 0x52, 0x53, | |
325 | 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0x5A, 0x5B, | |
326 | 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, 0x62, 0x63, | |
327 | 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x6A, 0x6B, | |
328 | 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, 0x72, 0x73, | |
329 | 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7A, 0x7B, | |
330 | 0x7C, 0x7D, 0x7E, 0x7F, 0x80, 0x81, 0x82, 0x83, | |
331 | 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8A, 0x8B, | |
332 | 0x8C, 0x8D, 0x8E, 0x8F, 0x90, 0x91, 0x92, 0x93, | |
333 | 0x94, 0x95, 0x96, 0x97, 0x98, 0x99, 0x9A, 0x9B, | |
334 | 0x9C, 0x9D, 0x9E, 0x9F, 0xA0, 0xA1, 0xA2, 0xA3, | |
335 | 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, 0xA9, 0xAA, 0xAB, | |
336 | 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, 0xB1, 0xB2, 0xB3, | |
337 | 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB9, 0xBA, 0xBB, | |
338 | 0xBC, 0xBD, 0xBE, 0xBF, 0xC0, 0xC1, 0xC2, 0xC3, | |
339 | 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, 0xC9, 0xCA, 0xCB, | |
340 | 0xCC, 0xCD, 0xCE, 0xCF, 0xD0, 0xD1, 0xD2, 0xD3, | |
341 | 0xD4, 0xD5, 0xD6, 0xD7, 0xD8, 0xD9, 0xDA, 0xDB, | |
342 | 0xDC, 0xDD, 0xDE, 0xDF, 0xE0, 0xE1, 0xE2, 0xE3, | |
343 | 0xE4, 0xE5, 0xE6, 0xE7, 0xE8, 0xE9, 0xEA, 0xEB, | |
344 | 0xEC, 0xED, 0xEE, 0xEF, 0xF0, 0xF1, 0xF2, 0xF3, | |
345 | 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, | |
346 | 0xFC, 0xFD, 0xFE, 0xFF}; | |
347 | bool IsFalseAuthed; | |
348 | ||
349 | ||
350 | char CAlpha[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; | |
351 | char Alpha[] = "abcdefghijklmnopqrstuvwxyz"; | |
352 | char Num[] = "0123456789"; | |
353 | char T[] = {' ', '\n','\0', '%'}; | |
354 | /*byte AuthedCPU[] = {Numbers[0xC8], Numbers[0xEE], Numbers[0xC4], c8eec4aaf8f7842313313e39dcdcabdc | |
355 | Numbers[0xAA], Numbers[0xF8], Numbers[0xF7], Numbers[0x84], | |
356 | Numbers[0x23], Numbers[0x13], Numbers[0x31], Numbers[0x3E], | |
357 | Numbers[0x39], Numbers[0xDC], Numbers[0xDC], Numbers[0xAB], | |
358 | Numbers[0xDC]},*///90 3E 3E 1C BE 1E 95 CF 60 50 7C F0 D0 2F 86 A8 | |
359 | byte AuthedCPU[] = {Numbers[0x90], Numbers[0x3E], Numbers[0x3E], | |
360 | Numbers[0x1C], Numbers[0xBE], Numbers[0x1E], Numbers[0x95], | |
361 | Numbers[0xCF], Numbers[0x60], Numbers[0x50], Numbers[0x7C], | |
362 | Numbers[0xF0], Numbers[0xD0], Numbers[0x2F], Numbers[0x86], | |
363 | Numbers[0xA8]}, | |
364 | ConsoleCPU[0x10], | |
365 | ||
366 | AuthedMessage[] = {CAlpha[6], CAlpha[19], CAlpha[0], T[0], CAlpha[12], Alpha[4], Alpha[13], Alpha[20], T[0], CAlpha[0], Alpha[20], Alpha[19], Alpha[7], Alpha[4], Alpha[3],0}, | |
367 | ||
368 | EntryAdd[4] = {Numbers[0], Numbers[0], Numbers[0x1], Numbers[0x04]}, | |
369 | CashPointer[4] = {Numbers[0x83], Numbers[0xAE], Numbers[0x7C], Numbers[0x78]}, //0x83B04FE4 TU14 = 0x83B084B4 // TU15 0x83AE7C78 | |
370 | ||
371 | HvxExpansionInstallBytes[] = {Numbers[0x38], Numbers[0x00], Numbers[0x00], Numbers[0x70], | |
372 | Numbers[0x44], Numbers[0x00], Numbers[0x00], Numbers[0x02], Numbers[0x4E], Numbers[0x80], | |
373 | Numbers[0x00], Numbers[0x20]}, | |
374 | ||
375 | HvxExpansionCallBytes[] = {Numbers[0x38], Numbers[0x00], Numbers[0x00], Numbers[0x71], | |
376 | Numbers[0x44], Numbers[0x00], Numbers[0x00], Numbers[0x02], Numbers[0x4E], Numbers[0x80], Numbers[0x00], Numbers[0x20]}; | |
377 | ||
378 | void GetCoordsInfrontOfSelf(float *OutX, float *OutY, float *OutZ){ // Pos[0], Pos[1] | |
379 | int myPedHandle = PlayerPedId(); | |
380 | float Pos[3], Heading = get_entity_heading(myPedHandle); | |
381 | GetEntityCoords(myPedHandle, Pos); //&Pos | |
382 | *OutX = Pos[0], *OutY = Pos[1], *OutZ = Pos[2]; | |
383 | *OutX += (10 * sin(-1 * Heading)); //get_entity_heading(player_ped_iod()); | |
384 | *OutZ += (10 * cos(-1 * Heading)); | |
385 | } | |
386 | ||
387 | enum ExlposionType { | |
388 | GRENADE, | |
389 | GRENADELAUNCHER, | |
390 | STICKYBOMB, | |
391 | MOLOTOV, // 3 | |
392 | ROCKET, | |
393 | TANKSHELL, | |
394 | HI_OCTANE, | |
395 | CAR, | |
396 | PLANE, | |
397 | PETROL_PUMP, | |
398 | BIKE, | |
399 | DIR_STEAM, | |
400 | DIR_FLAME, | |
401 | DIR_WATER_HYDRANT, | |
402 | DIR_GAS_CANISTER, | |
403 | BOAT, | |
404 | SHIP_DESTROY, | |
405 | TRUCK, | |
406 | BULLET, | |
407 | SMOKEGRENADELAUNCHER, | |
408 | SMOKEGRENADE, | |
409 | BZGAS, | |
410 | FLARE, | |
411 | GAS_CANISTER, | |
412 | EXTINGUISHER, | |
413 | PROGRAMMABLEAR, | |
414 | TRAIN, | |
415 | BARREL, | |
416 | PROPANE, | |
417 | BLIMP, | |
418 | DIR_FLAME_EXPLODE, | |
419 | TANKER, | |
420 | PLANE_ROCKET, | |
421 | VEHICLE_BULLET, | |
422 | GAS_TANK | |
423 | }; | |
424 | ||
425 | ||
426 | GTAVMenu *mainMenu; | |
427 | GTAVMenu *playerOptionsMenu; | |
428 | GTAVMenu *vehicleOptionMenu; | |
429 | GTAVMenu *weaponOptionsMenu; | |
430 | GTAVMenu *onlinePlayers; | |
431 | GTAVMenu *onlinePlayersSubMenu; | |
432 | GTAVMenu *CarSpawnerMenu; | |
433 | GTAVMenu *OnlinePlayerVehicleOptions; | |
434 | GTAVMenu *OnlinePlayerTeleport; | |
435 | GTAVMenu *NaughtyStuff; | |
436 | GTAVMenu *NiceStuff; | |
437 | GTAVMenu *AllOnlinePlayers; | |
438 | GTAVMenu *TeleMenu; | |
439 | GTAVMenu *ModelChanger; | |
440 | GTAVMenu *MiscOptions; | |
441 | GTAVMenu *AnimalModels; | |
442 | GTAVMenu *ObjectAttachments; | |
443 | GTAVMenu *ExtraNaughtyStuff; | |
444 | GTAVMenu *ObjectOptions; | |
445 | GTAVMenu *ObjectOptions1; | |
446 | GTAVMenu *FunnyCarOptions; | |
447 | GTAVMenu *ChopAnims; | |
448 | GTAVMenu *Chr0m3; | |
449 | GTAVMenu *ModShop; | |
450 | GTAVMenu *PerformanceMenu; | |
451 | GTAVMenu *BodyMenu; | |
452 | GTAVMenu *WheelMenu; | |
453 | GTAVMenu *ArmourMenu; | |
454 | GTAVMenu *HighEnd; | |
455 | GTAVMenu *EngineMenu; | |
456 | GTAVMenu *TransMenu; | |
457 | GTAVMenu *BrakesMenu; | |
458 | GTAVMenu *SuspMenu; | |
459 | GTAVMenu *ExMenu; | |
460 | GTAVMenu *FbMenu; | |
461 | GTAVMenu *RbMenu; | |
462 | GTAVMenu *SkMenu; | |
463 | GTAVMenu *InteriorMenu; | |
464 | GTAVMenu *HoodMenu; | |
465 | GTAVMenu *GrillMenu; | |
466 | GTAVMenu *SpoilerMenu; | |
467 | GTAVMenu *Lowrider; | |
468 | GTAVMenu *Muscle; | |
469 | GTAVMenu *Offroad; | |
470 | GTAVMenu *Sport; | |
471 | GTAVMenu *SportMenu2; | |
472 | GTAVMenu *SUV; | |
473 | GTAVMenu *Tuner; | |
474 | GTAVMenu *TunerMenu2; | |
475 | GTAVMenu *Pegasus; | |
476 | GTAVMenu *Weather; | |
477 | GTAVMenu *SpeedoMeter; | |
478 | GTAVMenu *RankUnlock; | |
479 | GTAVMenu *RGMenu; | |
480 | GTAVMenu *FWMenu; | |
481 | GTAVMenu *VWMenu; | |
482 | ||
483 | ||
484 | ||
485 | Input *menuInputHandler; | |
486 | ||
487 | ||
488 | bool inputButtonsPressed = false; | |
489 | bool enableMenu = false; | |
490 | ||
491 | char *animdict, *anim; | |
492 | ||
493 | ||
494 | ||
495 | bool RequestNetworkControl(int playerHandle, int carHandle) { | |
496 | int Vehicle = GetCarCharIsIn(playerHandle, 0); | |
497 | printf("Passed 1\n"); | |
498 | //int id = network_get_network_id_from_entity(Vehicle); | |
499 | printf("Passed 2\n"); | |
500 | //if (network_does_network_id_exist(id)) | |
501 | //{ | |
502 | //ShowMessageOnScreen("~b~ Network ID does exist"); | |
503 | //} | |
504 | if (DoesEntityExist(carHandle) && IsEntityVehicle(carHandle)) { | |
505 | if(network_request_control_of_entity(carHandle)) { | |
506 | if (network_has_control_of_entity(carHandle)) { | |
507 | return true; | |
508 | } | |
509 | } | |
510 | } | |
511 | return false; | |
512 | } | |
513 | ||
514 | float Vec3DistanceSq(const float *p1, const float *p2) { | |
515 | return ((p2[0] - p1[0]) * (p2[0] - p1[0]) + | |
516 | ((p2[2] - p1[2]) * (p2[2] - p1[2]) + | |
517 | ((p2[1] - p1[1]) * (p2[1] - p1[1])))); | |
518 | } | |
519 | ||
520 | float Distance(float p11, float p12, float p13, float p21, float p22, float p23) { | |
521 | float p1[] = {p11, p12, p13}, | |
522 | p2[] = {p21, p22, p23}; | |
523 | return sqrt(Vec3DistanceSq(p1, p2)); | |
524 | } | |
525 | ||
526 | float Distance(float *p1, float *p2) { | |
527 | return sqrt(Vec3DistanceSq(p1, p2)); | |
528 | } | |
529 | ||
530 | bool isInDistance(int Handle) { | |
531 | float Pos[2][3], | |
532 | Dist; | |
533 | GetEntityCoords(PlayerPedId(), Pos[0]); | |
534 | GetEntityCoords(Handle, Pos[1]); | |
535 | Dist = Distance(Pos[0], Pos[1]); | |
536 | printf("Distance between you and the player is %f\n", Dist); | |
537 | return (Dist <= 100.0f); | |
538 | } | |
539 | ||
540 | void TeleportToClient(int Client) { | |
541 | float* Location = (float *)(*(int *)((*(int *)(0x83BA3400 + 0x78) + 0x10 + (Client * 0x900)) + 0xF8) + 0x70); | |
542 | //printf("Client %i's pos = { %f, %f, %f } \n", Client, Location[0], Location[1], Location[2]); | |
543 | memcpy((PVOID)(*(int *)(*(int *)((*(int *)(0x83BA3400 + 0x78) + 0x10 + (0 * 0x900)) + 0xF8) + 0x1C) + 0x40), Location, 0xC); | |
544 | } | |
545 | ||
546 | int ToggleInvincibility(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
547 | playerInvincibilityActive = !playerInvincibilityActive; | |
548 | ||
549 | ShowMessageOnScreen("~b~ Invincibility = %s\n", playerInvincibilityActive ? "true" : "false"); | |
550 | ||
551 | SetPlayerInvincible(PlayerId(), playerInvincibilityActive); | |
552 | ||
553 | return 0; | |
554 | } | |
555 | ||
556 | int irand(int min, int max, int Add = 0) { | |
557 | srand(GetTickCount() + Add); | |
558 | return min + (rand() % (int)(max - min + 1)); | |
559 | } | |
560 | ||
561 | void rainbow_car() { | |
562 | if (DoesEntityExist(rainbowcar) && IsEntityVehicle(rainbowcar)) { | |
563 | int col1 = irand(0, 255, 200); | |
564 | int col2 = irand(0, 255, -40); | |
565 | int col3 = irand(0, 255, 30); | |
566 | int col4 = irand(0, 255, 400); | |
567 | set_vehicle_dirt_level(rainbowcar, 0.0f); | |
568 | PaintCar(rainbowcar, col1, col2); | |
569 | PaintCarExtra(rainbowcar, col3, col4); | |
570 | } | |
571 | } | |
572 | ||
573 | int ToggleRainbow(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
574 | if(rainbow) { | |
575 | //printf("\nrainbow = false!\n\n"); | |
576 | rainbow = false; | |
577 | return 0; | |
578 | } | |
579 | if (is_ped_in_any_vehicle(PlayerPedId())) | |
580 | { | |
581 | rainbowcar = GetCarCharIsIn(PlayerPedId(), 0); | |
582 | if (DoesEntityExist(rainbowcar) && IsEntityVehicle(rainbowcar)) { | |
583 | //printf("Attempted to paint vehicle"); | |
584 | rainbow = true; | |
585 | } | |
586 | } | |
587 | else{ | |
588 | ShowMessageOnScreen("~b~ You aren't in a vehicle"); | |
589 | } | |
590 | return 0; | |
591 | } | |
592 | ||
593 | int PaintChrome(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
594 | int vehicle; | |
595 | if (is_ped_in_any_vehicle(PlayerPedId())) | |
596 | { | |
597 | vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
598 | if (DoesEntityExist(vehicle) && IsEntityVehicle(vehicle)) { | |
599 | set_vehicle_dirt_level(vehicle, 0.0f); | |
600 | PaintCar(vehicle, 120, 120); | |
601 | PaintCarExtra(vehicle, 120, 120); | |
602 | } | |
603 | } | |
604 | else{ | |
605 | ShowMessageOnScreen("~b~ You aren't in a vehicle"); | |
606 | } | |
607 | return 0; | |
608 | } | |
609 | ||
610 | int RandomPaint(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
611 | int vehicle; | |
612 | if (is_ped_in_any_vehicle(PlayerPedId())) | |
613 | { | |
614 | vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
615 | if (DoesEntityExist(vehicle) && IsEntityVehicle(vehicle)) { | |
616 | set_vehicle_dirt_level(vehicle, 0.0f); | |
617 | PaintCar(vehicle, irand(0, 255, 200), irand(0, 255, -40)); | |
618 | PaintCarExtra(vehicle, irand(0, 255, 30), irand(0, 255, 400)); | |
619 | } | |
620 | } | |
621 | else{ | |
622 | ShowMessageOnScreen("~b~ You aren't in a vehicle"); | |
623 | } | |
624 | return 0; | |
625 | } | |
626 | ||
627 | int ToggleInvisibleCar(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
628 | //printf("Invisible Car = %s\n", invisiblecar ? "true" : "false"); | |
629 | if (is_ped_in_any_vehicle(PlayerPedId())) | |
630 | { | |
631 | int car; | |
632 | car = GetCarCharIsIn(PlayerPedId(), PlayerId()); | |
633 | if (DoesEntityExist(car) && IsEntityVehicle(car)) { | |
634 | printf("IsEntityVehicle == true, "); | |
635 | if (!invisiblecar) { | |
636 | FixCar(car); | |
637 | CarVisibleDamage(car, false); | |
638 | set_entity_invincible(car, true); | |
639 | set_entity_can_be_damaged(car, false); | |
640 | invisiblecar = true; | |
641 | //printf("On\n"); | |
642 | ShowMessageOnScreen("~b~ Invincible car turned on!"); | |
643 | } | |
644 | else if (invisiblecar) { | |
645 | CarVisibleDamage(car, true); | |
646 | set_entity_can_be_damaged(car, true); | |
647 | invisiblecar = false; | |
648 | set_entity_invincible(car, false); | |
649 | //printf("Off\n"); | |
650 | ShowMessageOnScreen("~b~ Invincible car turned off!"); | |
651 | } | |
652 | //printf("Car is %svisible\n", invisible ? "" : "in"); | |
653 | invisible = !invisible; | |
654 | //set_entity_coords(car, 0, 0, 0, 0, 0, 0, 1); | |
655 | } | |
656 | } | |
657 | else{ | |
658 | ShowMessageOnScreen("~b~ You aren't in a vehicle."); | |
659 | } | |
660 | return 0; | |
661 | } | |
662 | bool invincibeloop = false; | |
663 | int ToggleInvincibleCar(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
664 | if (!invincibeloop) { | |
665 | ShowMessageOnScreen("~b~ Invincible vehicle loop on, any vehicle you get in to will be invincible"); | |
666 | invincibeloop = true; | |
667 | } | |
668 | else if (invincibeloop) { | |
669 | ShowMessageOnScreen("~b~ Invincible vehicle loop off"); | |
670 | invincibeloop = false; | |
671 | } | |
672 | return 0; | |
673 | } | |
674 | ||
675 | ||
676 | void invinciblecarloop() | |
677 | { | |
678 | if (is_ped_in_any_vehicle(PlayerPedId())) | |
679 | { | |
680 | int car; | |
681 | car = GetCarCharIsIn(PlayerPedId(), PlayerId()); | |
682 | if (DoesEntityExist(car) && IsEntityVehicle(car)) { | |
683 | CarVisibleDamage(car, false); | |
684 | set_entity_invincible(car, true); | |
685 | set_entity_can_be_damaged(car, false); | |
686 | } | |
687 | } | |
688 | } | |
689 | ||
690 | bool paintingPlayersCarChrome = false; | |
691 | int paintingPlayersCarChromeIndex = 0; | |
692 | int paintingPlayersCarChromeTimeout = 310; | |
693 | int paintingPlayersCarChromeTimeoutCounter = 0; | |
694 | ||
695 | void PaintOnlinePlayersCarChromeProcess() { | |
696 | int subMenuIndex = paintingPlayersCarChromeIndex; | |
697 | // check to see if we are at our timeout limit | |
698 | if (paintingPlayersCarChromeTimeoutCounter >= paintingPlayersCarChromeTimeout) { | |
699 | paintingPlayersCarChrome = false; | |
700 | ShowMessageOnScreen("~b~ Failed to paint players car. Retrys timed out."); | |
701 | paintingPlayersCarChromeTimeoutCounter = 0; | |
702 | return; | |
703 | } | |
704 | ||
705 | int Player = GetPlayerHandle(subMenuIndex); | |
706 | int Vehicle = GetCarCharIsIn(Player, 0); | |
707 | ||
708 | if (RequestNetworkControl(Player, Vehicle)) { | |
709 | set_vehicle_dirt_level(Vehicle, 0.0f); | |
710 | PaintCar(Vehicle, 120, 120); | |
711 | PaintCarExtra(Vehicle, 120, 120); | |
712 | ShowMessageOnScreen("~b~ Painted players car chrome."); | |
713 | paintingPlayersCarChromeTimeoutCounter = 0; | |
714 | paintingPlayersCarChrome = false; | |
715 | } | |
716 | ||
717 | paintingPlayersCarChromeTimeoutCounter++; | |
718 | } | |
719 | ||
720 | int PaintOnlinePlayersCarChrome(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
721 | int Selected = selectedMenuIndexes->operator[](1), | |
722 | handle = GetPlayerHandle(Selected); | |
723 | if (!isInDistance(handle)) { | |
724 | ShowMessageOnScreen("~b~ Failed, Vehicle is not close enough"); | |
725 | return 0; | |
726 | } | |
727 | if (is_ped_in_any_vehicle(handle)) { | |
728 | if (!paintingPlayersCarChrome) { | |
729 | paintingPlayersCarChromeIndex = Selected; | |
730 | paintingPlayersCarChrome = true; | |
731 | } | |
732 | } else | |
733 | ShowMessageOnScreen("~b~ Failed, Player is not in any vehicle."); | |
734 | return 0; | |
735 | } | |
736 | ||
737 | bool paintingPlayersCar = false; | |
738 | int paintingPlayersCarIndex = 0; | |
739 | int paintingPlayersCarTimeout = 310; | |
740 | int paintingPlayersCarTimeoutCounter = 0; | |
741 | void PaintOnlinePlayersCarProcess() { | |
742 | int subMenuIndex = paintingPlayersCarIndex; | |
743 | ||
744 | // check to see if we are at our timeout limit | |
745 | if (paintingPlayersCarTimeoutCounter >= paintingPlayersCarTimeout) { | |
746 | paintingPlayersCar = false; | |
747 | ShowMessageOnScreen("~b~ Failed to paint players car. Retrys timed out."); | |
748 | paintingPlayersCarTimeoutCounter = 0; | |
749 | return; | |
750 | } | |
751 | ||
752 | int Player = GetPlayerHandle(subMenuIndex); | |
753 | int Vehicle = GetCarCharIsIn(Player, 0); | |
754 | ||
755 | if (RequestNetworkControl(Player, Vehicle)) { | |
756 | PaintCar(Vehicle, irand(0, 255, 1), irand(0, 255, 2)); | |
757 | PaintCarExtra(Vehicle, irand(0, 255, 3), irand(0, 255, 4)); | |
758 | set_vehicle_dirt_level(Vehicle, 0.0f); | |
759 | ShowMessageOnScreen("~b~ Painted players car"); | |
760 | paintingPlayersCarTimeoutCounter = 0; | |
761 | paintingPlayersCar = false; | |
762 | } | |
763 | ||
764 | paintingPlayersCarTimeoutCounter++; | |
765 | } | |
766 | ||
767 | int PaintOnlinePlayersCar(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
768 | ||
769 | if (!paintingPlayersCar) { | |
770 | paintingPlayersCarIndex = selectedMenuIndexes->operator[](1); | |
771 | paintingPlayersCar = true; | |
772 | } | |
773 | ||
774 | return 0; | |
775 | } | |
776 | ||
777 | bool explodingPlayersCar = false; | |
778 | int explodingPlayersCarIndex = 0; | |
779 | int explodingPlayersCarTimeout = 310; | |
780 | int explodingPlayersCarTimeoutCounter = 0; | |
781 | ||
782 | void ExplodeOnlinePlayerVehicleProcess() { | |
783 | int subMenuIndex = explodingPlayersCarIndex; | |
784 | ||
785 | // check to see if we are at our timeout limit | |
786 | if (explodingPlayersCarTimeoutCounter >= explodingPlayersCarTimeout) { | |
787 | explodingPlayersCar = false; | |
788 | ShowMessageOnScreen("~b~ Failed to explode players car. Retrys timed out."); | |
789 | explodingPlayersCarTimeoutCounter = 0; | |
790 | return; | |
791 | } | |
792 | ||
793 | int Player = GetPlayerHandle(subMenuIndex); | |
794 | int Vehicle = GetCarCharIsIn(Player, 0); | |
795 | ||
796 | if (RequestNetworkControl(Player, Vehicle)) { | |
797 | set_vehicle_petrol_tank_health(Vehicle, -1); | |
798 | set_vehicle_undriveable(Vehicle, 1); | |
799 | ShowMessageOnScreen("~b~ Players car can no longer be driven!."); | |
800 | explodingPlayersCarTimeoutCounter = 0; | |
801 | explodingPlayersCar = false; | |
802 | } | |
803 | ||
804 | explodingPlayersCarTimeoutCounter++; | |
805 | } | |
806 | ||
807 | int ExplodeOnlinePlayerVehicle(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
808 | ||
809 | if (!explodingPlayersCar) { | |
810 | explodingPlayersCarIndex = selectedMenuIndexes->operator[](1); | |
811 | explodingPlayersCar = true; | |
812 | } | |
813 | ||
814 | return 0; | |
815 | } | |
816 | ||
817 | bool pinkPlayersCar = false; | |
818 | int pinkPlayersCarIndex = 0; | |
819 | int pinkPlayersCarTimeout = 310; | |
820 | int pinkPlayersCarTimeoutCounter = 0; | |
821 | ||
822 | void PinkOnlinePlayerVehicleProcess() { | |
823 | int subMenuIndex = pinkPlayersCarIndex; | |
824 | ||
825 | // check to see if we are at our timeout limit | |
826 | if (pinkPlayersCarTimeoutCounter >= pinkPlayersCarTimeout) { | |
827 | pinkPlayersCar = false; | |
828 | ShowMessageOnScreen("~b~ Failed to fuck up players car. Retrys timed out."); | |
829 | pinkPlayersCarTimeoutCounter = 0; | |
830 | return; | |
831 | } | |
832 | ||
833 | int Player = GetPlayerHandle(subMenuIndex); | |
834 | int Vehicle = GetCarCharIsIn(Player, 0); | |
835 | ||
836 | if (RequestNetworkControl(Player, Vehicle)) { | |
837 | set_vehicle_doors_locked(Vehicle, 4); | |
838 | PaintCar(Vehicle, 136, 136); | |
839 | PaintCarExtra(Vehicle, 136, 136); | |
840 | set_vehicle_petrol_tank_health(Vehicle, -1); | |
841 | set_engine_health(Vehicle, -1); | |
842 | ShowMessageOnScreen("~b~ Revenge served in pink!."); | |
843 | pinkPlayersCarTimeoutCounter = 0; | |
844 | pinkPlayersCar = false; | |
845 | } | |
846 | ||
847 | pinkPlayersCarTimeoutCounter++; | |
848 | } | |
849 | ||
850 | int PinkOnlinePlayerVehicle(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
851 | ||
852 | if (!pinkPlayersCar) { | |
853 | pinkPlayersCarIndex = selectedMenuIndexes->operator[](1); | |
854 | pinkPlayersCar = true; | |
855 | } | |
856 | ||
857 | return 0; | |
858 | } | |
859 | ||
860 | bool launchingPlayersCar = false; | |
861 | int launchingPlayersCarIndex = 0; | |
862 | int launchingPlayersCarTimeout = 310; | |
863 | int launchingPlayersCarTimeoutCounter = 0; | |
864 | ||
865 | void SendPlayersCarToSpaceProcess() { | |
866 | int subMenuIndex = launchingPlayersCarIndex; | |
867 | ||
868 | // check to see if we are at our timeout limit | |
869 | if (launchingPlayersCarTimeoutCounter >= launchingPlayersCarTimeout) { | |
870 | launchingPlayersCar = false; | |
871 | ShowMessageOnScreen("~b~ Failed to launch players car. Retrys timed out."); | |
872 | launchingPlayersCarTimeoutCounter = 0; | |
873 | return; | |
874 | } | |
875 | ||
876 | int Player = GetPlayerHandle(subMenuIndex); | |
877 | int Vehicle = GetCarCharIsIn(Player, 0); | |
878 | ||
879 | if (RequestNetworkControl(Player, Vehicle)) { | |
880 | apply_force_to_entity(Vehicle, true, 0, 0, 150, 0, 0, 0, true, true, true, true, false, true); | |
881 | ShowMessageOnScreen("~b~ Sent players car to space"); | |
882 | launchingPlayersCarTimeoutCounter = 0; | |
883 | launchingPlayersCar = false; | |
884 | } | |
885 | ||
886 | launchingPlayersCarTimeoutCounter++; | |
887 | } | |
888 | ||
889 | int SendPlayersCarToSpace(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
890 | ||
891 | if (!launchingPlayersCar) { | |
892 | launchingPlayersCarIndex = selectedMenuIndexes->operator[](1); | |
893 | launchingPlayersCar = true; | |
894 | } | |
895 | ||
896 | return 0; | |
897 | } | |
898 | ||
899 | bool isrc = false; | |
900 | int Savedvehicle[2];// {attached handle, your cars handle} | |
901 | ||
902 | bool detachTowTruckCar = false; | |
903 | int detachTowTruckIndex = 0; | |
904 | int detachTowTruckTimeout = 310; | |
905 | int detachTowTruckTimeoutCounter = 0; | |
906 | ||
907 | void DetachTowTruckProcess() { | |
908 | int subMenuIndex = detachTowTruckIndex; | |
909 | ||
910 | // check to see if we are at our timeout limit | |
911 | if (detachTowTruckTimeoutCounter >= detachTowTruckTimeout) { | |
912 | detachTowTruckCar = false; | |
913 | ShowMessageOnScreen("~b~ Failed to detach tow from players car. Retrys timed out."); | |
914 | detachTowTruckTimeoutCounter = 0; | |
915 | return; | |
916 | } | |
917 | ||
918 | int Handle = GetCarCharIsIn(PlayerPedId(), PlayerId()); | |
919 | int Player = GetPlayerHandle(subMenuIndex); | |
920 | ||
921 | if(Savedvehicle[1] != Handle || Savedvehicle[1] == 0 || !DoesEntityExist(Savedvehicle[0])) { | |
922 | detachTowTruckCar = false; | |
923 | detachTowTruckTimeoutCounter = 0; | |
924 | return; | |
925 | } | |
926 | ||
927 | if (RequestNetworkControl(Player, Savedvehicle[0])) { | |
928 | detach_entity(Savedvehicle[0]); | |
929 | set_vehicle_doors_locked(Savedvehicle[0], 0); | |
930 | ||
931 | if (isrc) { | |
932 | set_entity_visible(Savedvehicle[1], true); | |
933 | set_entity_collision(Savedvehicle[0], true); | |
934 | } | |
935 | ||
936 | set_entity_collision(Savedvehicle[0], true); | |
937 | ||
938 | ShowMessageOnScreen("~b~ Detach success"); | |
939 | detachTowTruckTimeoutCounter = 0; | |
940 | ||
941 | detachTowTruckCar = false; | |
942 | } | |
943 | ||
944 | detachTowTruckTimeoutCounter++; | |
945 | } | |
946 | ||
947 | int DetachTowTruck(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
948 | ||
949 | if (!detachTowTruckCar) { | |
950 | detachTowTruckIndex = selectedMenuIndexes->operator[](1); | |
951 | detachTowTruckCar = true; | |
952 | } | |
953 | ||
954 | return 0; | |
955 | } | |
956 | ||
957 | bool towTruckCar = false; | |
958 | int towTruckCarIndex = 0; | |
959 | int towTruckCarTimeout = 310; | |
960 | int towTruckCarTimeoutCounter = 0; | |
961 | ||
962 | void TowTruckProcess() { | |
963 | int subMenuIndex = towTruckCarIndex; | |
964 | ||
965 | // check to see if we are at our timeout limit | |
966 | if (towTruckCarTimeoutCounter >= towTruckCarTimeout) { | |
967 | towTruckCar = false; | |
968 | ShowMessageOnScreen("~b~ Failed to tow players car. Retrys timed out."); | |
969 | towTruckCarTimeoutCounter = 0; | |
970 | return; | |
971 | } | |
972 | ||
973 | int Handle = GetPlayerHandle(subMenuIndex); | |
974 | //int Player = GetPlayerHandle(subMenuIndex); | |
975 | //int Vehicle = GetCarCharIsIn(Player, 0); | |
976 | ||
977 | // Ours and victims car handles | |
978 | Savedvehicle[0] = GetCarCharIsIn(Handle, subMenuIndex); | |
979 | Savedvehicle[1] = GetCarCharIsIn(PlayerPedId(), PlayerId()); | |
980 | ||
981 | if (Savedvehicle[0] == Savedvehicle[1]) | |
982 | { | |
983 | ShowMessageOnScreen("~b~ You are trying to tow truck your own car retard, If we allowed this we would freeze."); | |
984 | towTruckCarTimeoutCounter = 0; | |
985 | towTruckCar = false; | |
986 | return; | |
987 | } | |
988 | ||
989 | // Our position | |
990 | float Position[3]; | |
991 | GetEntityCoords(Handle, Position); | |
992 | printf("Player X = %f\n", Position[0]); | |
993 | printf("Player Y = %f\n", Position[1]); | |
994 | printf("Player Z = %f\n", Position[2]); | |
995 | ||
996 | if (RequestNetworkControl(Handle, Savedvehicle[0])) { | |
997 | set_vehicle_doors_locked(Savedvehicle[0], 4); | |
998 | attach_entity_to_entity(Savedvehicle[0], Savedvehicle[1], 0, 0, -3.9, 0, 0, 0, 0); | |
999 | ||
1000 | ShowMessageOnScreen("~b~ Attached player to vehicle"); | |
1001 | towTruckCarTimeoutCounter = 0; | |
1002 | ||
1003 | towTruckCar = false; | |
1004 | } | |
1005 | ||
1006 | towTruckCarTimeoutCounter++; | |
1007 | } | |
1008 | ||
1009 | int TowTruck(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
1010 | ||
1011 | if (!towTruckCar) { | |
1012 | towTruckCarIndex = selectedMenuIndexes->operator[](1); | |
1013 | towTruckCar = true; | |
1014 | } | |
1015 | ||
1016 | return 0; | |
1017 | } | |
1018 | ||
1019 | bool rcCar = false; | |
1020 | int rcCarIndex = 0; | |
1021 | int rcCarTimeout = 310; | |
1022 | int rcCarTimeoutCounter = 0; | |
1023 | ||
1024 | void RcCarProcess() { | |
1025 | int subMenuIndex = rcCarIndex; | |
1026 | ||
1027 | // check to see if we are at our timeout limit | |
1028 | if (rcCarTimeoutCounter >= rcCarTimeout) { | |
1029 | rcCar = false; | |
1030 | ShowMessageOnScreen("~b~ Failed to rc players car. Retrys timed out."); | |
1031 | rcCarTimeoutCounter = 0; | |
1032 | return; | |
1033 | } | |
1034 | ||
1035 | int Handle = GetPlayerHandle(subMenuIndex); | |
1036 | //int Player = GetPlayerHandle(subMenuIndex); | |
1037 | //int Vehicle = GetCarCharIsIn(Player, 0); | |
1038 | ||
1039 | // Ours and victims car handles | |
1040 | Savedvehicle[0] = GetCarCharIsIn(Handle, subMenuIndex); | |
1041 | Savedvehicle[1] = GetCarCharIsIn(PlayerPedId(), PlayerId()); | |
1042 | ||
1043 | if (Savedvehicle[0] == Savedvehicle[1]) | |
1044 | { | |
1045 | ShowMessageOnScreen("~b~ You are trying to remote control your own car retard, If we allowed this we would freeze."); | |
1046 | rcCarTimeoutCounter = 0; | |
1047 | rcCar = false; | |
1048 | return; | |
1049 | } | |
1050 | ||
1051 | if (RequestNetworkControl(Handle, Savedvehicle[0])) { | |
1052 | if (is_entity_visible(Savedvehicle[1])) { | |
1053 | set_entity_visible(Savedvehicle[1], false); | |
1054 | } | |
1055 | ||
1056 | set_vehicle_doors_locked(Savedvehicle[0], 4); | |
1057 | attach_entity_to_entity(Savedvehicle[0], Savedvehicle[1], 0, 0, 0, 0, 0, 0, 0); | |
1058 | set_entity_visible(Savedvehicle[0], true); | |
1059 | ||
1060 | ShowMessageOnScreen("~b~ RC car success"); | |
1061 | rcCarTimeoutCounter = 0; | |
1062 | ||
1063 | isrc = true; | |
1064 | rcCar = false; | |
1065 | } | |
1066 | ||
1067 | rcCarTimeoutCounter++; | |
1068 | } | |
1069 | ||
1070 | int RcCar(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
1071 | ||
1072 | if (!rcCar) { | |
1073 | rcCarIndex = selectedMenuIndexes->operator[](1); | |
1074 | rcCar = true; | |
1075 | } | |
1076 | ||
1077 | return 0; | |
1078 | } | |
1079 | ||
1080 | bool lockPlayersCar = false; | |
1081 | int lockPlayersCarIndex = 0; | |
1082 | int lockPlayersCarTimeout = 310; | |
1083 | int lockPlayersCarTimeoutCounter = 0; | |
1084 | ||
1085 | void LockPlayersDoorsProcess() { | |
1086 | int subMenuIndex = lockPlayersCarIndex; | |
1087 | ||
1088 | // check to see if we are at our timeout limit | |
1089 | if (lockPlayersCarTimeoutCounter >= lockPlayersCarTimeout) { | |
1090 | lockPlayersCar = false; | |
1091 | ShowMessageOnScreen("~b~ Failed to lock players car. Retrys timed out."); | |
1092 | lockPlayersCarTimeoutCounter = 0; | |
1093 | return; | |
1094 | } | |
1095 | ||
1096 | int Player = GetPlayerHandle(subMenuIndex); | |
1097 | int Vehicle = GetCarCharIsIn(Player, 0); | |
1098 | ||
1099 | if (RequestNetworkControl(Player, Vehicle)) { | |
1100 | set_vehicle_doors_locked(Vehicle, 4); | |
1101 | ShowMessageOnScreen("~b~ Locked players doors"); | |
1102 | lockPlayersCarTimeoutCounter = 0; | |
1103 | lockPlayersCar = false; | |
1104 | } | |
1105 | ||
1106 | lockPlayersCarTimeoutCounter++; | |
1107 | } | |
1108 | ||
1109 | int LockPlayersDoors(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
1110 | ||
1111 | if (!lockPlayersCar) { | |
1112 | lockPlayersCarIndex = selectedMenuIndexes->operator[](1); | |
1113 | lockPlayersCar = true; | |
1114 | } | |
1115 | ||
1116 | return 0; | |
1117 | } | |
1118 | ||
1119 | bool ChangePlate = false; | |
1120 | int ChangePlateIndex = 0; | |
1121 | int ChangePlateTimeout = 310; | |
1122 | int ChangePlateTimeoutCounter = 0; | |
1123 | ||
1124 | void ChangePlateProccess() { | |
1125 | int subMenuIndex = ChangePlateIndex; | |
1126 | ||
1127 | // check to see if we are at our timeout limit | |
1128 | if (ChangePlateTimeoutCounter >= ChangePlateTimeout) { | |
1129 | ChangePlate = false; | |
1130 | ShowMessageOnScreen("~b~ Failed to change plate. Retrys timed out."); | |
1131 | ChangePlateTimeoutCounter = 0; | |
1132 | return; | |
1133 | } | |
1134 | ||
1135 | int Player = GetPlayerHandle(subMenuIndex); | |
1136 | int Vehicle = GetCarCharIsIn(Player, 0); | |
1137 | ||
1138 | if (RequestNetworkControl(Player, Vehicle)) { | |
1139 | //set_vehicle_doors_locked(Vehicle, 4); | |
1140 | set_number_plate(Vehicle, " IM GAY "); | |
1141 | ShowMessageOnScreen("~b~ Changed players plate to IM GAY"); | |
1142 | ChangePlateTimeoutCounter = 0; | |
1143 | ChangePlate = false; | |
1144 | } | |
1145 | ||
1146 | ChangePlateTimeoutCounter++; | |
1147 | } | |
1148 | ||
1149 | int ChangePlatePlayer(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
1150 | CarPed = selectedMenuIndexes->operator[](1); | |
1151 | int player = selectedMenuIndexes->operator[](1); | |
1152 | animid = selectedMenuIndexes->operator[](1); | |
1153 | int ped = GetPlayerHandle(player); | |
1154 | int Vehicle = GetCarCharIsIn(ped, 0); | |
1155 | float Pos[3]; | |
1156 | GetEntityCoords(ped, Pos); | |
1157 | set_entity_coords(PlayerPedId(), Pos[0], Pos[1], Pos[2]); | |
1158 | kidnap = true; | |
1159 | warp = true; | |
1160 | set_vehicle_doors_locked(Vehicle, 4); | |
1161 | //ShowMessageOnScreen("~b~ Not completed"); | |
1162 | return 0; | |
1163 | } | |
1164 | ||
1165 | bool KickinggPlayer = false; | |
1166 | int KickingPlayerIndex = 0; | |
1167 | int KickingPlayerTimeout = 310; | |
1168 | int KickingPlayerTimeoutCounter = 0; | |
1169 | void LMAOProccess() | |
1170 | { | |
1171 | int subMenuIndex = KickingPlayerIndex; | |
1172 | // check to see if we are at our timeout limit | |
1173 | if (KickingPlayerTimeoutCounter >= KickingPlayerTimeout) { | |
1174 | KickinggPlayer = false; | |
1175 | ShowMessageOnScreen("~b~ Failed to control vehicle. Retrys timed out."); | |
1176 | KickingPlayerTimeoutCounter = 0; | |
1177 | return; | |
1178 | } | |
1179 | ||
1180 | int Player = GetPlayerHandle(subMenuIndex); | |
1181 | int Vehicle = GetCarCharIsIn(Player, 0); | |
1182 | ||
1183 | if (RequestNetworkControl(Player, Vehicle)) { | |
1184 | set_vehicle_doors_locked(Vehicle, 4); | |
1185 | ShowMessageOnScreen("~b~ Locked player out of their personal vehicle!"); | |
1186 | KickingPlayerTimeoutCounter = 0; | |
1187 | ||
1188 | KickinggPlayer = false; | |
1189 | } | |
1190 | ||
1191 | KickingPlayerTimeoutCounter++; | |
1192 | } | |
1193 | ||
1194 | int LMAO(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
1195 | CarPed = selectedMenuIndexes->operator[](1); | |
1196 | int player = selectedMenuIndexes->operator[](1); | |
1197 | animid = selectedMenuIndexes->operator[](1); | |
1198 | int ped = GetPlayerHandle(player); | |
1199 | int Vehicle = GetCarCharIsIn(ped, 0); | |
1200 | float Pos[3]; | |
1201 | GetEntityCoords(ped, Pos); | |
1202 | set_entity_coords(PlayerPedId(), Pos[0], Pos[1], Pos[2]); | |
1203 | if (is_ped_on_foot(ped)) { | |
1204 | ShowMessageOnScreen("~b~ Player isn't in any vehicle, Teleporting you to them anyway"); | |
1205 | return 0; | |
1206 | } | |
1207 | if (!KickinggPlayer) { | |
1208 | KickinggPlayer = true; | |
1209 | KickingPlayerIndex = selectedMenuIndexes->operator[](1); | |
1210 | } | |
1211 | kidnap = true; | |
1212 | //warp = true; | |
1213 | //ShowMessageOnScreen("~b~ Not completed"); | |
1214 | return 0; | |
1215 | } | |
1216 | ||
1217 | bool teleportingPlayer = false; | |
1218 | int teleportingPlayerIndex = 0; | |
1219 | int teleportingPlayerTimeout = 310; | |
1220 | int teleportingPlayerTimeoutCounter = 0; | |
1221 | ||
1222 | void TeleportPlayerProcess() { | |
1223 | int subMenuIndex = teleportingPlayerIndex; | |
1224 | ||
1225 | // check to see if we are at our timeout limit | |
1226 | if (teleportingPlayerTimeoutCounter >= teleportingPlayerTimeout) { | |
1227 | teleportingPlayer = false; | |
1228 | ShowMessageOnScreen("~b~ Failed to teleport player. Retrys timed out."); | |
1229 | teleportingPlayerTimeoutCounter = 0; | |
1230 | return; | |
1231 | } | |
1232 | ||
1233 | int Player = GetPlayerHandle(subMenuIndex); | |
1234 | int Vehicle = GetCarCharIsIn(Player, 0); | |
1235 | ||
1236 | if (RequestNetworkControl(Player, Vehicle)) { | |
1237 | float Position[3]; | |
1238 | GetEntityCoords(PlayerPedId(), Position); | |
1239 | ||
1240 | set_entity_coords(Vehicle, Position[0], Position[1] + 2.0f, Position[2] + 12.0f, 0, 0, 0, 1); | |
1241 | ||
1242 | ShowMessageOnScreen("~b~ Teleported player"); | |
1243 | teleportingPlayerTimeoutCounter = 0; | |
1244 | ||
1245 | teleportingPlayer = false; | |
1246 | } | |
1247 | ||
1248 | teleportingPlayerTimeoutCounter++; | |
1249 | } | |
1250 | ||
1251 | int TeleportPlayerToMe(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
1252 | ||
1253 | // Check to see if we are in the process of teleporting a player | |
1254 | if (!teleportingPlayer) { | |
1255 | teleportingPlayer = true; | |
1256 | teleportingPlayerIndex = selectedMenuIndexes->operator[](1); | |
1257 | } | |
1258 | ||
1259 | return 0; | |
1260 | } | |
1261 | ||
1262 | bool Delete = false; | |
1263 | int DeleteIndex = 0; | |
1264 | int DeleteTimeout = 310; | |
1265 | int DeleteTimeoutCounter = 0; | |
1266 | int deletevehicle; | |
1267 | bool deleted = false; | |
1268 | void DeleteProcess() { | |
1269 | int subMenuIndex = teleportingPlayerIndex; | |
1270 | ||
1271 | // check to see if we are at our timeout limit | |
1272 | if (DeleteTimeoutCounter >= DeleteTimeout) { | |
1273 | Delete = false; | |
1274 | ShowMessageOnScreen("~b~ Failed to delete vehicle. Retrys timed out."); | |
1275 | DeleteTimeoutCounter = 0; | |
1276 | return; | |
1277 | } | |
1278 | ||
1279 | int Player = GetPlayerHandle(subMenuIndex); | |
1280 | int Vehicle = GetCarCharIsIn(Player, 0); | |
1281 | ||
1282 | if (RequestNetworkControl(Player, Vehicle)) { | |
1283 | //int car = get_entity_model(Vehicle); | |
1284 | deletevehicle = Vehicle; | |
1285 | deleted = true; | |
1286 | ShowMessageOnScreen("~b~ Deleted Players Vehicle"); | |
1287 | DeleteTimeoutCounter = 0; | |
1288 | Delete = false; | |
1289 | } | |
1290 | ||
1291 | DeleteTimeoutCounter++; | |
1292 | } | |
1293 | ||
1294 | int DeleteVehicle(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
1295 | ||
1296 | // Check to see if we are in the process of teleporting a player | |
1297 | if (!Delete) { | |
1298 | Delete = true; | |
1299 | DeleteIndex = selectedMenuIndexes->operator[](1); | |
1300 | } | |
1301 | ||
1302 | return 0; | |
1303 | } | |
1304 | ||
1305 | ||
1306 | bool da = false; | |
1307 | bool air = false; | |
1308 | bool dw = false; | |
1309 | bool waterwheel = false; | |
1310 | int DriveWater(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
1311 | if (!dw) { | |
1312 | dw = true; | |
1313 | da = false; | |
1314 | ShowMessageOnScreen("~b~ Drive on water on"); | |
1315 | model = -1003748966; | |
1316 | objectspawn = true; | |
1317 | waterwheel = true; | |
1318 | air = false; | |
1319 | } | |
1320 | else if (dw) { | |
1321 | dw = false; | |
1322 | ShowMessageOnScreen("~b~ Drive on water off"); | |
1323 | } | |
1324 | ||
1325 | return 0; | |
1326 | } | |
1327 | bool driveairz = false; | |
1328 | bool speedo = false; | |
1329 | float speedmul; | |
1330 | int DriveAirGz(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
1331 | if (!speedo) { | |
1332 | ShowMessageOnScreen("~b~ Speedometer turned on"); | |
1333 | speedmul = 4.55; | |
1334 | //driveairz = true; | |
1335 | //zdrop = true; | |
1336 | speedo = true; | |
1337 | } | |
1338 | else if (speedo) { | |
1339 | ShowMessageOnScreen("~b~ Speedometer turned off"); | |
1340 | //driveairz = false; | |
1341 | //zdrop = false; | |
1342 | speedo = false; | |
1343 | } | |
1344 | return 0; | |
1345 | } | |
1346 | ||
1347 | int DriveAir(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
1348 | if (!da) { | |
1349 | dw = false; | |
1350 | da = true; | |
1351 | float Pos[3]; | |
1352 | GetEntityCoords(GetCarCharIsIn(PlayerPedId(), 0), Pos); // 370 | |
1353 | set_entity_coords(GetCarCharIsIn(PlayerPedId(), 0), Pos[0], Pos[1], 370, 1, 0, 0, 1); | |
1354 | ShowMessageOnScreen("~b~ Drive in air on"); | |
1355 | model = -1003748966; | |
1356 | objectspawn = true; | |
1357 | waterwheel = true; | |
1358 | air = true; | |
1359 | } | |
1360 | else if (da) { | |
1361 | da = false; | |
1362 | air = false; | |
1363 | float gz; | |
1364 | if (zdrop) { | |
1365 | float Pos[3]; | |
1366 | GetEntityCoords(GetCarCharIsIn(PlayerPedId(), 0), Pos); | |
1367 | if(get_ground_z_for_3d_coord(Pos[0], Pos[1], 600.0f, &Pos[2])) { | |
1368 | set_entity_coords(GetCarCharIsIn(PlayerPedId(), 0), Pos[0], Pos[1], Pos[2], 1, 0, 0, 1); | |
1369 | } | |
1370 | } | |
1371 | ShowMessageOnScreen("~b~ Drive in air off"); | |
1372 | } | |
1373 | return 0; | |
1374 | } | |
1375 | ||
1376 | void drive_water() { | |
1377 | //if (is_entity_in_water(GetCarCharIsIn(PlayerPedId(), 0))) { | |
1378 | float Pos[3]; | |
1379 | GetEntityCoords(GetCarCharIsIn(PlayerPedId(), 0), Pos); | |
1380 | if (!air){ | |
1381 | set_entity_coords(waterobj, Pos[0], Pos[1], - 0.9, 1, 0, 0, 1); | |
1382 | } | |
1383 | else { | |
1384 | set_entity_coords(waterobj, Pos[0], Pos[1], 360, 1, 0, 0, 1); | |
1385 | } | |
1386 | set_entity_rotation(waterobj,180,90,180,2,1); | |
1387 | set_entity_visible(waterobj, false); | |
1388 | freeze_entity_position(waterobj, true); | |
1389 | } | |
1390 | ||
1391 | bool fixPlayersCar = false; | |
1392 | int fixPlayersCarIndex = 0; | |
1393 | int fixPlayersCarTimeout = 310; | |
1394 | int fixPlayersCarTimeoutCounter = 0; | |
1395 | ||
1396 | void FixVehicleOnlineProcess() { | |
1397 | int subMenuIndex = fixPlayersCarIndex; | |
1398 | ||
1399 | // check to see if we are at our timeout limit | |
1400 | if (fixPlayersCarTimeoutCounter >= fixPlayersCarTimeout) { | |
1401 | fixPlayersCar = false; | |
1402 | ShowMessageOnScreen("~b~ Failed to fix players car. Retrys timed out."); | |
1403 | fixPlayersCarTimeoutCounter = 0; | |
1404 | return; | |
1405 | } | |
1406 | ||
1407 | int Player = GetPlayerHandle(subMenuIndex); | |
1408 | int Vehicle = GetCarCharIsIn(Player, 0); | |
1409 | ||
1410 | if (RequestNetworkControl(Player, Vehicle)) { | |
1411 | FixCar(Vehicle); | |
1412 | set_vehicle_dirt_level(Vehicle, 0.0f); | |
1413 | ShowMessageOnScreen("~b~ Fixed players car."); | |
1414 | fixPlayersCarTimeoutCounter = 0; | |
1415 | fixPlayersCar = false; | |
1416 | } | |
1417 | ||
1418 | fixPlayersCarTimeoutCounter++; | |
1419 | } | |
1420 | ||
1421 | int FixVehicleOnline(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
1422 | ||
1423 | // Check to see if we are in the process of teleporting a player | |
1424 | if (!fixPlayersCar) { | |
1425 | fixPlayersCar = true; | |
1426 | fixPlayersCarIndex = selectedMenuIndexes->operator[](1); | |
1427 | } | |
1428 | ||
1429 | return 0; | |
1430 | } | |
1431 | ||
1432 | int SuperRun(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
1433 | myplayerped = GetPlayerHandle(PlayerId()); | |
1434 | //Sleep(500); | |
1435 | ShowMessageOnScreen("~b~ Toggled super run."); | |
1436 | superruncheck = !superruncheck;//toggle | |
1437 | return 0; | |
1438 | } | |
1439 | ||
1440 | void super_run() { | |
1441 | if (menuInputHandler->AButtonDown()) { | |
1442 | //printf("running\n"); | |
1443 | apply_force_to_entity(/*myplayerped*/PlayerPedId(), true, 0, 3, 0, 0, 0, 0, true, true, true, true, false, true); | |
1444 | } | |
1445 | } | |
1446 | ||
1447 | int SuperJump(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
1448 | myplayerped = GetPlayerHandle(PlayerId()); | |
1449 | //Sleep(500); | |
1450 | ShowMessageOnScreen("~b~ Toggled super jump."); | |
1451 | superjump = !superjump;//toggle | |
1452 | return 0; | |
1453 | } | |
1454 | ||
1455 | bool superJumping = false; | |
1456 | ||
1457 | void super_jump() | |
1458 | { | |
1459 | if (!buttonpressed) { | |
1460 | if (menuInputHandler->XButtonDown() && !superJumping) { | |
1461 | //printf("X button pressed\n"); | |
1462 | apply_force_to_entity(myplayerped, true, 0, 0, 15, 0, 0, 0, true, true, true, true, false, true); | |
1463 | //Sleep(600); | |
1464 | //buttonpressed = false; | |
1465 | //buttonpressed = true; | |
1466 | superJumping = true; | |
1467 | } | |
1468 | else if (menuInputHandler->XButtonDown()) { | |
1469 | superJumping = false; | |
1470 | } | |
1471 | } | |
1472 | } | |
1473 | int scriptsetModel = -1; | |
1474 | bool car = false; | |
1475 | int SpawnSultan(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
1476 | { | |
1477 | car = true; | |
1478 | scriptsetModel = 0x39DA2754; // sultan | |
1479 | //ShowMessageOnScreen("~b~ This doesn't work"); | |
1480 | return 0; | |
1481 | } | |
1482 | int SpawnFuto(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
1483 | { | |
1484 | car = true; | |
1485 | scriptsetModel = 2016857647; // sultan | |
1486 | //ShowMessageOnScreen("~b~ This doesn't work"); | |
1487 | return 0; | |
1488 | } | |
1489 | int SpawnBuffalo(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
1490 | { | |
1491 | car = true; | |
1492 | scriptsetModel = 736902334; // sultan | |
1493 | //ShowMessageOnScreen("~b~ This doesn't work"); | |
1494 | return 0; | |
1495 | } | |
1496 | int SpawnRoos(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
1497 | { | |
1498 | car = true; | |
1499 | scriptsetModel = 117401876; // sultan | |
1500 | //ShowMessageOnScreen("~b~ This doesn't work"); | |
1501 | return 0; | |
1502 | } | |
1503 | bool bguard = false; | |
1504 | int ChopSpawn(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
1505 | { | |
1506 | bguard = true; | |
1507 | return 0; | |
1508 | } | |
1509 | ||
1510 | bool movement = false; | |
1511 | char* anim1; | |
1512 | int DrunkMode(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
1513 | { | |
1514 | movement = true; | |
1515 | anim1 = "move_m@drunk@verydrunk"; | |
1516 | ShowMessageOnScreen("~b~ Drunk mode activated"); | |
1517 | return 0; | |
1518 | } | |
1519 | ||
1520 | int NormalM(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
1521 | { | |
1522 | movement = true; | |
1523 | anim1 = "move_m@generic"; | |
1524 | ShowMessageOnScreen("~b~ Normal male mode activated"); | |
1525 | return 0; | |
1526 | } | |
1527 | ||
1528 | int NormalF(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
1529 | { | |
1530 | movement = true; | |
1531 | anim1 = "move_f@generic"; | |
1532 | ShowMessageOnScreen("~b~ Normal female mode activated"); | |
1533 | return 0; | |
1534 | } | |
1535 | bool anattack = false; | |
1536 | int AnimalAttack(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
1537 | { | |
1538 | //ShowMessageOnScreen("~b~ Whenever you change to a cougar or dog you can now attack people!"); | |
1539 | anattack = true; | |
1540 | return 0; | |
1541 | } | |
1542 | ||
1543 | int TeleportToOnlinePlayer(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
1544 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
1545 | int Handle = GetPlayerHandle(subMenuIndex); | |
1546 | int myhandle = GetPlayerHandle(PlayerId()); | |
1547 | int myvehicle; | |
1548 | if (is_ped_in_any_vehicle(myhandle)) { | |
1549 | myvehicle = GetCarCharIsIn(myhandle, 0); | |
1550 | if (DoesEntityExist(myvehicle) && IsEntityVehicle(myvehicle)) { | |
1551 | float Position[3]; | |
1552 | GetEntityCoords(Handle, Position); | |
1553 | set_entity_coords(myvehicle, Position[0], Position[1], Position[2], 0, 0, 0, 1); | |
1554 | } | |
1555 | else { | |
1556 | float Position[3]; | |
1557 | GetEntityCoords(Handle, Position); | |
1558 | set_entity_coords(myhandle, Position[0], Position[1], Position[2], 0, 0, 0, 1); | |
1559 | } | |
1560 | ShowMessageOnScreen("~b~ Teleported to online player."); | |
1561 | return 0; | |
1562 | } | |
1563 | } | |
1564 | ||
1565 | int BlowUpOnlinePlayer(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
1566 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
1567 | int Handle = GetPlayerHandle(subMenuIndex); | |
1568 | ||
1569 | float Position[3]; | |
1570 | GetEntityCoords(Handle, Position); | |
1571 | AddExplosion(Position[0], Position[1], Position[2], BLIMP, FLT_MAX, true, false, 0.0f); | |
1572 | AddExplosion(Position[0], Position[1], Position[2], TRAIN, FLT_MAX, true, false, 0.0f); | |
1573 | ShowMessageOnScreen("~b~ Blew player up"); | |
1574 | ||
1575 | return 0; | |
1576 | } | |
1577 | ||
1578 | int BlowUpOnlinePlayerWater(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
1579 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
1580 | int Handle = GetPlayerHandle(subMenuIndex); | |
1581 | ||
1582 | float Position[3]; | |
1583 | GetEntityCoords(Handle, Position); | |
1584 | AddExplosion(Position[0], Position[1], Position[2] - 0.8f, DIR_WATER_HYDRANT, 8.0f, true, false, 0.0f); | |
1585 | ShowMessageOnScreen("~b~ Blasted player with water."); | |
1586 | ||
1587 | return 0; | |
1588 | } | |
1589 | ||
1590 | int BlowUpOnlinePlayerInvisible(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
1591 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
1592 | int Handle = GetPlayerHandle(subMenuIndex); | |
1593 | ||
1594 | float Position[3]; | |
1595 | GetEntityCoords(Handle, Position); | |
1596 | AddExplosion(Position[0], Position[1], Position[2], BLIMP, FLT_MAX, false, true, 0.0f); | |
1597 | AddExplosion(Position[0], Position[1], Position[2], TRAIN, FLT_MAX, false, true, 0.0f); | |
1598 | ShowMessageOnScreen("~b~ Invisible Nuke!"); | |
1599 | ||
1600 | return 0; | |
1601 | } | |
1602 | ||
1603 | int ChopAttack(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
1604 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
1605 | int Handle = GetPlayerHandle(subMenuIndex); | |
1606 | /* | |
1607 | task_combat_ped(chop, Handle, 0, 0x10);*/ | |
1608 | ShowMessageOnScreen("~b~ Not completed yet!"); | |
1609 | return 0; | |
1610 | } | |
1611 | int trollcli; | |
1612 | bool cash2, cash1 = false; | |
1613 | int FakeMes0(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
1614 | trollcli = selectedMenuIndexes->operator[](1); | |
1615 | int Handle = GetPlayerHandle(trollcli); | |
1616 | cash2 = true; | |
1617 | return 0; | |
1618 | } | |
1619 | ||
1620 | int FakeMes1(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
1621 | trollcli = selectedMenuIndexes->operator[](1); | |
1622 | int Handle = GetPlayerHandle(trollcli); | |
1623 | cash1 = true; | |
1624 | return 0; | |
1625 | } | |
1626 | ||
1627 | ||
1628 | int FixMyCar(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
1629 | { | |
1630 | int myhandle = GetPlayerHandle(PlayerId()); | |
1631 | int myvehicle; | |
1632 | if (is_ped_in_any_vehicle(myhandle)) { | |
1633 | myvehicle = GetCarCharIsIn(myhandle, 0); | |
1634 | if (DoesEntityExist(myvehicle) && IsEntityVehicle(myvehicle)) { | |
1635 | FixCar(myvehicle); | |
1636 | set_vehicle_dirt_level(myvehicle, 0.0f); | |
1637 | ShowMessageOnScreen("~b~ Fixed Car."); | |
1638 | } | |
1639 | } | |
1640 | else{ | |
1641 | ShowMessageOnScreen("~b~ You aren't in a vehicle."); | |
1642 | } | |
1643 | return 0; | |
1644 | } | |
1645 | bool collision = false; | |
1646 | int SetCarCol(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
1647 | { | |
1648 | int myhandle = GetPlayerHandle(PlayerId()); | |
1649 | int myvehicle; | |
1650 | if (is_ped_in_any_vehicle(myhandle)) { | |
1651 | myvehicle = GetCarCharIsIn(myhandle, 0); | |
1652 | if (DoesEntityExist(myvehicle) && IsEntityVehicle(myvehicle) && !collision) { | |
1653 | set_entity_collision(myvehicle, false); | |
1654 | collision = true; | |
1655 | ShowMessageOnScreen("~b~ Toggled vehicle collision off"); | |
1656 | } | |
1657 | else if (DoesEntityExist(myvehicle) && IsEntityVehicle(myvehicle) && collision) { | |
1658 | set_entity_collision(myvehicle, true); | |
1659 | collision = false; | |
1660 | ShowMessageOnScreen("~b~ Toggled vehicle collision on"); | |
1661 | } | |
1662 | } | |
1663 | else{ | |
1664 | ShowMessageOnScreen("~b~ You aren't in a vehicle."); | |
1665 | } | |
1666 | return 0; | |
1667 | } | |
1668 | bool lowered = false; | |
1669 | int lower = 0; | |
1670 | int LowerVehicle(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
1671 | { | |
1672 | if (is_ped_in_any_vehicle(PlayerPedId())) | |
1673 | { | |
1674 | if (lower == 0) | |
1675 | { | |
1676 | lowered = true; | |
1677 | lower = 1; | |
1678 | ShowMessageOnScreen("~b~ Lowered car turned on."); | |
1679 | } | |
1680 | else if (lower == 1) | |
1681 | { | |
1682 | lowered = false; | |
1683 | lower = 0; | |
1684 | ShowMessageOnScreen("~b~ Lowered car turned off."); | |
1685 | } | |
1686 | } | |
1687 | else{ | |
1688 | ShowMessageOnScreen("~b~ You aren't in a vehicle."); | |
1689 | } | |
1690 | return 0; | |
1691 | } | |
1692 | ||
1693 | bool wanted = false; | |
1694 | int wantedvar = 0; | |
1695 | int WantedPlayer(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
1696 | { | |
1697 | if (wantedvar == 0) | |
1698 | { | |
1699 | wanted = true; | |
1700 | wantedvar = 1; | |
1701 | ShowMessageOnScreen("~b~ Cops have been turned off"); | |
1702 | } | |
1703 | else if (wantedvar == 1) | |
1704 | { | |
1705 | wanted = false; | |
1706 | wantedvar = 0; | |
1707 | ShowMessageOnScreen("~b~ Cops turned back on!"); | |
1708 | } | |
1709 | return 0; | |
1710 | } | |
1711 | ||
1712 | void wantedloop() { | |
1713 | set_player_wanted_level(PlayerId(), 0); | |
1714 | } | |
1715 | ||
1716 | bool field = false; | |
1717 | int fieldvar = 0; | |
1718 | int FieldToggle(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
1719 | { | |
1720 | if (fieldvar == 0) | |
1721 | { | |
1722 | field = true; | |
1723 | fieldvar = 1; | |
1724 | ShowMessageOnScreen("~b~ Force Field on"); | |
1725 | SetPlayerInvincible(PlayerId(), true); | |
1726 | } | |
1727 | else if (fieldvar == 1) | |
1728 | { | |
1729 | field = false; | |
1730 | fieldvar = 0; | |
1731 | ShowMessageOnScreen("~b~ Force Field off"); | |
1732 | SetPlayerInvincible(PlayerId(), false); | |
1733 | } | |
1734 | return 0; | |
1735 | } | |
1736 | ||
1737 | void fieldloop() { | |
1738 | float Position[3]; | |
1739 | GetEntityCoords(GetPlayerHandle(PlayerId()), Position); | |
1740 | AddExplosion(Position[0], Position[1], Position[2], BLIMP, FLT_MAX, false, true, 0.0f); | |
1741 | AddExplosion(Position[0], Position[1], Position[2], TRAIN, FLT_MAX, false, true, 0.0f); | |
1742 | } | |
1743 | ||
1744 | ||
1745 | ||
1746 | void lowerloop() | |
1747 | { | |
1748 | int myhandle = GetPlayerHandle(PlayerId()); | |
1749 | int myvehicle; | |
1750 | if (is_ped_in_any_vehicle(myhandle)) { | |
1751 | myvehicle = GetCarCharIsIn(myhandle, 0); | |
1752 | if (DoesEntityExist(myvehicle) && IsEntityVehicle(myvehicle)) { | |
1753 | if (lower == 1) | |
1754 | { | |
1755 | apply_force_to_entity(myvehicle, true, 0, 0, -0.2, 0, 0, 0, true, true, true, true, false, true); | |
1756 | } | |
1757 | } | |
1758 | } | |
1759 | } | |
1760 | ||
1761 | int SetCarInvisible(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
1762 | { | |
1763 | int myhandle = GetPlayerHandle(PlayerId()); | |
1764 | int myvehicle; | |
1765 | if (is_ped_in_any_vehicle(myhandle)) { | |
1766 | myvehicle = GetCarCharIsIn(myhandle, 0); | |
1767 | if (DoesEntityExist(myvehicle) && IsEntityVehicle(myvehicle)) { | |
1768 | //FixCar(myvehicle); | |
1769 | if (!carvisible) | |
1770 | { | |
1771 | set_entity_visible(myvehicle, false); | |
1772 | ShowMessageOnScreen("~b~ Car is invisible"); | |
1773 | carvisible = true; | |
1774 | } | |
1775 | else if (carvisible) | |
1776 | { | |
1777 | set_entity_visible(myvehicle, true); | |
1778 | ShowMessageOnScreen("~b~ Car is visible"); | |
1779 | carvisible = false; | |
1780 | } | |
1781 | } | |
1782 | } | |
1783 | else{ | |
1784 | ShowMessageOnScreen("~b~ You aren't in a vehicle."); | |
1785 | } | |
1786 | return 0; | |
1787 | } | |
1788 | ||
1789 | int BurnOnlinePlayer(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
1790 | { | |
1791 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
1792 | int Handle = GetPlayerHandle(subMenuIndex); | |
1793 | //StartEntityFire(Handle); | |
1794 | ShowMessageOnScreen("~b~ Burned online player"); | |
1795 | ||
1796 | return 0; | |
1797 | } | |
1798 | ||
1799 | int KickOnlinePlayer(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
1800 | { | |
1801 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
1802 | network_session_kick_player(subMenuIndex); | |
1803 | ShowMessageOnScreen("~b~ Kicked online player"); | |
1804 | ||
1805 | return 0; | |
1806 | } | |
1807 | int OnlinePlayerWanted(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
1808 | { | |
1809 | set_player_wanted_level(PlayerId(), 5); | |
1810 | set_player_wanted_level_now(PlayerId(), 5); | |
1811 | /* | |
1812 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
1813 | float Pos[3]; | |
1814 | GetEntityCoords(PlayerPedId(), Pos); | |
1815 | if (is_ped_on_foot(GetPlayerHandle(subMenuIndex))) | |
1816 | ShowMessageOnScreen("~b~ Player isn't in a vehicle sorry"); | |
1817 | ||
1818 | else { | |
1819 | set_player_wanted_level(PlayerId(), 5); | |
1820 | set_player_wanted_level_now(PlayerId(), 5); | |
1821 | warp = true; | |
1822 | set_entity_coords(GetPlayerHandle(PlayerId()), Pos[0], Pos[1], Pos[2], 0, 0, 0, 1); | |
1823 | set_player_wanted_level(PlayerId(), 0); | |
1824 | set_player_wanted_level_now(PlayerId(), 0); | |
1825 | ShowMessageOnScreen("~b~ Gave player 5 star wanted level"); | |
1826 | }*/ | |
1827 | ShowMessageOnScreen("~b~ This isn't quite working yet, Teleport in to their car to give them your wanted level"); | |
1828 | return 0; | |
1829 | } | |
1830 | bool fwloaded = false; | |
1831 | bool fwvcheck = false; | |
1832 | char *fexp = ""; | |
1833 | float fcoords[3]; | |
1834 | int FireWorkExp(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
1835 | { | |
1836 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
1837 | GetEntityCoords(GetPlayerHandle(subMenuIndex), fcoords); | |
1838 | fexp = "scr_indep_firework_fountain"; | |
1839 | fwvcheck = true; | |
1840 | return 0; | |
1841 | } | |
1842 | int FireWorkExp1(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
1843 | { | |
1844 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
1845 | GetEntityCoords(GetPlayerHandle(subMenuIndex), fcoords); | |
1846 | fexp = "scr_indep_firework_shotburst"; | |
1847 | fwvcheck = true; | |
1848 | return 0; | |
1849 | } | |
1850 | int FireWorkExp2(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
1851 | { | |
1852 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
1853 | GetEntityCoords(GetPlayerHandle(subMenuIndex), fcoords); | |
1854 | fexp = "scr_indep_firework_starburst"; | |
1855 | fwvcheck = true; | |
1856 | return 0; | |
1857 | } | |
1858 | int FireWorkExp3(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
1859 | { | |
1860 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
1861 | GetEntityCoords(GetPlayerHandle(subMenuIndex), fcoords); | |
1862 | fexp = "scr_indep_firework_trailburst"; | |
1863 | fwvcheck = true; | |
1864 | return 0; | |
1865 | } | |
1866 | char *fexp1 = ""; | |
1867 | int FireWorkExp_0(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
1868 | { | |
1869 | fexp1 = "scr_indep_firework_fountain"; | |
1870 | return 0; | |
1871 | } | |
1872 | int FireWorkExp_1(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
1873 | { | |
1874 | fexp1 = "scr_indep_firework_shotburst"; | |
1875 | return 0; | |
1876 | } | |
1877 | int FireWorkExp_2(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
1878 | { | |
1879 | fexp1 = "scr_indep_firework_starburst"; | |
1880 | return 0; | |
1881 | } | |
1882 | int FireWorkExp_3(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
1883 | { | |
1884 | fexp1 = "scr_indep_firework_trailburst"; | |
1885 | return 0; | |
1886 | } | |
1887 | float fr, fg, fb; | |
1888 | float fwsize; | |
1889 | int FWOpt(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
1890 | { | |
1891 | fwsize = 1.0; | |
1892 | return 0; | |
1893 | } | |
1894 | int FWOpt1(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
1895 | { | |
1896 | fwsize = 3.0; | |
1897 | return 0; | |
1898 | } | |
1899 | int FWOpt2(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
1900 | { | |
1901 | fwsize = 5.0; | |
1902 | return 0; | |
1903 | } | |
1904 | int FWOpt3(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
1905 | { | |
1906 | fr = 1.0, fg = 0, fb = 0; | |
1907 | return 0; | |
1908 | } | |
1909 | int FWOpt4(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
1910 | { | |
1911 | fr = 0, fg = 1.0, fb = 0; | |
1912 | return 0; | |
1913 | } | |
1914 | int FWOpt5(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
1915 | { | |
1916 | fr = 0, fg = 0, fb = 1.0; | |
1917 | return 0; | |
1918 | } | |
1919 | int FWOpt6(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
1920 | { | |
1921 | fr = 1, fg = 0, fb = 0.603921568627451; | |
1922 | return 0; | |
1923 | } | |
1924 | int FWOpt7(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
1925 | { | |
1926 | fr = 0.7254901960784314, fg = 0, fb = 0.5058823529411765; | |
1927 | return 0; | |
1928 | } | |
1929 | int FWOpt8(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
1930 | { | |
1931 | fr = 1.0, fg = 0.5176470588235294, fb = 0.0352941176470588; | |
1932 | return 0; | |
1933 | } | |
1934 | int FWOpt9(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
1935 | { | |
1936 | fr = 0, fg = 1.0, fb = 0.9686274509803922; | |
1937 | return 0; | |
1938 | } | |
1939 | bool col_loop = false; | |
1940 | int FWOpt10(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
1941 | { | |
1942 | if (!col_loop) | |
1943 | { | |
1944 | col_loop = true; | |
1945 | } | |
1946 | else if (col_loop) | |
1947 | { | |
1948 | col_loop = false; | |
1949 | } | |
1950 | return 0; | |
1951 | } | |
1952 | int fwcol = 2; | |
1953 | void fw_col_loop() | |
1954 | { | |
1955 | if (fwcol > 1) | |
1956 | { | |
1957 | fr = 1.0, fg = 0, fb = 0; | |
1958 | fwcol++; | |
1959 | } | |
1960 | if (fwcol > 40) | |
1961 | { | |
1962 | fr = 0, fg = 1.0, fb = 0; | |
1963 | fwcol++; | |
1964 | } | |
1965 | if (fwcol > 80) | |
1966 | { | |
1967 | fr = 0, fg = 0, fb = 1.0; | |
1968 | fwcol++; | |
1969 | } | |
1970 | if (fwcol > 120) | |
1971 | { | |
1972 | fr = 1, fg = 0, fb = 0.603921568627451; | |
1973 | fwcol++; | |
1974 | } | |
1975 | if (fwcol > 160) | |
1976 | { | |
1977 | fr = 0.7254901960784314, fg = 0, fb = 0.5058823529411765; | |
1978 | fwcol++; | |
1979 | } | |
1980 | if (fwcol > 200) | |
1981 | { | |
1982 | fr = 1.0, fg = 0.5176470588235294, fb = 0.0352941176470588; | |
1983 | fwcol++; | |
1984 | } | |
1985 | if (fwcol > 240) | |
1986 | { | |
1987 | fr = 0, fg = 1.0, fb = 0.9686274509803922; | |
1988 | fwcol++; | |
1989 | } | |
1990 | if (fwcol > 280) | |
1991 | { | |
1992 | fwcol = 2; | |
1993 | } | |
1994 | } | |
1995 | ||
1996 | ||
1997 | int RemoveOnlineWanted(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
1998 | { | |
1999 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
2000 | set_player_wanted_level(subMenuIndex, 0); | |
2001 | set_player_wanted_level_now(subMenuIndex, 0); | |
2002 | ShowMessageOnScreen("~b~ Removed players wanted level"); | |
2003 | ||
2004 | return 0; | |
2005 | } | |
2006 | int RemoveOnlinePlayerWeapons(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
2007 | { | |
2008 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
2009 | RemoveWeapons(GetPlayerHandle(subMenuIndex)); | |
2010 | ShowMessageOnScreen("~b~ Removed players guns"); | |
2011 | ||
2012 | return 0; | |
2013 | } | |
2014 | bool custom = false; | |
2015 | int PlayerAcuse(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
2016 | { | |
2017 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
2018 | if (!custom){ | |
2019 | rocketid = 0; | |
2020 | custom = true; | |
2021 | ShowMessageOnScreen("~b~ You will now suffer no consequences for your destruction!"); | |
2022 | } | |
2023 | else if (custom){ | |
2024 | custom = false; | |
2025 | ShowMessageOnScreen("~b~ Tracker has been turned back on the game will now know you are the one behind the destruction!"); | |
2026 | } | |
2027 | ||
2028 | return 0; | |
2029 | } | |
2030 | ||
2031 | int GiveStunGun(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
2032 | { | |
2033 | GiveWeaponDelayed(PlayerPedId(), 0x3656C8C1, 300, 1); | |
2034 | ShowMessageOnScreen("~b~ Gave stun gun"); | |
2035 | ||
2036 | return 0; | |
2037 | } | |
2038 | ||
2039 | int InvisiblePlayer(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
2040 | { | |
2041 | if (!playervisible) | |
2042 | { | |
2043 | set_entity_visible(PlayerPedId(), false); | |
2044 | playervisible = true; | |
2045 | ShowMessageOnScreen("~b~ Invisible player"); | |
2046 | } | |
2047 | else if (playervisible) | |
2048 | { | |
2049 | set_entity_visible(PlayerPedId(), true); | |
2050 | playervisible = false; | |
2051 | ShowMessageOnScreen("~b~ Visible player"); | |
2052 | } | |
2053 | return 0; | |
2054 | } | |
2055 | ||
2056 | int TeleportInToCar(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
2057 | { | |
2058 | CarPed = selectedMenuIndexes->operator[](1); | |
2059 | int player = selectedMenuIndexes->operator[](1); | |
2060 | animid = selectedMenuIndexes->operator[](1); | |
2061 | int ped = GetPlayerHandle(player); | |
2062 | float Pos[3]; | |
2063 | GetEntityCoords(ped, Pos); | |
2064 | set_entity_coords(PlayerPedId(), Pos[0], Pos[1], Pos[2]); | |
2065 | warp = true; | |
2066 | return 0; | |
2067 | } | |
2068 | ||
2069 | int GiveAllWeapons(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
2070 | { | |
2071 | ||
2072 | GiveWeaponDelayed(PlayerPedId(), 0x3656C8C1, 9999, 1); // stun gun | |
2073 | GiveWeaponDelayed(PlayerPedId(), 0x99B507EA, 9999, 1); // knife | |
2074 | GiveWeaponDelayed(PlayerPedId(), 0x678B81B1, 9999, 1); // night stick | |
2075 | GiveWeaponDelayed(PlayerPedId(), 0x4E875F73, 9999, 1); // hammer | |
2076 | GiveWeaponDelayed(PlayerPedId(), 0x958A4A8F, 9999, 1); // bat | |
2077 | GiveWeaponDelayed(PlayerPedId(), 0x440E4788, 9999, 1); // golf club | |
2078 | GiveWeaponDelayed(PlayerPedId(), 0x84BD7BFD, 9999, 1); // crowbar | |
2079 | GiveWeaponDelayed(PlayerPedId(), 0x1B06D571, 9999, 5); // pistol | |
2080 | GiveWeaponDelayed(PlayerPedId(), 0x5EF9FEC4, 9999, 1); // combat pistol | |
2081 | GiveWeaponDelayed(PlayerPedId(), 0x22D8FE39, 9999, 1); // ap pistol | |
2082 | GiveWeaponDelayed(PlayerPedId(), 0x99AEEB3B, 9999, 1); // pistol 50. | |
2083 | GiveWeaponDelayed(PlayerPedId(), 0x13532244, 9999, 1); // micro smg | |
2084 | GiveWeaponDelayed(PlayerPedId(), 0x2BE6766B, 9999, 1); // smg | |
2085 | GiveWeaponDelayed(PlayerPedId(), 0xEFE7E2DF, 9999, 1); // assault smg | |
2086 | GiveWeaponDelayed(PlayerPedId(), 0xBFEFFF6D, 9999, 1); // assault rifle | |
2087 | GiveWeaponDelayed(PlayerPedId(), 0x83BF0278, 9999, 1); // carbine rifle | |
2088 | GiveWeaponDelayed(PlayerPedId(), 0xAF113F99, 9999, 1); // advanced rifle | |
2089 | GiveWeaponDelayed(PlayerPedId(), 0x9D07F764, 9999, 1); // MG | |
2090 | GiveWeaponDelayed(PlayerPedId(), 0x7FD62962, 9999, 1); // combat mg | |
2091 | GiveWeaponDelayed(PlayerPedId(), 0x1D073A89, 9999, 1); // pump shotgun | |
2092 | GiveWeaponDelayed(PlayerPedId(), 0x7846A318, 9999, 1); // sawnoff shotgun | |
2093 | GiveWeaponDelayed(PlayerPedId(), 0xE284C527, 9999, 1); // assault shotgun | |
2094 | GiveWeaponDelayed(PlayerPedId(), 0x9D61E50F, 9999, 1); // bullpupshotgun | |
2095 | GiveWeaponDelayed(PlayerPedId(), 0x05FC3C11, 9999, 1); // sniper | |
2096 | GiveWeaponDelayed(PlayerPedId(), 0x0C472FE2, 9999, 1); // heavy sniper | |
2097 | GiveWeaponDelayed(PlayerPedId(), 0xA284510B, 9999, 1); // grenade launcher | |
2098 | GiveWeaponDelayed(PlayerPedId(), 0xB1CA77B1, 9999, 1); // rpg | |
2099 | GiveWeaponDelayed(PlayerPedId(), 0x42BF8A85, 9999, 1); // minigun | |
2100 | GiveWeaponDelayed(PlayerPedId(), 0x93E220BD, 9999, 1); // grenades | |
2101 | GiveWeaponDelayed(PlayerPedId(), 0x2C3731D9, 9999, 1); // sticky bomb | |
2102 | GiveWeaponDelayed(PlayerPedId(), 0xFDBC8A50, 9999, 1); // smoke grenade | |
2103 | GiveWeaponDelayed(PlayerPedId(), 0x34A67B97, 9999, 1); // petrol can | |
2104 | GiveWeaponDelayed(PlayerPedId(), 0x060EC506, 9999, 1); // fire extinguisher | |
2105 | GiveWeaponDelayed(PlayerPedId(), 0x24B17070, 9999, 1); // moltovs | |
2106 | GiveWeaponDelayed(PlayerPedId(), 0x497FACC3, 9999, 1); // flare | |
2107 | GiveWeaponDelayed(PlayerPedId(), 0xFDBADCED, 9999, 1); // digiscanner | |
2108 | GiveWeaponDelayed(PlayerPedId(), 0x687652CE, 9999, 1); // stinger | |
2109 | GiveWeaponDelayed(PlayerPedId(), 600439132, 9999, 1); // ball | |
2110 | ||
2111 | ShowMessageOnScreen("~b~ Gave all weapons"); | |
2112 | ||
2113 | return 0; | |
2114 | } | |
2115 | ||
2116 | int GiveWeaponsOnline(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
2117 | { | |
2118 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
2119 | int Handle = GetPlayerHandle(subMenuIndex); | |
2120 | GiveWeaponDelayed(Handle, 0x3656C8C1, 9999, 1); // stun gun | |
2121 | GiveWeaponDelayed(Handle, 0x99B507EA, 9999, 1); // knife | |
2122 | GiveWeaponDelayed(Handle, 0x678B81B1, 9999, 1); // night stick | |
2123 | GiveWeaponDelayed(Handle, 0x4E875F73, 9999, 1); // hammer | |
2124 | GiveWeaponDelayed(Handle, 0x958A4A8F, 9999, 1); // bat | |
2125 | GiveWeaponDelayed(Handle, 0x440E4788, 9999, 1); // golf club | |
2126 | GiveWeaponDelayed(Handle, 0x84BD7BFD, 9999, 1); // crowbar | |
2127 | GiveWeaponDelayed(Handle, 0x1B06D571, 9999, 1); // pistol | |
2128 | GiveWeaponDelayed(Handle, 0x5EF9FEC4, 9999, 1); // combat pistol | |
2129 | GiveWeaponDelayed(Handle, 0x22D8FE39, 9999, 1); // ap pistol | |
2130 | GiveWeaponDelayed(Handle, 0x99AEEB3B, 9999, 1); // pistol 50. | |
2131 | GiveWeaponDelayed(Handle, 0x13532244, 9999, 1); // micro smg | |
2132 | GiveWeaponDelayed(Handle, 0x2BE6766B, 9999, 1); // smg | |
2133 | GiveWeaponDelayed(Handle, 0xEFE7E2DF, 9999, 1); // assault smg | |
2134 | GiveWeaponDelayed(Handle, 0xBFEFFF6D, 9999, 1); // assault rifle | |
2135 | GiveWeaponDelayed(Handle, 0x83BF0278, 9999, 1); // carbine rifle | |
2136 | GiveWeaponDelayed(Handle, 0xAF113F99, 9999, 1); // advanced rifle | |
2137 | GiveWeaponDelayed(Handle, 0x9D07F764, 9999, 1); // MG | |
2138 | GiveWeaponDelayed(Handle, 0x7FD62962, 9999, 1); // combat mg | |
2139 | GiveWeaponDelayed(Handle, 0x1D073A89, 9999, 1); // pump shotgun | |
2140 | GiveWeaponDelayed(Handle, 0x7846A318, 9999, 1); // sawnoff shotgun | |
2141 | GiveWeaponDelayed(Handle, 0xE284C527, 9999, 1); // assault shotgun | |
2142 | GiveWeaponDelayed(Handle, 0x9D61E50F, 9999, 1); // bullpupshotgun | |
2143 | GiveWeaponDelayed(Handle, 0x05FC3C11, 9999, 1); // sniper | |
2144 | GiveWeaponDelayed(Handle, 0x0C472FE2, 9999, 1); // heavy sniper | |
2145 | GiveWeaponDelayed(Handle, 0xA284510B, 9999, 1); // grenade launcher | |
2146 | GiveWeaponDelayed(Handle, 0xB1CA77B1, 9999, 1); // rpg | |
2147 | GiveWeaponDelayed(Handle, 0x42BF8A85, 9999, 1); // minigun | |
2148 | GiveWeaponDelayed(Handle, 0x93E220BD, 9999, 1); // grenades | |
2149 | GiveWeaponDelayed(Handle, 0x2C3731D9, 9999, 1); // sticky bomb | |
2150 | GiveWeaponDelayed(Handle, 0xFDBC8A50, 9999, 1); // smoke grenade | |
2151 | GiveWeaponDelayed(Handle, 0x34A67B97, 9999, 1); // petrol can | |
2152 | GiveWeaponDelayed(Handle, 0x060EC506, 9999, 1); // fire extinguisher | |
2153 | GiveWeaponDelayed(Handle, 0x24B17070, 9999, 1); // moltovs | |
2154 | GiveWeaponDelayed(Handle, 0x497FACC3, 9999, 1); // flare | |
2155 | ||
2156 | ShowMessageOnScreen("~b~ Gave online player all weapons"); | |
2157 | ||
2158 | return 0; | |
2159 | } | |
2160 | ||
2161 | int TakeOnlineAllWeapons(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
2162 | { | |
2163 | //int subMenuIndex = selectedMenuIndexes->operator[](1); | |
2164 | int i = 0; | |
2165 | for (i = 0;i<16;i++) | |
2166 | { | |
2167 | if (i == PlayerId()) continue; | |
2168 | int Handle = GetPlayerHandle(i); | |
2169 | if(!DoesEntityExist(Handle)) continue; | |
2170 | RemoveWeapons(GetPlayerHandle(i)); | |
2171 | } | |
2172 | ShowMessageOnScreen("~b~ Gave all players all weapons"); | |
2173 | return 0; | |
2174 | } | |
2175 | ||
2176 | int GiveOnlineAllWeapons(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
2177 | { | |
2178 | int i = 0; | |
2179 | for (i = 0;i<16;i++) | |
2180 | { | |
2181 | if (i == PlayerId()) continue; | |
2182 | int Handle = GetPlayerHandle(i); | |
2183 | if(!DoesEntityExist(Handle)) continue; | |
2184 | GiveWeaponDelayed(Handle, 0x3656C8C1, 9999, 1); // stun gun | |
2185 | GiveWeaponDelayed(Handle, 0x99B507EA, 9999, 1); // knife | |
2186 | GiveWeaponDelayed(Handle, 0x678B81B1, 9999, 1); // night stick | |
2187 | GiveWeaponDelayed(Handle, 0x4E875F73, 9999, 1); // hammer | |
2188 | GiveWeaponDelayed(Handle, 0x958A4A8F, 9999, 1); // bat | |
2189 | GiveWeaponDelayed(Handle, 0x440E4788, 9999, 1); // golf club | |
2190 | GiveWeaponDelayed(Handle, 0x84BD7BFD, 9999, 1); // crowbar | |
2191 | GiveWeaponDelayed(Handle, 0x1B06D571, 9999, 1); // pistol | |
2192 | GiveWeaponDelayed(Handle, 0x5EF9FEC4, 9999, 1); // combat pistol | |
2193 | GiveWeaponDelayed(Handle, 0x22D8FE39, 9999, 1); // ap pistol | |
2194 | GiveWeaponDelayed(Handle, 0x99AEEB3B, 9999, 1); // pistol 50. | |
2195 | GiveWeaponDelayed(Handle, 0x13532244, 9999, 1); // micro smg | |
2196 | GiveWeaponDelayed(Handle, 0x2BE6766B, 9999, 1); // smg | |
2197 | GiveWeaponDelayed(Handle, 0xEFE7E2DF, 9999, 1); // assault smg | |
2198 | GiveWeaponDelayed(Handle, 0xBFEFFF6D, 9999, 1); // assault rifle | |
2199 | GiveWeaponDelayed(Handle, 0x83BF0278, 9999, 1); // carbine rifle | |
2200 | GiveWeaponDelayed(Handle, 0xAF113F99, 9999, 1); // advanced rifle | |
2201 | GiveWeaponDelayed(Handle, 0x9D07F764, 9999, 1); // MG | |
2202 | GiveWeaponDelayed(Handle, 0x7FD62962, 9999, 1); // combat mg | |
2203 | GiveWeaponDelayed(Handle, 0x1D073A89, 9999, 1); // pump shotgun | |
2204 | GiveWeaponDelayed(Handle, 0x7846A318, 9999, 1); // sawnoff shotgun | |
2205 | GiveWeaponDelayed(Handle, 0xE284C527, 9999, 1); // assault shotgun | |
2206 | GiveWeaponDelayed(Handle, 0x9D61E50F, 9999, 1); // bullpupshotgun | |
2207 | GiveWeaponDelayed(Handle, 0x05FC3C11, 9999, 1); // sniper | |
2208 | GiveWeaponDelayed(Handle, 0x0C472FE2, 9999, 1); // heavy sniper | |
2209 | GiveWeaponDelayed(Handle, 0xA284510B, 9999, 1); // grenade launcher | |
2210 | GiveWeaponDelayed(Handle, 0xB1CA77B1, 9999, 1); // rpg | |
2211 | GiveWeaponDelayed(Handle, 0x42BF8A85, 9999, 1); // minigun | |
2212 | GiveWeaponDelayed(Handle, 0x93E220BD, 9999, 1); // grenades | |
2213 | GiveWeaponDelayed(Handle, 0x2C3731D9, 9999, 1); // sticky bomb | |
2214 | GiveWeaponDelayed(Handle, 0xFDBC8A50, 9999, 1); // smoke grenade | |
2215 | GiveWeaponDelayed(Handle, 0x34A67B97, 9999, 1); // petrol can | |
2216 | GiveWeaponDelayed(Handle, 0x060EC506, 9999, 1); // fire extinguisher | |
2217 | GiveWeaponDelayed(Handle, 0x24B17070, 9999, 1); // moltovs | |
2218 | GiveWeaponDelayed(Handle, 0x497FACC3, 9999, 1); // flare | |
2219 | ||
2220 | ShowMessageOnScreen("~b~ Gave online players all weapons"); | |
2221 | ||
2222 | return 0; | |
2223 | } | |
2224 | } | |
2225 | ||
2226 | int BlowUpAllOnlinePlayers(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2227 | int i = 0; | |
2228 | for (i = 0;i<16;i++) | |
2229 | { | |
2230 | if (i == PlayerId()) continue; | |
2231 | int Handle = GetPlayerHandle(i); | |
2232 | if(!DoesEntityExist(Handle)) continue; | |
2233 | float Position[3]; | |
2234 | GetEntityCoords(Handle, Position); | |
2235 | AddExplosion(Position[0], Position[1], Position[2], 16, 2.0f, true, false, 0.0f); | |
2236 | } | |
2237 | return 0; | |
2238 | ShowMessageOnScreen("~b~ Blew up all players"); | |
2239 | } | |
2240 | bool alltelefoot = false; | |
2241 | int TeleAllOnlinePlayers(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2242 | alltelefoot = true; | |
2243 | ShowMessageOnScreen("~b~ Teleporting all players"); | |
2244 | return 0; | |
2245 | } | |
2246 | ||
2247 | int AllWay(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2248 | alltelefootway = true; | |
2249 | ShowMessageOnScreen("~b~ Teleporting all players"); | |
2250 | return 0; | |
2251 | } | |
2252 | ||
2253 | ||
2254 | bool allanim = false; | |
2255 | int AllPlayersDance(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2256 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
2257 | animdict = "mini@strip_club@private_dance@part1"; | |
2258 | anim = "priv_dance_p1"; | |
2259 | animid = subMenuIndex; | |
2260 | allanim = true; | |
2261 | ShowMessageOnScreen("~b~ Starting animimation on all players"); | |
2262 | return 0; | |
2263 | } | |
2264 | ||
2265 | int AllPlayersPoleDance(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2266 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
2267 | animdict = "mini@strip_club@pole_dance@pole_dance1"; | |
2268 | anim = "pd_dance_01"; | |
2269 | animid = subMenuIndex; | |
2270 | allanim = true; | |
2271 | ShowMessageOnScreen("~b~ Starting animimation on all players"); | |
2272 | return 0; | |
2273 | } | |
2274 | ||
2275 | int StopAll(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2276 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
2277 | int i = 0; | |
2278 | for (i = 0;i<16;i++) | |
2279 | { | |
2280 | if (i == PlayerId()) continue; | |
2281 | int Handle = GetPlayerHandle(i); | |
2282 | if(!DoesEntityExist(Handle)) continue; | |
2283 | clear_ped_tasks(Handle); | |
2284 | } | |
2285 | ShowMessageOnScreen("~b~ Stopping animimation on all players"); | |
2286 | return 0; | |
2287 | } | |
2288 | ||
2289 | int AllPlayersElectrocute(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2290 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
2291 | animdict = "ragdoll@human"; | |
2292 | anim = "electrocute"; | |
2293 | animid = subMenuIndex; | |
2294 | allanim = true; | |
2295 | ShowMessageOnScreen("~b~ Starting animimation on all players"); | |
2296 | return 0; | |
2297 | } | |
2298 | ||
2299 | bool hasaimed = false; | |
2300 | bool hasaimedatplayer = false; | |
2301 | int arresthandle; | |
2302 | int aimbotClient = 0; | |
2303 | bool arrest = false; | |
2304 | bool arresthit = false; | |
2305 | void aimbotloop(int Client) { | |
2306 | int i = Client, | |
2307 | player_id = PlayerId(), | |
2308 | player_ped_id = PlayerPedId(); | |
2309 | //for (i = 0;i<16;i++) | |
2310 | { | |
2311 | if (i == player_id) return;//continue; | |
2312 | int Handle = GetPlayerHandle(i); | |
2313 | if(!DoesEntityExist(Handle)) return;//continue; | |
2314 | if(!isInDistance(Handle)) return;//continue; | |
2315 | if(is_control_pressed(2, 180) && is_ped_on_foot(player_ped_id) && has_entity_clear_los_to_entity(player_ped_id, Handle, 17) && is_ped_on_foot(Handle)) { | |
2316 | if (!arresthit) { | |
2317 | hasaimedatplayer = true; | |
2318 | //ShowMessageOnScreen("~b~ Locked on to player"); | |
2319 | arresthandle = Handle; | |
2320 | arrest = true; | |
2321 | arresthit = true; | |
2322 | } | |
2323 | } | |
2324 | if (is_entity_dead(Handle))return;//continue; | |
2325 | } | |
2326 | if (is_control_just_released(2, 180)) { | |
2327 | if (hasaimedatplayer) { | |
2328 | //ShowMessageOnScreen("~b~ Released aim"); | |
2329 | hasaimed = true; | |
2330 | hasaimedatplayer = false; | |
2331 | arresthit = false; | |
2332 | } | |
2333 | } | |
2334 | } | |
2335 | ||
2336 | void aimbotrelease() { | |
2337 | if (hasaimed) { | |
2338 | //clear_ped_tasks_immediately(PlayerPedId()); | |
2339 | clear_ped_tasks(PlayerPedId()); | |
2340 | hasaimed = false; | |
2341 | } | |
2342 | } | |
2343 | ||
2344 | void UltimateDeagleLoop() | |
2345 | { | |
2346 | float Pos[3]; | |
2347 | float health; | |
2348 | if (is_control_just_pressed(0, 24)){ | |
2349 | GetEntityCoords(PlayerPedId(), Pos); | |
2350 | int vehHandle = get_closest_vehicle(Pos[0], Pos[1], Pos[2], 2000.0f, 0, 0); | |
2351 | health = get_vehicle_petrol_tank_health(vehHandle); | |
2352 | float x, y, z; | |
2353 | GetCoordsInfrontOfSelf(&Pos[0], &Pos[1], &Pos[2]); | |
2354 | if(network_request_control_of_entity(vehHandle) && (health > 1)) { | |
2355 | ShowMessageOnScreen("~b~ "); | |
2356 | freeze_entity_position(vehHandle, true); | |
2357 | set_entity_coords(vehHandle, Pos[0], Pos[1], Pos[2], 0, 0, 0, 1); | |
2358 | set_entity_heading(vehHandle, get_entity_heading(PlayerPedId())); | |
2359 | freeze_entity_position(vehHandle, false); | |
2360 | apply_force_to_entity(vehHandle, 1, 0.0, 1000.0f, 0.0, 0.0, -1.5f, 0.0f, 0, 1, 1, 1, false, true); | |
2361 | } | |
2362 | else { ShowMessageOnScreen("~b~ No vehicle in memory at this time."); } | |
2363 | } | |
2364 | //3455827142:has_ped_been_damaged_by_weapon HAS_CHAR_BEEN_DAMAGED_BY_WEAPON(Test, WEAPON_DEAGLE) 82E13440 | |
2365 | //2955113218:get_current_ped_weapon GET_CURRENT_CHAR_WEAPON(GetPlayerPed(), &weapon); 82E13030 | |
2366 | //133986272:has_entity_been_damaged_by_entity HAS_CHAR_BEEN_DAMAGED_BY_CHAR(Test, GetPlayerPed(), false) 82D7BF80 | |
2367 | } | |
2368 | ||
2369 | int ToggleUltimateDeagle(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2370 | deagle = !deagle; | |
2371 | return 0; | |
2372 | } | |
2373 | bool ammo; | |
2374 | int ToggleAmmo(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2375 | if (!ammo) { | |
2376 | ammo = true; | |
2377 | //set_ped_infinite_ammo(PlayerPedId(), true); | |
2378 | set_ped_infinite_ammo_clip(PlayerPedId(), true); | |
2379 | ShowMessageOnScreen("~b~ Unlimited Ammo turned on!"); | |
2380 | } | |
2381 | else if (ammo) { | |
2382 | //set_ped_infinite_ammo(PlayerPedId(), false); | |
2383 | set_ped_infinite_ammo_clip(PlayerPedId(), false); | |
2384 | ShowMessageOnScreen("~b~ Unlimited Ammo turned off!"); | |
2385 | ammo = false; | |
2386 | } | |
2387 | //ShowMessageOnScreen("~r~ Sorry this has been disabled for now it isn't working properly!"); | |
2388 | return 0; | |
2389 | } | |
2390 | ||
2391 | int ToggleAimbot(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2392 | if (!aimbot) { | |
2393 | aimbot = true; | |
2394 | aimbot_active = true; | |
2395 | ShowMessageOnScreen("~b~ Aimbot turned on!"); | |
2396 | } | |
2397 | else if (aimbot) { | |
2398 | ShowMessageOnScreen("~b~ Aimbot turned off!"); | |
2399 | aimbot_active = false; | |
2400 | aimbot = false; | |
2401 | } | |
2402 | return 0; | |
2403 | } | |
2404 | float excoords[3]; | |
2405 | int exptype = 28; | |
2406 | bool hmmm = false; | |
2407 | int RocketGunExp0(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2408 | exptype = 12; | |
2409 | ShowMessageOnScreen("~r~ Gas leak explosion set"); | |
2410 | return 0; | |
2411 | } | |
2412 | int RocketGunExp1(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2413 | exptype = 13; | |
2414 | ShowMessageOnScreen("~r~ Hyrdrant explosion set"); | |
2415 | return 0; | |
2416 | } | |
2417 | int RocketGunExp2(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2418 | exptype = 19; | |
2419 | ShowMessageOnScreen("~r~ Smoke cloud explosion set"); | |
2420 | return 0; | |
2421 | } | |
2422 | int RocketGunExp3(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2423 | exptype = 22; | |
2424 | ShowMessageOnScreen("~r~ Flare explosion set"); | |
2425 | return 0; | |
2426 | } | |
2427 | int RocketGunExp4(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2428 | exptype = 24; | |
2429 | ShowMessageOnScreen("~r~ Steam explosion set"); | |
2430 | return 0; | |
2431 | } | |
2432 | int RocketGunExp5(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2433 | exptype = 27; | |
2434 | ShowMessageOnScreen("~r~ Small explosion set"); | |
2435 | return 0; | |
2436 | } | |
2437 | int RocketGunExp6(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2438 | exptype = 28; | |
2439 | ShowMessageOnScreen("~r~ Medium explosion set"); | |
2440 | return 0; | |
2441 | } | |
2442 | int RocketGunExp7(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2443 | exptype = 29; | |
2444 | ShowMessageOnScreen("~r~ Massive explosion set"); | |
2445 | return 0; | |
2446 | } | |
2447 | int ToggleRocketGun(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2448 | ||
2449 | if (!rocket_gun) { | |
2450 | rocket_gun = true; | |
2451 | //hmmm = true; | |
2452 | ShowMessageOnScreen("~b~ Rocket guns turned on!"); | |
2453 | } | |
2454 | else if (rocket_gun) { | |
2455 | ShowMessageOnScreen("~b~ Rocket guns turned off!"); | |
2456 | rocket_gun = false; | |
2457 | //hmmm = false; | |
2458 | } | |
2459 | return 0; | |
2460 | } | |
2461 | ||
2462 | void rocketgun() | |
2463 | { | |
2464 | int ped_id = PlayerPedId(); | |
2465 | if ( is_ped_shooting( ped_id ) ) | |
2466 | { | |
2467 | /* printf("Is shooting = true\n"); | |
2468 | float range = 5.0f, | |
2469 | cam_coords[3], | |
2470 | coords[3], | |
2471 | Temp[2][3]; | |
2472 | get_gameplay_cam_coord(cam_coords); | |
2473 | if( is_ped_on_foot(ped_id) ) | |
2474 | { | |
2475 | printf("Is ped on foot = true\n"); | |
2476 | GetEntityCoords(ped_id, coords); | |
2477 | range = Vec3DistanceSq( coords, cam_coords ) + 0.5f; | |
2478 | printf("Range\n"); | |
2479 | } | |
2480 | shoot_single_bullet_between_coords( get_coord_in_front_of_gameplaycam( range, Temp[0] ), get_coord_in_front_of_gameplaycam( 500.0f, Temp[1] ), 0, 1, get_hash_key("WEAPON_STINGER"), ped_id, 0, 1, 2500.0f ); | |
2481 | printf("Shot bullet\n");*/ | |
2482 | if (get_ped_last_weapon_impact_coord(PlayerPedId(), excoords)) | |
2483 | { | |
2484 | //printf("Return = { %f, %f, %f }\n", excoords[0], excoords[1], excoords[2]); | |
2485 | AddExplosion(excoords[0], excoords[1], excoords[2], exptype, 5.0, 1, 0, 0); | |
2486 | } | |
2487 | } | |
2488 | } | |
2489 | ||
2490 | ||
2491 | float fwcoords[3]; | |
2492 | bool fw_gun_ready = false; | |
2493 | void fwgun() | |
2494 | { | |
2495 | int ped_id = PlayerPedId(); | |
2496 | if (is_ped_shooting(ped_id)) | |
2497 | { | |
2498 | if (get_ped_last_weapon_impact_coord(PlayerPedId(), fwcoords)) | |
2499 | { | |
2500 | fw_gun_ready = true; | |
2501 | } | |
2502 | } | |
2503 | } | |
2504 | ||
2505 | void rocketgun2() | |
2506 | { | |
2507 | int ped_id = PlayerPedId(); | |
2508 | if ( is_ped_shooting( ped_id ) ) | |
2509 | { | |
2510 | if (get_ped_last_weapon_impact_coord(PlayerPedId(), excoords)) | |
2511 | { | |
2512 | AddExplosion(excoords[0], excoords[1], excoords[2], 36, 5.0, 1, 0, 0); | |
2513 | } | |
2514 | } | |
2515 | } | |
2516 | ||
2517 | ||
2518 | int TeleImpoundLot(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2519 | float x,y,z; | |
2520 | x = -1330.267822, y = -390.644684, z = 36.602779; | |
2521 | int myhandle = GetPlayerHandle(PlayerId()); | |
2522 | int myvehicle; | |
2523 | if (is_ped_in_any_vehicle(myhandle)) { | |
2524 | myvehicle = GetCarCharIsIn(myhandle, 0); | |
2525 | if (DoesEntityExist(myvehicle) && IsEntityVehicle(myvehicle)) { | |
2526 | set_entity_coords(myvehicle, x, y, z, 0, 0, 0, 1); | |
2527 | } | |
2528 | else { | |
2529 | set_entity_coords(myhandle, x, y, z, 0, 0, 0, 1); | |
2530 | } | |
2531 | } | |
2532 | //set_entity_coords(GetPlayerHandle(PlayerId()), -1330.267822, -390.644684, 36.602779, 1, 0, 0, 1); | |
2533 | // Haven't coded this yet. | |
2534 | ShowMessageOnScreen("~b~ Teleported to ammunation store!"); | |
2535 | return 0; | |
2536 | } | |
2537 | int TeleCoords(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2538 | float Pos[3]; | |
2539 | GetEntityCoords(GetPlayerHandle(PlayerId()), Pos); | |
2540 | printf("\tPosition = {%f, %f, %f};\n", Pos[0], Pos[1], Pos[2]); | |
2541 | ShowMessageOnScreen("~b~ Position = %f %f %f", Pos[0], Pos[1], Pos[2]); | |
2542 | return 0; | |
2543 | } | |
2544 | ||
2545 | int ObjectCoords(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2546 | float Pos[3]; | |
2547 | GetEntityCoords(objecthandle, Pos); | |
2548 | printf("\tPosition = {%f, %f, %f};\n", Pos[0], Pos[1], Pos[2]); | |
2549 | ShowMessageOnScreen("~b~ Position = %f %f %f", Pos[0], Pos[1], Pos[2]); | |
2550 | return 0; | |
2551 | } | |
2552 | ||
2553 | int ObjectHash(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2554 | #ifdef PRIVATE | |
2555 | int hash = get_entity_model(objecthandle); | |
2556 | printf("Object Hash = %i \n", hash); | |
2557 | ShowMessageOnScreen("~b~ Object Hash = %i", hash); | |
2558 | #else | |
2559 | ShowMessageOnScreen("~r~ Sorry this is only available in the private version!"); | |
2560 | #endif | |
2561 | return 0; | |
2562 | } | |
2563 | bool objectcopy = false; | |
2564 | int ObjectCopy(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2565 | int hash = get_entity_model(objecthandle); | |
2566 | model = hash; | |
2567 | objectspawn = true; | |
2568 | objectcopy = true; | |
2569 | printf("Copied Object %i \n", hash); | |
2570 | ShowMessageOnScreen("~b~ Copied Object Object = %i", hash); | |
2571 | return 0; | |
2572 | } | |
2573 | ||
2574 | bool deleted_obj = false; | |
2575 | int ObjectDelete(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2576 | int hash = get_entity_model(objecthandle); | |
2577 | deleted_obj = true; | |
2578 | printf("Deleted Object %i \n", hash); | |
2579 | ShowMessageOnScreen("~b~ Deleted Object = %i", hash); | |
2580 | return 0; | |
2581 | } | |
2582 | ||
2583 | // Position = {8.069606, 537.153015, 176.028015}; | |
2584 | ||
2585 | int TeleFranklinsCrib(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2586 | //set_entity_coords(GetPlayerHandle(PlayerId()), -1330.267822, -390.644684, 36.602779, 1, 0, 0, 1); | |
2587 | // Haven't coded this yet. | |
2588 | float x,y,z; | |
2589 | x = 8.069606, y = 537.153015, z = 176.028015; | |
2590 | int myhandle = GetPlayerHandle(PlayerId()); | |
2591 | int myvehicle; | |
2592 | if (is_ped_in_any_vehicle(myhandle)) { | |
2593 | myvehicle = GetCarCharIsIn(myhandle, 0); | |
2594 | if (DoesEntityExist(myvehicle) && IsEntityVehicle(myvehicle)) { | |
2595 | set_entity_coords(myvehicle, x, y, z, 0, 0, 0, 1); | |
2596 | } //Position = {-385.378601, 204.318146, 85.885498}; | |
2597 | //Position = {-385.930908, 203.293900, 86.273972}; | |
2598 | ||
2599 | else { | |
2600 | set_entity_coords(myhandle, x, y, z, 0, 0, 0, 1); | |
2601 | } | |
2602 | } | |
2603 | ShowMessageOnScreen("~b~ Teleported to Franklins crib!"); | |
2604 | return 0; | |
2605 | } | |
2606 | ||
2607 | int TeleMicsCrib(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2608 | //set_entity_coords(GetPlayerHandle(PlayerId()), -1330.267822, -390.644684, 36.602779, 1, 0, 0, 1); | |
2609 | // Haven't coded this yet. | |
2610 | float x,y,z; | |
2611 | x = -813.176453, y = 179.232452, z = 72.159149; | |
2612 | int myhandle = GetPlayerHandle(PlayerId()); | |
2613 | int myvehicle; | |
2614 | if (is_ped_in_any_vehicle(myhandle)) { | |
2615 | myvehicle = GetCarCharIsIn(myhandle, 0); | |
2616 | if (DoesEntityExist(myvehicle) && IsEntityVehicle(myvehicle)) { | |
2617 | set_entity_coords(myvehicle, x, y, z, 0, 0, 0, 1); | |
2618 | } | |
2619 | else { | |
2620 | set_entity_coords(myhandle, x, y, z, 0, 0, 0, 1); | |
2621 | } | |
2622 | } | |
2623 | ShowMessageOnScreen("~b~ Teleported to Micheals crib!"); | |
2624 | return 0; | |
2625 | } | |
2626 | ||
2627 | int TeleLsCustoms(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2628 | //set_entity_coords(GetPlayerHandle(PlayerId()), -1330.267822, -390.644684, 36.602779, 1, 0, 0, 1); | |
2629 | // Haven't coded this yet. | |
2630 | float x,y,z; | |
2631 | x = -384.217834, y = -118.733658, z = 38.689579; | |
2632 | int myhandle = GetPlayerHandle(PlayerId()); | |
2633 | int myvehicle; | |
2634 | if (is_ped_in_any_vehicle(myhandle)) { | |
2635 | myvehicle = GetCarCharIsIn(myhandle, 0); | |
2636 | if (DoesEntityExist(myvehicle) && IsEntityVehicle(myvehicle)) { | |
2637 | set_entity_coords(myvehicle, x, y, z, 0, 0, 0, 1); | |
2638 | } | |
2639 | else { | |
2640 | set_entity_coords(myhandle, x, y, z, 0, 0, 0, 1); | |
2641 | } | |
2642 | } | |
2643 | ShowMessageOnScreen("~b~ Teleported to LS Customs!"); | |
2644 | return 0; | |
2645 | } | |
2646 | ||
2647 | int TeleArena(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2648 | //set_entity_coords(GetPlayerHandle(PlayerId()), -1330.267822, -390.644684, 36.602779, 1, 0, 0, 1); | |
2649 | // Haven't coded this yet. | |
2650 | float x,y,z; | |
2651 | x = -1937.548950, y = -995.428772, z = 17.635166; | |
2652 | int myhandle = GetPlayerHandle(PlayerId()); | |
2653 | int myvehicle; | |
2654 | if (is_ped_in_any_vehicle(myhandle)) { | |
2655 | myvehicle = GetCarCharIsIn(myhandle, 0); | |
2656 | if (DoesEntityExist(myvehicle) && IsEntityVehicle(myvehicle)) { | |
2657 | set_entity_coords(myvehicle, x, y, z, 0, 0, 0, 1); | |
2658 | } | |
2659 | else { | |
2660 | set_entity_coords(myhandle, x, y, z, 0, 0, 0, 1); | |
2661 | } | |
2662 | } | |
2663 | ShowMessageOnScreen("~b~ Teleported to Custom Arena!"); | |
2664 | return 0; | |
2665 | } | |
2666 | ||
2667 | int TeleGarage(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2668 | //set_entity_coords(GetPlayerHandle(PlayerId()), -1330.267822, -390.644684, 36.602779, 1, 0, 0, 1); | |
2669 | // Haven't coded this yet. | |
2670 | float x,y,z; | |
2671 | x = 228.7188, y = -989.9847, z = -99.0; | |
2672 | int myhandle = GetPlayerHandle(PlayerId()); | |
2673 | int myvehicle; | |
2674 | if (is_ped_in_any_vehicle(myhandle)) { | |
2675 | myvehicle = GetCarCharIsIn(myhandle, 0); | |
2676 | if (DoesEntityExist(myvehicle) && IsEntityVehicle(myvehicle)) { | |
2677 | set_entity_coords(myvehicle, x, y, z, 0, 0, 0, 1); | |
2678 | } | |
2679 | else { | |
2680 | set_entity_coords(myhandle, x, y, z, 0, 0, 0, 1); | |
2681 | } | |
2682 | } | |
2683 | ShowMessageOnScreen("~b~ Teleported to 10 Car Garage!"); | |
2684 | return 0; | |
2685 | } | |
2686 | ||
2687 | ||
2688 | bool TeleportToWaypoint = false; | |
2689 | float WaypointPos[3]; | |
2690 | int WaypointEntity; | |
2691 | int TeleWay(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2692 | //set_entity_coords(GetPlayerHandle(PlayerId()), -1330.267822, -390.644684, 36.602779, 1, 0, 0, 1); | |
2693 | // Haven't coded this yet. | |
2694 | int waypoint = get_first_blip_info_id(8); | |
2695 | if(does_blip_exist(waypoint)) { | |
2696 | get_blip_coords(waypoint, WaypointPos); | |
2697 | int myhandle = PlayerPedId(), | |
2698 | myvehicle; | |
2699 | if (is_ped_in_any_vehicle(myhandle)) { | |
2700 | myvehicle = GetCarCharIsIn(myhandle, 0); | |
2701 | if (DoesEntityExist(myvehicle) && IsEntityVehicle(myvehicle)) { | |
2702 | WaypointEntity = myvehicle; | |
2703 | set_entity_coords(myvehicle, WaypointPos[0], WaypointPos[1], WaypointPos[2], 0, 0, 0, 1); | |
2704 | load_all_objects_now(); | |
2705 | } | |
2706 | else { | |
2707 | WaypointEntity = myhandle; | |
2708 | set_entity_coords(myhandle, WaypointPos[0], WaypointPos[1], WaypointPos[2], 0, 0, 0, 1); | |
2709 | load_all_objects_now(); | |
2710 | } | |
2711 | TeleportToWaypoint = true; | |
2712 | } | |
2713 | } | |
2714 | else { | |
2715 | ShowMessageOnScreen("~b~ Please set a waypoint first!"); | |
2716 | } | |
2717 | return 0; | |
2718 | } | |
2719 | ||
2720 | void Waypointloop() { | |
2721 | if(get_ground_z_for_3d_coord(WaypointPos[0], WaypointPos[1], 600.0f, &WaypointPos[2])) { | |
2722 | set_entity_coords(WaypointEntity, WaypointPos[0], WaypointPos[1], WaypointPos[2], 0, 0, 0, 1); | |
2723 | TeleportToWaypoint = false; | |
2724 | ShowMessageOnScreen("~b~ Teleported to Waypoint!"); | |
2725 | } | |
2726 | } | |
2727 | ||
2728 | ||
2729 | int StripperModel(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2730 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
2731 | scriptsetModel = 0x9CF26183;//0x9CF26183; | |
2732 | ||
2733 | return 0; | |
2734 | } | |
2735 | ||
2736 | int MonkeyModel(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2737 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
2738 | scriptsetModel = -1026527405;//0x9CF26183; | |
2739 | ||
2740 | return 0; | |
2741 | } | |
2742 | ||
2743 | int MonkeySpaceModel(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2744 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
2745 | scriptsetModel = -598109171;//0x9CF26183; | |
2746 | ||
2747 | return 0; | |
2748 | } | |
2749 | ||
2750 | ||
2751 | bool alienspawn = false; | |
2752 | int AlienModel(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2753 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
2754 | scriptsetModel = 0x64611296;//0x9CF26183; | |
2755 | alienspawn = true; | |
2756 | return 0; | |
2757 | } | |
2758 | bool invisiblemodel = false; | |
2759 | int InvisibleModel(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2760 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
2761 | scriptsetModel = 0x2970A494;//0x9CF26183; | |
2762 | invisiblemodel = true; | |
2763 | return 0; | |
2764 | } | |
2765 | ||
2766 | int OnlineStripper(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2767 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
2768 | scriptsetModel = 0x2970A494;//0x9CF26183; | |
2769 | return 0; | |
2770 | } | |
2771 | ||
2772 | float x10, y10, z10, x20, y20, z20; | |
2773 | ||
2774 | bool ufomode = false; | |
2775 | int FlyingAnus(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2776 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
2777 | if (is_ped_in_any_vehicle(PlayerPedId())){ | |
2778 | objectspawn = true; | |
2779 | model = 0xB467C540; // spunk ramp 0xBF8918DE // UFO 0xB467C540 | |
2780 | x10 = 0, y10 = 0, z10 = + 3.9, x20 = 0, y20 = 0, z20 = 0; | |
2781 | ShowMessageOnScreen("~b~ UFO spawned works best in the cargo plain!"); | |
2782 | ufomode = true; | |
2783 | } | |
2784 | else{ | |
2785 | ShowMessageOnScreen("~b~ You aren't in a vehicle"); | |
2786 | } | |
2787 | return 0; | |
2788 | } | |
2789 | bool dodgem2 = false; | |
2790 | bool dodgem3 = false; | |
2791 | bool dodgemvehicle = false; | |
2792 | int DodgemCar(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2793 | ShowMessageOnScreen("~b~ Dodgem car spawned works best in the comet!"); | |
2794 | dodgemvehicle = true; | |
2795 | /*if (!dodgem2) { | |
2796 | objectspawn = true; | |
2797 | model = -77393630; // spunk ramp 0xBF8918DE // UFO 0xB467C540 | |
2798 | x10 = - 0.3, y10 = 0.2, z10 = 0, x20 = 0, y20 = 0, z20 = 180; | |
2799 | ufomode = true; | |
2800 | objectspawn = true; | |
2801 | model = 232216084; // spunk ramp 0xBF8918DE // UFO 0xB467C540 // z = -0.4 // y = -1.2 x = -0.2 z = 180 | |
2802 | x10 = - 0.2, y10 = - 1.2, z10 = -0.4, x20 = 0, y20 = 0, z20 = 180; | |
2803 | //ShowMessageOnScreen("~b~ Dodgem car 2 spawned works best in the comet!"); | |
2804 | ufomode = true; | |
2805 | objectspawn = true; | |
2806 | model = 1382419899; // spunk ramp 0xBF8918DE // UFO 0xB467C540 // x = -0.3, y = -0.2, z = -0.3 | |
2807 | x10 = - 0.4, y10 = - 0.2, z10 = -0.3, x20 = 0, y20 = 0, z20 = 180; | |
2808 | //ShowMessageOnScreen("~b~ Dodgem car 2 spawned works best in the comet!"); | |
2809 | ufomode = true; | |
2810 | dodgem2 = true; | |
2811 | } | |
2812 | if (dodgem2 && !ufomode){ | |
2813 | objectspawn = true; | |
2814 | model = 232216084; // spunk ramp 0xBF8918DE // UFO 0xB467C540 // z = -0.4 // y = -1.2 x = -0.2 z = 180 | |
2815 | x10 = - 0.2, y10 = - 1.2, z10 = -0.4, x20 = 0, y20 = 0, z20 = 180; | |
2816 | //ShowMessageOnScreen("~b~ Dodgem car 2 spawned works best in the comet!"); | |
2817 | ufomode = true; | |
2818 | dodgem3 = true; | |
2819 | } | |
2820 | if (dodgem3 && !ufomode){ | |
2821 | objectspawn = true; | |
2822 | model = 1382419899; // spunk ramp 0xBF8918DE // UFO 0xB467C540 // x = -0.3, y = -0.2, z = -0.3 | |
2823 | x10 = - 0.4, y10 = - 0.2, z10 = -0.3, x20 = 0, y20 = 0, z20 = 180; | |
2824 | //ShowMessageOnScreen("~b~ Dodgem car 2 spawned works best in the comet!"); | |
2825 | ufomode = true; | |
2826 | dodgem2 = false; | |
2827 | } | |
2828 | } | |
2829 | else{ | |
2830 | ShowMessageOnScreen("~b~ You aren't in a vehicle"); | |
2831 | }*/ | |
2832 | return 0; | |
2833 | } | |
2834 | ||
2835 | ||
2836 | ||
2837 | int SpawnObject(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2838 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
2839 | objectspawn = true; | |
2840 | normalspawn = true; | |
2841 | //model = 0xBF8918DE; // spunk ramp 0xBF8918DE // UFO 0xB467C540 | |
2842 | model = -1536924937; | |
2843 | return 0; | |
2844 | } | |
2845 | ||
2846 | int SpawnWeed(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2847 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
2848 | objectspawn = true; | |
2849 | normalspawn = true; | |
2850 | model = 452618762; // spunk ramp 0xBF8918DE // UFO 0xB467C540 | |
2851 | ShowMessageOnScreen("~b~ Weed for everyone!"); | |
2852 | return 0; | |
2853 | } | |
2854 | ||
2855 | int SpawnRamp(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2856 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
2857 | objectspawn = true; | |
2858 | normalspawn = true; | |
2859 | model = -1818980770; // spunk ramp 0xBF8918DE // UFO 0xB467C540 | |
2860 | ShowMessageOnScreen("~b~ Spawned Ramp!"); | |
2861 | return 0; | |
2862 | } | |
2863 | ||
2864 | int SpawnBody(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2865 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
2866 | objectspawn = true; | |
2867 | normalspawn = true; | |
2868 | model = -1240857364; // spunk ramp 0xBF8918DE // UFO 0xB467C540 | |
2869 | ShowMessageOnScreen("~b~ Dead bodies!"); | |
2870 | return 0; | |
2871 | }// | |
2872 | bool derby = false; | |
2873 | int DerbyArena(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2874 | //0x64611296 Alien bool Playboy (naked) | |
2875 | objectspawn = true; | |
2876 | //normalspawn = true; | |
2877 | derby = true; | |
2878 | model = -1003748966; // spunk ramp 0xBF8918DE // UFO 0xB467C540 | |
2879 | ||
2880 | //ShowMessageOnScreen("~b~ Derby Arena!"); | |
2881 | return 0; | |
2882 | }// | |
2883 | int cam; | |
2884 | float rot[3]; | |
2885 | bool cam_mode = false; | |
2886 | bool cam_check = false; | |
2887 | bool cam_load = false; | |
2888 | int FlyMod(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2889 | //ShowMessageOnScreen("~r~ In Progress..."); | |
2890 | if (!cam_mode) { | |
2891 | cam_load = true; | |
2892 | cam_mode = true; | |
2893 | ShowMessageOnScreen("~b~ First Person On"); | |
2894 | } | |
2895 | else if (cam_mode) { | |
2896 | cam_mode = false; | |
2897 | set_cam_active(cam, false); | |
2898 | ShowMessageOnScreen("~r~ First Person Can't be turned off yet sorry!"); | |
2899 | } | |
2900 | return 0; | |
2901 | } | |
2902 | bool fly_car = false; | |
2903 | int FlyCarMod(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2904 | if (is_ped_on_foot(PlayerPedId())) { | |
2905 | ShowMessageOnScreen("~r~ This option is only available while in a vehicle"); | |
2906 | return 0; | |
2907 | } | |
2908 | if (!fly_car) { | |
2909 | //GiveWeaponDelayed(PlayerPedId(), 0xFBAB5776, 1, 1); | |
2910 | apply_force_to_entity(GetCarCharIsIn(PlayerPedId(), 0), true, 0, 0, 40, 0, 0, 0, true, true, true, true, false, true); | |
2911 | //SetPlayerInvincible(PlayerId(), true); | |
2912 | fly_car = true; | |
2913 | } | |
2914 | else if (fly_car) { | |
2915 | fly_car = false; | |
2916 | } | |
2917 | return 0; | |
2918 | } | |
2919 | ||
2920 | void fly_car_loop() | |
2921 | { | |
2922 | if (!is_ped_on_foot(PlayerPedId())) | |
2923 | { | |
2924 | apply_force_to_entity(GetCarCharIsIn(PlayerPedId(), 0), true, 0, 100, 100, 0, 0, 0, false, true, false, false, false, true); | |
2925 | } | |
2926 | } | |
2927 | ||
2928 | bool super_check = false; | |
2929 | int SuperMod(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2930 | if (!super_check) { | |
2931 | GiveWeaponDelayed(PlayerPedId(), 0xFBAB5776, 1, 1); | |
2932 | apply_force_to_entity(PlayerPedId(), true, 0, 0, 40, 0, 0, 0, true, true, true, true, false, true); | |
2933 | SetPlayerInvincible(PlayerId(), true); | |
2934 | super_check = true; | |
2935 | } | |
2936 | else if (super_check) { | |
2937 | super_check = false; | |
2938 | } | |
2939 | return 0; | |
2940 | } | |
2941 | ||
2942 | void super_loop() | |
2943 | { | |
2944 | if (unk_0xCD71F11B(PlayerPedId())) | |
2945 | { | |
2946 | disable_control_action( 2, 124 ); | |
2947 | apply_force_to_entity(PlayerPedId(), true, 0, 100, 100, 0, 0, 0, false, true, false, false, false, true); | |
2948 | } | |
2949 | } | |
2950 | #ifdef PRIVATE | |
2951 | int NormalSkin(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2952 | gauge = 2; | |
2953 | return 0; | |
2954 | } | |
2955 | ||
2956 | int BMWSkin(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2957 | gauge = 1; | |
2958 | return 0; | |
2959 | } | |
2960 | ||
2961 | int TestSkin(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2962 | gauge = 3; | |
2963 | return 0; | |
2964 | } | |
2965 | ||
2966 | int SimpleSkin(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2967 | gauge = 4; | |
2968 | return 0; | |
2969 | } | |
2970 | ||
2971 | #ifdef PRIVATE | |
2972 | int Rank(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
2973 | set_stat_int(get_hash_key("MP0_CHAR_XP_FM"), 2165850); | |
2974 | set_stat_int(get_hash_key("MP0_SCRIPT_INCREASE_STAM"), 100); // MP0_ | |
2975 | set_stat_int(get_hash_key("MP0_SCRIPT_INCREASE_STRN"), 100); | |
2976 | set_stat_int(get_hash_key("MP0_SCRIPT_INCREASE_LUNG"), 100); | |
2977 | set_stat_int(get_hash_key("MP0_SCRIPT_INCREASE_DRIV"), 100); | |
2978 | set_stat_int(get_hash_key("MP0_SCRIPT_INCREASE_FLY"), 100); | |
2979 | set_stat_int(get_hash_key("MP0_SCRIPT_INCREASE_SHO"), 100); | |
2980 | set_stat_int(get_hash_key("MP0_SCRIPT_INCREASE_STL"), 100); | |
2981 | // skills // | |
2982 | set_stat_int(get_hash_key("MP0_RACES_WON"), 100); | |
2983 | ||
2984 | set_stat_int(get_hash_key("MP0_PISTOL_KILLS"), 600); | |
2985 | set_stat_int(get_hash_key("MP0_CMBTPISTOL_KILLS"), 600); | |
2986 | set_stat_int(get_hash_key("MP0_APPISTOL_KILLS"), 600); | |
2987 | set_stat_int(get_hash_key("MP0_MICROSMG_KILLS"), 600); | |
2988 | set_stat_int(get_hash_key("MP0_SMG_KILLS"), 600); | |
2989 | set_stat_int(get_hash_key("MP0_ASLTSMG_KILLS"), 600); | |
2990 | set_stat_int(get_hash_key("MP0_ASLTRIFLE_KILLS"), 600); | |
2991 | set_stat_int(get_hash_key("MP0_CRBNRIFLE_KILLS"), 600); | |
2992 | set_stat_int(get_hash_key("MP0_ADVRIFLE_KILLS"), 600); | |
2993 | set_stat_int(get_hash_key("MP0_HVYSNIPER_KILLS"), 600); | |
2994 | set_stat_int(get_hash_key("MP0_SNIPERRFL_KILLS"), 600); | |
2995 | set_stat_int(get_hash_key("MP0_ASLTSHTGN_KILLS"), 600); | |
2996 | set_stat_int(get_hash_key("MP0_PUMP_KILLS"), 600); | |
2997 | set_stat_int(get_hash_key("MP0_GRNLAUNCH_KILLS"), 600); | |
2998 | set_stat_int(get_hash_key("MP0_RPG_KILLS"), 600); | |
2999 | set_stat_int(get_hash_key("MP0_MINIGUNS_KILLS"), 600); | |
3000 | set_stat_int(get_hash_key("MP0_ASLTSMG_KILLS"), 600); | |
3001 | set_stat_int(get_hash_key("MP0_ASLTRIFLE_KILLS"), 600); | |
3002 | set_stat_int(get_hash_key("MP0_CRBNRIFLE_KILLS"), 600); | |
3003 | set_stat_int(get_hash_key("MP0_ADVRIFLE_KILLS"), 600); | |
3004 | set_stat_int(get_hash_key("MP0_HVYSNIPER_KILLS"), 600); | |
3005 | set_stat_int(get_hash_key("MP0_SNIPERRFL_KILLS"), 600); | |
3006 | set_stat_int(get_hash_key("MP0_MG_KILLS"), 600); | |
3007 | set_stat_int(get_hash_key("MP0_CMBTMG_KILLS"), 600); | |
3008 | set_stat_int(get_hash_key("MP0_PISTOL_ENEMY_KILLS"), 600); | |
3009 | set_stat_int(get_hash_key("MP0_CMBTPISTOL_ENEMY_KILLS"), 600); | |
3010 | set_stat_int(get_hash_key("MP0_APPISTOL_ENEMY_KILLS"), 600); | |
3011 | set_stat_int(get_hash_key("MP0_MICROSMG_ENEMY_KILLS"), 600); | |
3012 | set_stat_int(get_hash_key("MP0_SMG_ENEMY_KILLS"), 600); | |
3013 | set_stat_int(get_hash_key("MP0_ASLTSMG_ENEMY_KILLS"), 600); | |
3014 | set_stat_int(get_hash_key("MP0_ASLTRIFLE_ENEMY_KILLS"), 600); | |
3015 | set_stat_int(get_hash_key("MP0_CRBNRIFLE_ENEMY_KILLS"), 600); | |
3016 | set_stat_int(get_hash_key("MP0_ADVRIFLE_ENEMY_KILLS"), 600); | |
3017 | set_stat_int(get_hash_key("MP0_HVYSNIPER_ENEMY_KILLS"), 600); | |
3018 | set_stat_int(get_hash_key("MP0_SNIPERRFL_ENEMY_KILLS"), 600); | |
3019 | set_stat_int(get_hash_key("MP0_ASLTSHTGN_ENEMY_KILLS"), 600); | |
3020 | set_stat_int(get_hash_key("MP0_PUMP_ENEMY_KILLS"), 600); | |
3021 | set_stat_int(get_hash_key("MP0_GRNLAUNCH_ENEMY_KILLS"), 600); | |
3022 | set_stat_int(get_hash_key("MP0_RPG_ENEMY_KILLS"), 600); | |
3023 | set_stat_int(get_hash_key("MP0_MINIGUNS_ENEMY_KILLS"), 600); | |
3024 | set_stat_int(get_hash_key("MP0_ASLTSMG_ENEMY_KILLS"), 600); | |
3025 | set_stat_int(get_hash_key("MP0_ASLTRIFLE_ENEMY_KILLS"), 600); | |
3026 | set_stat_int(get_hash_key("MP0_CRBNRIFLE_ENEMY_KILLS"), 600); | |
3027 | set_stat_int(get_hash_key("MP0_ADVRIFLE_ENEMY_KILLS"), 600); | |
3028 | set_stat_int(get_hash_key("MP0_HVYSNIPER_ENEMY_KILLS"), 600); | |
3029 | set_stat_int(get_hash_key("MP0_SNIPERRFL_ENEMY_KILLS"), 600); | |
3030 | set_stat_int(get_hash_key("MP0_MG_ENEMY_KILLS"), 600); | |
3031 | set_stat_int(get_hash_key("MP0_CMBTMG_ENEMY_KILLS"), 600); | |
3032 | ||
3033 | set_stat_bool(get_hash_key("MP0_AWD_FMRACEWORLDRECHOLDER"), 1); | |
3034 | set_stat_int(get_hash_key("MP0_AWD_ENEMYDRIVEBYKILLS"), 600); | |
3035 | ||
3036 | set_stat_int(get_hash_key("MP0_USJS_COMPLETED"), 50); | |
3037 | set_stat_int(get_hash_key("MP0_USJS_FOUND"), 50); | |
3038 | ||
3039 | set_stat_bool(get_hash_key("MP0_AWD_FMWINALLRACEMODES"), 1); | |
3040 | set_stat_bool(get_hash_key("MP0_AWD_FMWINEVERYGAMEMODE"), 1); | |
3041 | set_stat_int(get_hash_key("MP0_DB_PLAYER_KILLS"), 1000); // drive by kills | |
3042 | set_stat_int(get_hash_key("MP0_KILLS_PLAYERS"), 1000); | |
3043 | set_stat_int(get_hash_key("MP0_AWD_FMHORDWAVESSURVIVE"), 21); | |
3044 | set_stat_int(get_hash_key("MP0_AWD_CAR_BOMBS_ENEMY_KILLS"), 25); | |
3045 | set_stat_int(get_hash_key("MP0_AWD_FM_TDM_MVP"), 60); | |
3046 | set_stat_int(get_hash_key("MP0_AWD_HOLD_UP_SHOPS"), 20); | |
3047 | set_stat_int(get_hash_key("MP0_AWD_RACES_WON"), 101); | |
3048 | set_stat_int(get_hash_key("MP0_AWD_NO_ARMWRESTLING_WINS"), 21); | |
3049 | set_stat_bool(get_hash_key("MP0_AWD_FMATTGANGHQ"), 1); | |
3050 | set_stat_int(get_hash_key("MP0_AWD_FMBBETWIN"), 50000); | |
3051 | set_stat_int(get_hash_key("MP0_AWD_FM_DM_WINS"), 51); | |
3052 | ||
3053 | set_stat_bool(get_hash_key("MP0_AWD_FMFULLYMODDEDCAR"), 1); | |
3054 | set_stat_int(get_hash_key("MP0_AWD_FM_DM_TOTALKILLS"), 500); | |
3055 | set_stat_int(get_hash_key("MP0_MPPLY_DM_TOTAL_DEATHS"), 412); | |
3056 | set_stat_int(get_hash_key("MP0_MPPLY_TIMES_FINISH_DM_TOP_3"), 36); | |
3057 | set_stat_int(get_hash_key("MP0_PLAYER_HEADSHOTS"), 623); | |
3058 | set_stat_int(get_hash_key("MP0_AWD_FM_DM_WINS"), 63); | |
3059 | set_stat_int(get_hash_key("MP0_AWD_FM_TDM_WINS"), 13); | |
3060 | set_stat_int(get_hash_key("MP0_AWD_FM_GTA_RACES_WON"), 12); | |
3061 | set_stat_int(get_hash_key("MP0_AWD_FM_GOLF_WON"), 2); | |
3062 | set_stat_int(get_hash_key("MP0_AWD_FM_SHOOTRANG_TG_WON"), 2); | |
3063 | set_stat_int(get_hash_key("MP0_AWD_FM_SHOOTRANG_RT_WON"), 2); | |
3064 | set_stat_int(get_hash_key("MP0_AWD_FM_SHOOTRANG_CT_WON"), 2); | |
3065 | set_stat_int(get_hash_key("MP0_AWD_FM_SHOOTRANG_GRAN_WON"), 2); | |
3066 | set_stat_int(get_hash_key("MP0_AWD_FM_TENNIS_WON"), 2); | |
3067 | set_stat_int(get_hash_key("MP0_MPPLY_TENNIS_MATCHES_WON"), 2); | |
3068 | set_stat_int(get_hash_key("MP0_MPPLY_TOTAL_TDEATHMATCH_WON"), 63); | |
3069 | set_stat_int(get_hash_key("MP0_MPPLY_TOTAL_RACES_WON"), 101); | |
3070 | set_stat_int(get_hash_key("MP0_MPPLY_TOTAL_DEATHMATCH_LOST"), 23); | |
3071 | set_stat_int(get_hash_key("MP0_MPPLY_TOTAL_RACES_LOST"), 36); | |
3072 | set_stat_int(get_hash_key("MP0_AWD_25_KILLS_STICKYBOMBS"), 50); | |
3073 | set_stat_int(get_hash_key("MP0_AWD_50_KILLS_GRENADES"), 50); | |
3074 | set_stat_int(get_hash_key("MP0_GRENADE_ENEMY_KILLS"), 50); | |
3075 | set_stat_int(get_hash_key("MP0_AWD_20_KILLS_MELEE"), 50); | |
3076 | //set_stat_int(get_hash_key(ConvertString(("NO_MASKS_UNLOCK"), 25); | |
3077 | //set_stat_int(get_hash_key(ConvertString(("NO_TATTOOS_UNLOCK"), 61); | |
3078 | ||
3079 | set_stat_bool(get_hash_key("MP0_AWD_FMMOSTKILLSSURVIVE"), 1); | |
3080 | ||
3081 | // set_stat_int(get_hash_key(ConvertString(("AWD_ENEMYDRIVEBYKILLS"), 10); | |
3082 | ||
3083 | set_stat_int(get_hash_key("MP0_AWD_FMRALLYWONDRIVE"), 2); | |
3084 | set_stat_int(get_hash_key("MP0_AWD_FMWINSEARACE"), 2); | |
3085 | set_stat_int(get_hash_key("MP0_AWD_FMWINAIRRACE"), 2); | |
3086 | set_stat_int(get_hash_key("MP0_MPPLY_TIMES_RACE_BEST_LAP"), 101); | |
3087 | set_stat_int(get_hash_key("MP0_NUMBER_TURBO_STARTS_IN_RACE"), 100); | |
3088 | set_stat_int(get_hash_key("MP0_AWD_FM_RACES_FASTEST_LAP"), 101); | |
3089 | set_stat_int(get_hash_key("MP0_NUMBER_SLIPSTREAMS_IN_RACE"), 105); | |
3090 | // set_stat_int(get_hash_key("MP0_CASH_GIFT_CREDITED"), 999); | |
3091 | set_stat_int(get_hash_key("MP0_MPPLY_RACE_CHEAT_START"), 130); | |
3092 | set_stat_int(get_hash_key("MP0_MPPLY_RACE_CHEAT_END"), 119); | |
3093 | set_stat_int(get_hash_key("MP0_MPPLY_RACE_CHEAT_QUIT"), 11); | |
3094 | set_stat_int(get_hash_key("MP0_MPPLY_DM_CHEAT_START"), 140); | |
3095 | set_stat_int(get_hash_key("MP0_MPPLY_DM_CHEAT_END"), 115); | |
3096 | set_stat_int(get_hash_key("MP0_MPPLY_DM_CHEAT_QUIT"), 25); | |
3097 | set_stat_int(get_hash_key("MP0_MPPLY_MC_CHEAT_START"), 113); | |
3098 | set_stat_int(get_hash_key("MP0_MPPLY_MC_CHEAT_END"), 97); | |
3099 | set_stat_int(get_hash_key("MP0_MPPLY_MC_CHEAT_QUIT"), 16); | |
3100 | set_stat_int(get_hash_key("MP0_MPPLY_OVERALL_CHEAT"), 0); | |
3101 | ||
3102 | set_stat_int(get_hash_key("MP0_LAP_DANCED_BOUGHT"), 50); | |
3103 | ||
3104 | set_stat_int(get_hash_key("MP0_AWD_FMKILLBOUNTY"), 50); | |
3105 | set_stat_bool(get_hash_key("MP0_AWD_FMKILL3ANDWINGTARACE"), 1); | |
3106 | set_stat_int(get_hash_key("MP0_AWD_FMREVENGEKILLSDM"), 60); | |
3107 | set_stat_int(get_hash_key("MP0_AWD_SECURITY_CARS_ROBBED"), 40); | |
3108 | set_stat_bool(get_hash_key("MP0_AWD_FMPICKUPDLCCRATE1ST"), 1); | |
3109 | return 0; | |
3110 | } | |
3111 | ||
3112 | int Rank1(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
3113 | set_stat_int(get_hash_key("MP1_CHAR_XP_FM"), 2165850); | |
3114 | set_stat_int(get_hash_key("MP1_SCRIPT_INCREASE_STAM"), 100); // MP1_ | |
3115 | set_stat_int(get_hash_key("MP1_SCRIPT_INCREASE_STRN"), 100); | |
3116 | set_stat_int(get_hash_key("MP1_SCRIPT_INCREASE_LUNG"), 100); | |
3117 | set_stat_int(get_hash_key("MP1_SCRIPT_INCREASE_DRIV"), 100); | |
3118 | set_stat_int(get_hash_key("MP1_SCRIPT_INCREASE_FLY"), 100); | |
3119 | set_stat_int(get_hash_key("MP1_SCRIPT_INCREASE_SHO"), 100); | |
3120 | set_stat_int(get_hash_key("MP1_SCRIPT_INCREASE_STL"), 100); | |
3121 | // skills // | |
3122 | set_stat_int(get_hash_key("MP1_RACES_WON"), 100); | |
3123 | ||
3124 | set_stat_int(get_hash_key("MP1_PISTOL_KILLS"), 600); | |
3125 | set_stat_int(get_hash_key("MP1_CMBTPISTOL_KILLS"), 600); | |
3126 | set_stat_int(get_hash_key("MP1_APPISTOL_KILLS"), 600); | |
3127 | set_stat_int(get_hash_key("MP1_MICROSMG_KILLS"), 600); | |
3128 | set_stat_int(get_hash_key("MP1_SMG_KILLS"), 600); | |
3129 | set_stat_int(get_hash_key("MP1_ASLTSMG_KILLS"), 600); | |
3130 | set_stat_int(get_hash_key("MP1_ASLTRIFLE_KILLS"), 600); | |
3131 | set_stat_int(get_hash_key("MP1_CRBNRIFLE_KILLS"), 600); | |
3132 | set_stat_int(get_hash_key("MP1_ADVRIFLE_KILLS"), 600); | |
3133 | set_stat_int(get_hash_key("MP1_HVYSNIPER_KILLS"), 600); | |
3134 | set_stat_int(get_hash_key("MP1_SNIPERRFL_KILLS"), 600); | |
3135 | set_stat_int(get_hash_key("MP1_ASLTSHTGN_KILLS"), 600); | |
3136 | set_stat_int(get_hash_key("MP1_PUMP_KILLS"), 600); | |
3137 | set_stat_int(get_hash_key("MP1_GRNLAUNCH_KILLS"), 600); | |
3138 | set_stat_int(get_hash_key("MP1_RPG_KILLS"), 600); | |
3139 | set_stat_int(get_hash_key("MP1_MINIGUNS_KILLS"), 600); | |
3140 | set_stat_int(get_hash_key("MP1_ASLTSMG_KILLS"), 600); | |
3141 | set_stat_int(get_hash_key("MP1_ASLTRIFLE_KILLS"), 600); | |
3142 | set_stat_int(get_hash_key("MP1_CRBNRIFLE_KILLS"), 600); | |
3143 | set_stat_int(get_hash_key("MP1_ADVRIFLE_KILLS"), 600); | |
3144 | set_stat_int(get_hash_key("MP1_HVYSNIPER_KILLS"), 600); | |
3145 | set_stat_int(get_hash_key("MP1_SNIPERRFL_KILLS"), 600); | |
3146 | set_stat_int(get_hash_key("MP1_MG_KILLS"), 600); | |
3147 | set_stat_int(get_hash_key("MP1_CMBTMG_KILLS"), 600); | |
3148 | set_stat_int(get_hash_key("MP1_PISTOL_ENEMY_KILLS"), 600); | |
3149 | set_stat_int(get_hash_key("MP1_CMBTPISTOL_ENEMY_KILLS"), 600); | |
3150 | set_stat_int(get_hash_key("MP1_APPISTOL_ENEMY_KILLS"), 600); | |
3151 | set_stat_int(get_hash_key("MP1_MICROSMG_ENEMY_KILLS"), 600); | |
3152 | set_stat_int(get_hash_key("MP1_SMG_ENEMY_KILLS"), 600); | |
3153 | set_stat_int(get_hash_key("MP1_ASLTSMG_ENEMY_KILLS"), 600); | |
3154 | set_stat_int(get_hash_key("MP1_ASLTRIFLE_ENEMY_KILLS"), 600); | |
3155 | set_stat_int(get_hash_key("MP1_CRBNRIFLE_ENEMY_KILLS"), 600); | |
3156 | set_stat_int(get_hash_key("MP1_ADVRIFLE_ENEMY_KILLS"), 600); | |
3157 | set_stat_int(get_hash_key("MP1_HVYSNIPER_ENEMY_KILLS"), 600); | |
3158 | set_stat_int(get_hash_key("MP1_SNIPERRFL_ENEMY_KILLS"), 600); | |
3159 | set_stat_int(get_hash_key("MP1_ASLTSHTGN_ENEMY_KILLS"), 600); | |
3160 | set_stat_int(get_hash_key("MP1_PUMP_ENEMY_KILLS"), 600); | |
3161 | set_stat_int(get_hash_key("MP1_GRNLAUNCH_ENEMY_KILLS"), 600); | |
3162 | set_stat_int(get_hash_key("MP1_RPG_ENEMY_KILLS"), 600); | |
3163 | set_stat_int(get_hash_key("MP1_MINIGUNS_ENEMY_KILLS"), 600); | |
3164 | set_stat_int(get_hash_key("MP1_ASLTSMG_ENEMY_KILLS"), 600); | |
3165 | set_stat_int(get_hash_key("MP1_ASLTRIFLE_ENEMY_KILLS"), 600); | |
3166 | set_stat_int(get_hash_key("MP1_CRBNRIFLE_ENEMY_KILLS"), 600); | |
3167 | set_stat_int(get_hash_key("MP1_ADVRIFLE_ENEMY_KILLS"), 600); | |
3168 | set_stat_int(get_hash_key("MP1_HVYSNIPER_ENEMY_KILLS"), 600); | |
3169 | set_stat_int(get_hash_key("MP1_SNIPERRFL_ENEMY_KILLS"), 600); | |
3170 | set_stat_int(get_hash_key("MP1_MG_ENEMY_KILLS"), 600); | |
3171 | set_stat_int(get_hash_key("MP1_CMBTMG_ENEMY_KILLS"), 600); | |
3172 | ||
3173 | set_stat_bool(get_hash_key("MP1_AWD_FMRACEWORLDRECHOLDER"), 1); | |
3174 | set_stat_int(get_hash_key("MP1_AWD_ENEMYDRIVEBYKILLS"), 600); | |
3175 | ||
3176 | set_stat_int(get_hash_key("MP1_USJS_COMPLETED"), 50); | |
3177 | set_stat_int(get_hash_key("MP1_USJS_FOUND"), 50); | |
3178 | ||
3179 | set_stat_bool(get_hash_key("MP1_AWD_FMWINALLRACEMODES"), 1); | |
3180 | set_stat_bool(get_hash_key("MP1_AWD_FMWINEVERYGAMEMODE"), 1); | |
3181 | set_stat_int(get_hash_key("MP1_DB_PLAYER_KILLS"), 1000); // drive by kills | |
3182 | set_stat_int(get_hash_key("MP1_KILLS_PLAYERS"), 1000); | |
3183 | set_stat_int(get_hash_key("MP1_AWD_FMHORDWAVESSURVIVE"), 21); | |
3184 | set_stat_int(get_hash_key("MP1_AWD_CAR_BOMBS_ENEMY_KILLS"), 25); | |
3185 | set_stat_int(get_hash_key("MP1_AWD_FM_TDM_MVP"), 60); | |
3186 | set_stat_int(get_hash_key("MP1_AWD_HOLD_UP_SHOPS"), 20); | |
3187 | set_stat_int(get_hash_key("MP1_AWD_RACES_WON"), 101); | |
3188 | set_stat_int(get_hash_key("MP1_AWD_NO_ARMWRESTLING_WINS"), 21); | |
3189 | set_stat_bool(get_hash_key("MP1_AWD_FMATTGANGHQ"), 1); | |
3190 | set_stat_int(get_hash_key("MP1_AWD_FMBBETWIN"), 50000); | |
3191 | set_stat_int(get_hash_key("MP1_AWD_FM_DM_WINS"), 51); | |
3192 | ||
3193 | set_stat_bool(get_hash_key("MP1_AWD_FMFULLYMODDEDCAR"), 1); | |
3194 | set_stat_int(get_hash_key("MP1_AWD_FM_DM_TOTALKILLS"), 500); | |
3195 | set_stat_int(get_hash_key("MP1_MPPLY_DM_TOTAL_DEATHS"), 412); | |
3196 | set_stat_int(get_hash_key("MP1_MPPLY_TIMES_FINISH_DM_TOP_3"), 36); | |
3197 | set_stat_int(get_hash_key("MP1_PLAYER_HEADSHOTS"), 623); | |
3198 | set_stat_int(get_hash_key("MP1_AWD_FM_DM_WINS"), 63); | |
3199 | set_stat_int(get_hash_key("MP1_AWD_FM_TDM_WINS"), 13); | |
3200 | set_stat_int(get_hash_key("MP1_AWD_FM_GTA_RACES_WON"), 12); | |
3201 | set_stat_int(get_hash_key("MP1_AWD_FM_GOLF_WON"), 2); | |
3202 | set_stat_int(get_hash_key("MP1_AWD_FM_SHOOTRANG_TG_WON"), 2); | |
3203 | set_stat_int(get_hash_key("MP1_AWD_FM_SHOOTRANG_RT_WON"), 2); | |
3204 | set_stat_int(get_hash_key("MP1_AWD_FM_SHOOTRANG_CT_WON"), 2); | |
3205 | set_stat_int(get_hash_key("MP1_AWD_FM_SHOOTRANG_GRAN_WON"), 2); | |
3206 | set_stat_int(get_hash_key("MP1_AWD_FM_TENNIS_WON"), 2); | |
3207 | set_stat_int(get_hash_key("MP1_MPPLY_TENNIS_MATCHES_WON"), 2); | |
3208 | set_stat_int(get_hash_key("MP1_MPPLY_TOTAL_TDEATHMATCH_WON"), 63); | |
3209 | set_stat_int(get_hash_key("MP1_MPPLY_TOTAL_RACES_WON"), 101); | |
3210 | set_stat_int(get_hash_key("MP1_MPPLY_TOTAL_DEATHMATCH_LOST"), 23); | |
3211 | set_stat_int(get_hash_key("MP1_MPPLY_TOTAL_RACES_LOST"), 36); | |
3212 | set_stat_int(get_hash_key("MP1_AWD_25_KILLS_STICKYBOMBS"), 50); | |
3213 | set_stat_int(get_hash_key("MP1_AWD_50_KILLS_GRENADES"), 50); | |
3214 | set_stat_int(get_hash_key("MP1_GRENADE_ENEMY_KILLS"), 50); | |
3215 | set_stat_int(get_hash_key("MP1_AWD_20_KILLS_MELEE"), 50); | |
3216 | //set_stat_int(get_hash_key(ConvertString(("NO_MASKS_UNLOCK"), 25); | |
3217 | //set_stat_int(get_hash_key(ConvertString(("NO_TATTOOS_UNLOCK"), 61); | |
3218 | ||
3219 | set_stat_bool(get_hash_key("MP1_AWD_FMMOSTKILLSSURVIVE"), 1); | |
3220 | ||
3221 | // set_stat_int(get_hash_key(ConvertString(("AWD_ENEMYDRIVEBYKILLS"), 10); | |
3222 | ||
3223 | set_stat_int(get_hash_key("MP1_AWD_FMRALLYWONDRIVE"), 2); | |
3224 | set_stat_int(get_hash_key("MP1_AWD_FMWINSEARACE"), 2); | |
3225 | set_stat_int(get_hash_key("MP1_AWD_FMWINAIRRACE"), 2); | |
3226 | set_stat_int(get_hash_key("MP1_MPPLY_TIMES_RACE_BEST_LAP"), 101); | |
3227 | set_stat_int(get_hash_key("MP1_NUMBER_TURBO_STARTS_IN_RACE"), 100); | |
3228 | set_stat_int(get_hash_key("MP1_AWD_FM_RACES_FASTEST_LAP"), 101); | |
3229 | set_stat_int(get_hash_key("MP1_NUMBER_SLIPSTREAMS_IN_RACE"), 105); | |
3230 | // set_stat_int(get_hash_key("MP1_CASH_GIFT_CREDITED"), 999); | |
3231 | set_stat_int(get_hash_key("MP1_MPPLY_RACE_CHEAT_START"), 130); | |
3232 | set_stat_int(get_hash_key("MP1_MPPLY_RACE_CHEAT_END"), 119); | |
3233 | set_stat_int(get_hash_key("MP1_MPPLY_RACE_CHEAT_QUIT"), 11); | |
3234 | set_stat_int(get_hash_key("MP1_MPPLY_DM_CHEAT_START"), 140); | |
3235 | set_stat_int(get_hash_key("MP1_MPPLY_DM_CHEAT_END"), 115); | |
3236 | set_stat_int(get_hash_key("MP1_MPPLY_DM_CHEAT_QUIT"), 25); | |
3237 | set_stat_int(get_hash_key("MP1_MPPLY_MC_CHEAT_START"), 113); | |
3238 | set_stat_int(get_hash_key("MP1_MPPLY_MC_CHEAT_END"), 97); | |
3239 | set_stat_int(get_hash_key("MP1_MPPLY_MC_CHEAT_QUIT"), 16); | |
3240 | set_stat_int(get_hash_key("MP1_MPPLY_OVERALL_CHEAT"), 0); | |
3241 | ||
3242 | set_stat_int(get_hash_key("MP1_LAP_DANCED_BOUGHT"), 50); | |
3243 | ||
3244 | set_stat_int(get_hash_key("MP1_AWD_FMKILLBOUNTY"), 50); | |
3245 | set_stat_bool(get_hash_key("MP1_AWD_FMKILL3ANDWINGTARACE"), 1); | |
3246 | set_stat_int(get_hash_key("MP1_AWD_FMREVENGEKILLSDM"), 60); | |
3247 | set_stat_int(get_hash_key("MP1_AWD_SECURITY_CARS_ROBBED"), 40); | |
3248 | set_stat_bool(get_hash_key("MP1_AWD_FMPICKUPDLCCRATE1ST"), 1); | |
3249 | return 0; | |
3250 | } | |
3251 | ||
3252 | int Rank2(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
3253 | set_stat_int(get_hash_key("MP2_CHAR_XP_FM"), 2165850); | |
3254 | set_stat_int(get_hash_key("MP2_SCRIPT_INCREASE_STAM"), 100); // MP2_ | |
3255 | set_stat_int(get_hash_key("MP2_SCRIPT_INCREASE_STRN"), 100); | |
3256 | set_stat_int(get_hash_key("MP2_SCRIPT_INCREASE_LUNG"), 100); | |
3257 | set_stat_int(get_hash_key("MP2_SCRIPT_INCREASE_DRIV"), 100); | |
3258 | set_stat_int(get_hash_key("MP2_SCRIPT_INCREASE_FLY"), 100); | |
3259 | set_stat_int(get_hash_key("MP2_SCRIPT_INCREASE_SHO"), 100); | |
3260 | set_stat_int(get_hash_key("MP2_SCRIPT_INCREASE_STL"), 100); | |
3261 | // skills // | |
3262 | set_stat_int(get_hash_key("MP2_RACES_WON"), 100); | |
3263 | ||
3264 | set_stat_int(get_hash_key("MP2_PISTOL_KILLS"), 600); | |
3265 | set_stat_int(get_hash_key("MP2_CMBTPISTOL_KILLS"), 600); | |
3266 | set_stat_int(get_hash_key("MP2_APPISTOL_KILLS"), 600); | |
3267 | set_stat_int(get_hash_key("MP2_MICROSMG_KILLS"), 600); | |
3268 | set_stat_int(get_hash_key("MP2_SMG_KILLS"), 600); | |
3269 | set_stat_int(get_hash_key("MP2_ASLTSMG_KILLS"), 600); | |
3270 | set_stat_int(get_hash_key("MP2_ASLTRIFLE_KILLS"), 600); | |
3271 | set_stat_int(get_hash_key("MP2_CRBNRIFLE_KILLS"), 600); | |
3272 | set_stat_int(get_hash_key("MP2_ADVRIFLE_KILLS"), 600); | |
3273 | set_stat_int(get_hash_key("MP2_HVYSNIPER_KILLS"), 600); | |
3274 | set_stat_int(get_hash_key("MP2_SNIPERRFL_KILLS"), 600); | |
3275 | set_stat_int(get_hash_key("MP2_ASLTSHTGN_KILLS"), 600); | |
3276 | set_stat_int(get_hash_key("MP2_PUMP_KILLS"), 600); | |
3277 | set_stat_int(get_hash_key("MP2_GRNLAUNCH_KILLS"), 600); | |
3278 | set_stat_int(get_hash_key("MP2_RPG_KILLS"), 600); | |
3279 | set_stat_int(get_hash_key("MP2_MINIGUNS_KILLS"), 600); | |
3280 | set_stat_int(get_hash_key("MP2_ASLTSMG_KILLS"), 600); | |
3281 | set_stat_int(get_hash_key("MP2_ASLTRIFLE_KILLS"), 600); | |
3282 | set_stat_int(get_hash_key("MP2_CRBNRIFLE_KILLS"), 600); | |
3283 | set_stat_int(get_hash_key("MP2_ADVRIFLE_KILLS"), 600); | |
3284 | set_stat_int(get_hash_key("MP2_HVYSNIPER_KILLS"), 600); | |
3285 | set_stat_int(get_hash_key("MP2_SNIPERRFL_KILLS"), 600); | |
3286 | set_stat_int(get_hash_key("MP2_MG_KILLS"), 600); | |
3287 | set_stat_int(get_hash_key("MP2_CMBTMG_KILLS"), 600); | |
3288 | set_stat_int(get_hash_key("MP2_PISTOL_ENEMY_KILLS"), 600); | |
3289 | set_stat_int(get_hash_key("MP2_CMBTPISTOL_ENEMY_KILLS"), 600); | |
3290 | set_stat_int(get_hash_key("MP2_APPISTOL_ENEMY_KILLS"), 600); | |
3291 | set_stat_int(get_hash_key("MP2_MICROSMG_ENEMY_KILLS"), 600); | |
3292 | set_stat_int(get_hash_key("MP2_SMG_ENEMY_KILLS"), 600); | |
3293 | set_stat_int(get_hash_key("MP2_ASLTSMG_ENEMY_KILLS"), 600); | |
3294 | set_stat_int(get_hash_key("MP2_ASLTRIFLE_ENEMY_KILLS"), 600); | |
3295 | set_stat_int(get_hash_key("MP2_CRBNRIFLE_ENEMY_KILLS"), 600); | |
3296 | set_stat_int(get_hash_key("MP2_ADVRIFLE_ENEMY_KILLS"), 600); | |
3297 | set_stat_int(get_hash_key("MP2_HVYSNIPER_ENEMY_KILLS"), 600); | |
3298 | set_stat_int(get_hash_key("MP2_SNIPERRFL_ENEMY_KILLS"), 600); | |
3299 | set_stat_int(get_hash_key("MP2_ASLTSHTGN_ENEMY_KILLS"), 600); | |
3300 | set_stat_int(get_hash_key("MP2_PUMP_ENEMY_KILLS"), 600); | |
3301 | set_stat_int(get_hash_key("MP2_GRNLAUNCH_ENEMY_KILLS"), 600); | |
3302 | set_stat_int(get_hash_key("MP2_RPG_ENEMY_KILLS"), 600); | |
3303 | set_stat_int(get_hash_key("MP2_MINIGUNS_ENEMY_KILLS"), 600); | |
3304 | set_stat_int(get_hash_key("MP2_ASLTSMG_ENEMY_KILLS"), 600); | |
3305 | set_stat_int(get_hash_key("MP2_ASLTRIFLE_ENEMY_KILLS"), 600); | |
3306 | set_stat_int(get_hash_key("MP2_CRBNRIFLE_ENEMY_KILLS"), 600); | |
3307 | set_stat_int(get_hash_key("MP2_ADVRIFLE_ENEMY_KILLS"), 600); | |
3308 | set_stat_int(get_hash_key("MP2_HVYSNIPER_ENEMY_KILLS"), 600); | |
3309 | set_stat_int(get_hash_key("MP2_SNIPERRFL_ENEMY_KILLS"), 600); | |
3310 | set_stat_int(get_hash_key("MP2_MG_ENEMY_KILLS"), 600); | |
3311 | set_stat_int(get_hash_key("MP2_CMBTMG_ENEMY_KILLS"), 600); | |
3312 | ||
3313 | set_stat_bool(get_hash_key("MP2_AWD_FMRACEWORLDRECHOLDER"), 1); | |
3314 | set_stat_int(get_hash_key("MP2_AWD_ENEMYDRIVEBYKILLS"), 600); | |
3315 | ||
3316 | set_stat_int(get_hash_key("MP2_USJS_COMPLETED"), 50); | |
3317 | set_stat_int(get_hash_key("MP2_USJS_FOUND"), 50); | |
3318 | ||
3319 | set_stat_bool(get_hash_key("MP2_AWD_FMWINALLRACEMODES"), 1); | |
3320 | set_stat_bool(get_hash_key("MP2_AWD_FMWINEVERYGAMEMODE"), 1); | |
3321 | set_stat_int(get_hash_key("MP2_DB_PLAYER_KILLS"), 1000); // drive by kills | |
3322 | set_stat_int(get_hash_key("MP2_KILLS_PLAYERS"), 1000); | |
3323 | set_stat_int(get_hash_key("MP2_AWD_FMHORDWAVESSURVIVE"), 21); | |
3324 | set_stat_int(get_hash_key("MP2_AWD_CAR_BOMBS_ENEMY_KILLS"), 25); | |
3325 | set_stat_int(get_hash_key("MP2_AWD_FM_TDM_MVP"), 60); | |
3326 | set_stat_int(get_hash_key("MP2_AWD_HOLD_UP_SHOPS"), 20); | |
3327 | set_stat_int(get_hash_key("MP2_AWD_RACES_WON"), 101); | |
3328 | set_stat_int(get_hash_key("MP2_AWD_NO_ARMWRESTLING_WINS"), 21); | |
3329 | set_stat_bool(get_hash_key("MP2_AWD_FMATTGANGHQ"), 1); | |
3330 | set_stat_int(get_hash_key("MP2_AWD_FMBBETWIN"), 50000); | |
3331 | set_stat_int(get_hash_key("MP2_AWD_FM_DM_WINS"), 51); | |
3332 | ||
3333 | set_stat_bool(get_hash_key("MP2_AWD_FMFULLYMODDEDCAR"), 1); | |
3334 | set_stat_int(get_hash_key("MP2_AWD_FM_DM_TOTALKILLS"), 500); | |
3335 | set_stat_int(get_hash_key("MP2_MPPLY_DM_TOTAL_DEATHS"), 412); | |
3336 | set_stat_int(get_hash_key("MP2_MPPLY_TIMES_FINISH_DM_TOP_3"), 36); | |
3337 | set_stat_int(get_hash_key("MP2_PLAYER_HEADSHOTS"), 623); | |
3338 | set_stat_int(get_hash_key("MP2_AWD_FM_DM_WINS"), 63); | |
3339 | set_stat_int(get_hash_key("MP2_AWD_FM_TDM_WINS"), 13); | |
3340 | set_stat_int(get_hash_key("MP2_AWD_FM_GTA_RACES_WON"), 12); | |
3341 | set_stat_int(get_hash_key("MP2_AWD_FM_GOLF_WON"), 2); | |
3342 | set_stat_int(get_hash_key("MP2_AWD_FM_SHOOTRANG_TG_WON"), 2); | |
3343 | set_stat_int(get_hash_key("MP2_AWD_FM_SHOOTRANG_RT_WON"), 2); | |
3344 | set_stat_int(get_hash_key("MP2_AWD_FM_SHOOTRANG_CT_WON"), 2); | |
3345 | set_stat_int(get_hash_key("MP2_AWD_FM_SHOOTRANG_GRAN_WON"), 2); | |
3346 | set_stat_int(get_hash_key("MP2_AWD_FM_TENNIS_WON"), 2); | |
3347 | set_stat_int(get_hash_key("MP2_MPPLY_TENNIS_MATCHES_WON"), 2); | |
3348 | set_stat_int(get_hash_key("MP2_MPPLY_TOTAL_TDEATHMATCH_WON"), 63); | |
3349 | set_stat_int(get_hash_key("MP2_MPPLY_TOTAL_RACES_WON"), 101); | |
3350 | set_stat_int(get_hash_key("MP2_MPPLY_TOTAL_DEATHMATCH_LOST"), 23); | |
3351 | set_stat_int(get_hash_key("MP2_MPPLY_TOTAL_RACES_LOST"), 36); | |
3352 | set_stat_int(get_hash_key("MP2_AWD_25_KILLS_STICKYBOMBS"), 50); | |
3353 | set_stat_int(get_hash_key("MP2_AWD_50_KILLS_GRENADES"), 50); | |
3354 | set_stat_int(get_hash_key("MP2_GRENADE_ENEMY_KILLS"), 50); | |
3355 | set_stat_int(get_hash_key("MP2_AWD_20_KILLS_MELEE"), 50); | |
3356 | //set_stat_int(get_hash_key(ConvertString(("NO_MASKS_UNLOCK"), 25); | |
3357 | //set_stat_int(get_hash_key(ConvertString(("NO_TATTOOS_UNLOCK", 61); | |
3358 | ||
3359 | set_stat_bool(get_hash_key("MP2_AWD_FMMOSTKILLSSURVIVE"), 1); | |
3360 | ||
3361 | // set_stat_int(get_hash_key(ConvertString(("AWD_ENEMYDRIVEBYKILLS"), 10); | |
3362 | ||
3363 | set_stat_int(get_hash_key("MP2_AWD_FMRALLYWONDRIVE"), 2); | |
3364 | set_stat_int(get_hash_key("MP2_AWD_FMWINSEARACE"), 2); | |
3365 | set_stat_int(get_hash_key("MP2_AWD_FMWINAIRRACE"), 2); | |
3366 | set_stat_int(get_hash_key("MP2_MPPLY_TIMES_RACE_BEST_LAP"), 101); | |
3367 | set_stat_int(get_hash_key("MP2_NUMBER_TURBO_STARTS_IN_RACE"), 100); | |
3368 | set_stat_int(get_hash_key("MP2_AWD_FM_RACES_FASTEST_LAP"), 101); | |
3369 | set_stat_int(get_hash_key("MP2_NUMBER_SLIPSTREAMS_IN_RACE"), 105); | |
3370 | // set_stat_int(get_hash_key("MP2_CASH_GIFT_CREDITED"), 999); | |
3371 | set_stat_int(get_hash_key("MP2_MPPLY_RACE_CHEAT_START"), 130); | |
3372 | set_stat_int(get_hash_key("MP2_MPPLY_RACE_CHEAT_END"), 119); | |
3373 | set_stat_int(get_hash_key("MP2_MPPLY_RACE_CHEAT_QUIT"), 11); | |
3374 | set_stat_int(get_hash_key("MP2_MPPLY_DM_CHEAT_START"), 140); | |
3375 | set_stat_int(get_hash_key("MP2_MPPLY_DM_CHEAT_END"), 115); | |
3376 | set_stat_int(get_hash_key("MP2_MPPLY_DM_CHEAT_QUIT"), 25); | |
3377 | set_stat_int(get_hash_key("MP2_MPPLY_MC_CHEAT_START"), 113); | |
3378 | set_stat_int(get_hash_key("MP2_MPPLY_MC_CHEAT_END"), 97); | |
3379 | set_stat_int(get_hash_key("MP2_MPPLY_MC_CHEAT_QUIT"), 16); | |
3380 | set_stat_int(get_hash_key("MP2_MPPLY_OVERALL_CHEAT"), 0); | |
3381 | ||
3382 | set_stat_int(get_hash_key("MP2_LAP_DANCED_BOUGHT"), 50); | |
3383 | ||
3384 | set_stat_int(get_hash_key("MP2_AWD_FMKILLBOUNTY"), 50); | |
3385 | set_stat_bool(get_hash_key("MP2_AWD_FMKILL3ANDWINGTARACE"), 1); | |
3386 | set_stat_int(get_hash_key("MP2_AWD_FMREVENGEKILLSDM"), 60); | |
3387 | set_stat_int(get_hash_key("MP2_AWD_SECURITY_CARS_ROBBED"), 40); | |
3388 | set_stat_bool(get_hash_key("MP2_AWD_FMPICKUPDLCCRATE1ST"), 1); | |
3389 | return 0; | |
3390 | } | |
3391 | #endif | |
3392 | ||
3393 | float speed_loc = 0.1; | |
3394 | bool speed_req = false; | |
3395 | bool speedo_ready = false; | |
3396 | bool analog_loop = false; | |
3397 | int Analog(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
3398 | if (!analog_loop) { | |
3399 | analog_loop = true; | |
3400 | speed_loc = 0.09; | |
3401 | speed_req = true; | |
3402 | if (gauge == 0) | |
3403 | gauge = 4; | |
3404 | } | |
3405 | else if (analog_loop) { | |
3406 | analog_loop = false; | |
3407 | } | |
3408 | return 0; | |
3409 | } | |
3410 | bool dark = false; | |
3411 | bool damaged = false; | |
3412 | int idamage; | |
3413 | void analog_speedo() | |
3414 | { | |
3415 | if (!is_ped_on_foot(PlayerPedId())) | |
3416 | { | |
3417 | int ispeed; | |
3418 | int car = GetCarCharIsIn(PlayerPedId(), 0);//GET_CAR_CHAR_IS_USING(GetPlayerPed(), &veh_speed); | |
3419 | float speed = get_entity_speed(car); | |
3420 | float damage = get_vehicle_engine_health(car); | |
3421 | idamage = (int) damage; // float to int | |
3422 | if (idamage < 750) | |
3423 | { | |
3424 | damaged = true; | |
3425 | } | |
3426 | else | |
3427 | { | |
3428 | damaged = false; | |
3429 | } | |
3430 | if (get_clock_hours() > 19 || (get_clock_hours() < 7)) | |
3431 | { | |
3432 | dark = true; | |
3433 | } | |
3434 | else if (get_clock_hours() < 7) | |
3435 | { | |
3436 | dark = true; | |
3437 | } | |
3438 | else | |
3439 | { | |
3440 | dark = false; | |
3441 | } | |
3442 | if (gauge == 1) | |
3443 | { | |
3444 | speed = speed * 4.30; | |
3445 | ispeed = (int) speed; // float to int | |
3446 | if (dark) | |
3447 | { | |
3448 | draw_sprite("mpmissmarkers256", "sea_race_icon", 0.12f, 0.2f, 0.28f, 0.41f, 0.0f, 255, 255, 255, 225); | |
3449 | if (speed > 293) | |
3450 | { | |
3451 | //draw_sprite("mpmissmarkers256", "foot_race_icon", 0.12f, 0.2f, 0.2f, 0.18f, 294, 255, 255, 255, 255); | |
3452 | draw_sprite("mpmissmarkers256", "foot_race_icon", 0.12f, 0.2f, 0.28f, 0.41f, 210, 255, 255, 255, 225); | |
3453 | } | |
3454 | else | |
3455 | { | |
3456 | if (speed < 80) | |
3457 | { | |
3458 | draw_sprite("mpmissmarkers256", "foot_race_icon", 0.12f, 0.2f, 0.28f, 0.41f, speed - 88, 255, 255, 255, 225); | |
3459 | } | |
3460 | else | |
3461 | { | |
3462 | draw_sprite("mpmissmarkers256", "foot_race_icon", 0.12f, 0.2f, 0.28f, 0.41f, speed - 88, 255, 255, 255, 225); | |
3463 | } | |
3464 | } | |
3465 | } | |
3466 | else if (!dark) | |
3467 | { | |
3468 | draw_sprite("mpmissmarkers256", "last_team_standing_icon", 0.12f, 0.2f, 0.28f, 0.41f, 0.0f, 255, 255, 255, 225); | |
3469 | if (speed > 293) | |
3470 | { | |
3471 | draw_sprite("mpmissmarkers256", "survival_icon", 0.12f, 0.2f, 0.28f, 0.41f, 210, 255, 255, 255, 225); | |
3472 | } | |
3473 | else | |
3474 | { | |
3475 | if (speed < 80) | |
3476 | { | |
3477 | draw_sprite("mpmissmarkers256", "survival_icon", 0.12f, 0.2f, 0.28f, 0.41f, speed - 88, 255, 255, 255, 225); | |
3478 | } | |
3479 | else | |
3480 | { | |
3481 | draw_sprite("mpmissmarkers256", "survival_icon", 0.12f, 0.2f, 0.28f, 0.41f, speed - 88, 255, 255, 255, 225); | |
3482 | } | |
3483 | } | |
3484 | } | |
3485 | } | |
3486 | else if (gauge == 2) | |
3487 | { | |
3488 | speed = speed * 4.55; | |
3489 | ispeed = (int) speed; // float to int | |
3490 | PrintToScreenNum(ispeed, speed_loc, 0.26000000, 0, 255, 0, 255, 0.80000000, 0.80000000, 0, 5); | |
3491 | if (ispeed < 120) | |
3492 | { | |
3493 | PrintToScreenNum(ispeed, speed_loc, 0.26000000, 0, 255, 0, 255, 0.80000000, 0.80000000, 0, 5); | |
3494 | } | |
3495 | if (ispeed > 120) | |
3496 | { | |
3497 | PrintToScreenNum(ispeed, speed_loc, 0.26000000, 255, 255, 0, 255, 0.80000000, 0.80000000, 0, 5); | |
3498 | } | |
3499 | if (ispeed > 180) | |
3500 | { | |
3501 | PrintToScreenNum(ispeed, speed_loc, 0.26000000, 255, 165, 0, 255, 0.80000000, 0.80000000, 0, 5); | |
3502 | } | |
3503 | if (ispeed > 240) | |
3504 | { | |
3505 | PrintToScreenNum(ispeed, speed_loc, 0.26000000, 255, 0, 0, 255, 0.80000000, 0.80000000, 0, 5); | |
3506 | } | |
3507 | draw_sprite("mpmissmarkers256", "custom_icon", 0.12f, 0.2f, 0.2f, 0.3f, 0.0f, 255, 255, 255, 225); | |
3508 | if (speed > 293) | |
3509 | { | |
3510 | draw_sprite("mpmissmarkers256", "tennis_icon", 0.12f, 0.2f, 0.2f, 0.3f, 294, 255, 255, 255, 255); | |
3511 | } | |
3512 | else | |
3513 | { | |
3514 | draw_sprite("mpmissmarkers256", "tennis_icon", 0.12f, 0.2f, 0.2f, 0.3f, speed, 255, 255, 255, 255); | |
3515 | } | |
3516 | } | |
3517 | else if (gauge == 3) | |
3518 | { | |
3519 | speed = speed * 4.55; | |
3520 | ispeed = (int) speed; // float to int | |
3521 | PrintToScreenNum(ispeed, 0.1, 0.27000000, 0, 77, 33, 225, 0.50000000, 0.50000000, 0, 5); | |
3522 | draw_sprite("mpmissmarkers256", "basejump_icon", 0.12f, 0.2f, 0.2f, 0.3f, 0.0f, 255, 255, 255, 225); | |
3523 | if (speed > 293) | |
3524 | { | |
3525 | draw_sprite("mpmissmarkers256", "deathmatch_marker_256", 0.12f, 0.2f, 0.2f, 0.3f, 294 - 89, 255, 255, 255, 255); | |
3526 | } | |
3527 | else | |
3528 | { | |
3529 | draw_sprite("mpmissmarkers256", "deathmatch_marker_256", 0.12f, 0.2f, 0.2f, 0.3f, speed - 89, 255, 255, 255, 255); | |
3530 | } | |
3531 | } | |
3532 | else if (gauge == 4) | |
3533 | { | |
3534 | speed = speed * 5.45; | |
3535 | ispeed = (int) speed; // float to int | |
3536 | if (!dark) // day damage gauge | |
3537 | { | |
3538 | draw_sprite("mpmissmarkers256", "vehicledeathmatch_icon", 0.12f, 0.2f, 0.35f, 0.45f, 0.0f, 255, 255, 255, 225); | |
3539 | if (damaged) | |
3540 | draw_sprite("mpmissmarkers256", "gangattack_icon", 0.12f, 0.2f, 0.35f, 0.45f, 0.0f, 255, 255, 255, 225); | |
3541 | if (speed > 250) | |
3542 | { | |
3543 | draw_sprite("mpmissmarkers256", "darts_icon", 0.12f, 0.2f, 0.35f, 0.45f, 251 - 65, 255, 255, 255, 255); | |
3544 | } | |
3545 | else | |
3546 | { | |
3547 | draw_sprite("mpmissmarkers256", "darts_icon", 0.12f, 0.2f, 0.35f, 0.45f, speed - 65, 255, 255, 255, 255); | |
3548 | } | |
3549 | } | |
3550 | else if (dark) // night time | |
3551 | { | |
3552 | draw_sprite("mpmissmarkers256", "bike_race_icon", 0.12f, 0.2f, 0.35f, 0.45f, 0.0f, 255, 255, 255, 225); | |
3553 | if (damaged) | |
3554 | draw_sprite("mpmissmarkers256", "gangattack_icon", 0.12f, 0.2f, 0.35f, 0.45f, 0.0f, 255, 255, 255, 225); | |
3555 | if (speed > 250) | |
3556 | { | |
3557 | draw_sprite("mpmissmarkers256", "corona_point", 0.12f, 0.2f, 0.35f, 0.45f, 251 - 65, 255, 255, 255, 255); | |
3558 | } | |
3559 | else | |
3560 | { | |
3561 | draw_sprite("mpmissmarkers256", "corona_point", 0.12f, 0.2f, 0.35f, 0.45f, speed - 65, 255, 255, 255, 255); | |
3562 | } | |
3563 | } | |
3564 | } | |
3565 | } | |
3566 | } | |
3567 | #endif | |
3568 | void cam_loop() | |
3569 | { | |
3570 | if (cam_check) | |
3571 | { | |
3572 | if (is_ped_on_foot(PlayerPedId())) | |
3573 | { | |
3574 | float lineThickness = 0.001f; | |
3575 | float lineLength = 0.02f; | |
3576 | draw_rect(0.5f, 0.5f, lineLength, lineThickness, 255, 0, 0, 255); | |
3577 | draw_rect(0.5f, 0.5f, lineThickness, lineLength + 0.01f, 255, 0, 0, 255); | |
3578 | } | |
3579 | set_cam_active(cam, true); | |
3580 | get_gameplay_cam_rot(2, rot); | |
3581 | set_cam_rot(cam, rot); | |
3582 | } | |
3583 | } | |
3584 | ||
3585 | /*void ufoloop() { | |
3586 | rock | |
3587 | }*/ | |
3588 | ||
3589 | /*bool bUfo; | |
3590 | void ufomode_1_loop() | |
3591 | { | |
3592 | if ( (is_control_pressed( 2, 176 ) && is_control_just_pressed( 2, 182 )) ) | |
3593 | { | |
3594 | bUfo = !bUfo; | |
3595 | set_ped_stealth_movement( PlayerPedId(), 0, 0 ); | |
3596 | ShowMessageOnScreen( "Fly mod %s.", bUfo ? "on", "off" ); | |
3597 | if ( ! (bUfo ) ) | |
3598 | { | |
3599 | //freeze_your_car_or_player( false ) | |
3600 | int Handle = are_you_in_veh_if_so_get_handle(); | |
3601 | if ( !Handle ) | |
3602 | Handle = PlayerPedId(); | |
3603 | apply_force_to_entity( Handle, 1, 0.0f, 0.0f, -0.1f, 0.0f, 0.0f, 0.0f, 0, 1, 0, 0, 0, 1 ); | |
3604 | } | |
3605 | } | |
3606 | if ( bUfo ) | |
3607 | ufomode_1(); | |
3608 | } | |
3609 | ||
3610 | ||
3611 | ||
3612 | void ufomode_1() | |
3613 | { | |
3614 | int Handle = are_you_in_veh_if_so_get_handle(); | |
3615 | bool isInVeh = Handle != 0; | |
3616 | if ( !isInVeh ) | |
3617 | Handle = PlayerPedId(); | |
3618 | float var_1 = is_control_pressed( 2, 194 ) ? 4.0f : 1.0f, | |
3619 | z = get_gameplay_cam_rot( 2 )[2],//z | |
3620 | temp; | |
3621 | ||
3622 | set_entity_heading( Handle, z ); | |
3623 | set_gameplay_cam_relative_heading( 0.0f ); | |
3624 | temp = get_gameplay_cam_relative_pitch() + 3.0f ; | |
3625 | ||
3626 | if ( isInVeh )// unsure :/ | |
3627 | temp += 4.0f; | |
3628 | ||
3629 | set_gameplay_cam_relative_pitch( temp, 1.0f ); | |
3630 | freeze_entity_position( Handle, 1 ); | |
3631 | ||
3632 | if (!((((get_control_normal( 2, 181 ) == 0.0f && get_control_normal( 2, 180 )) == 0.0f && | |
3633 | get_control_normal( 2, 186 )) == 0.0f && get_control_normal( 2, 185 ) == 0.0f))) | |
3634 | { | |
3635 | float var_3 = get_control_normal( 2, 186 ) * -1.0f * var_1, | |
3636 | var_4 = get_control_normal( 2, 180 ) * -1.0f * var_1; | |
3637 | ||
3638 | var_4 = get_control_normal( 2, 181 ) * var_1 + var_4; | |
3639 | ||
3640 | set_entity_coords_no_offset( Handle, get_offset_from_entity_in_world_coords( Handle, get_control_normal( 2, 185 ) * var_1, var_3, var_4 ), 0, 0, 0 ); | |
3641 | } | |
3642 | }*/ | |
3643 | ||
3644 | bool xmas = false; | |
3645 | int ToggleXmas(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
3646 | ||
3647 | int pointer = *(int *)(Var_Pointer + 4); | |
3648 | pointer += (4605 * 4); | |
3649 | xmas ^= true;//Toggle xmas | |
3650 | if (xmas) { | |
3651 | *(int *)(pointer + 0x20) = 1; | |
3652 | *(int *)pointer = 1; | |
3653 | } | |
3654 | else if (!xmas) { | |
3655 | *(int *)(pointer + 0x20) = 0; | |
3656 | *(int *)pointer = 0; | |
3657 | } | |
3658 | ShowMessageOnScreen("~b~ XMAS %s", xmas ? "Activated" : "Disabled"); | |
3659 | return 0; | |
3660 | }// | |
3661 | ||
3662 | int FWLimit(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
3663 | int pointer = *(int *)(Var_Pointer + 4); | |
3664 | pointer += (5878 * 4); | |
3665 | *(int *)pointer = 999999999; | |
3666 | ShowMessageOnScreen("Fireworks limit removed!"); | |
3667 | return 0; | |
3668 | } | |
3669 | ||
3670 | bool nyloaded = false; | |
3671 | int LoadNY(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
3672 | nyloaded = true; | |
3673 | ShowMessageOnScreen("North Yankton Loaded (Only you can see this)!"); | |
3674 | return 0; | |
3675 | } | |
3676 | ||
3677 | ||
3678 | bool fan_garage = false; | |
3679 | bool fan_delete = false; | |
3680 | bool garagefun = false; | |
3681 | int GarageFan(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
3682 | if (!fan_garage) { | |
3683 | objectspawn = true; | |
3684 | model = 1952396163; | |
3685 | garagefun = true; | |
3686 | fan_garage = true; | |
3687 | } | |
3688 | else if (fan_garage) { | |
3689 | fan_delete = true; | |
3690 | fan_garage = false; | |
3691 | } | |
3692 | ShowMessageOnScreen("~b~ Garage Troll %s", fan_garage ? "Activated" : "Disabled"); | |
3693 | ||
3694 | return 0; | |
3695 | }// | |
3696 | ||
3697 | bool bounty = false; | |
3698 | int ToggleBounty(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
3699 | int value = -2147000; | |
3700 | int pointer = *(int *)(Var_Pointer + 4); | |
3701 | pointer += (143 * 4); | |
3702 | bounty ^= true;//Toggle bounty | |
3703 | if(bounty) { | |
3704 | *(int *)pointer = value; | |
3705 | } | |
3706 | else { | |
3707 | *(int *)pointer = 1; | |
3708 | } | |
3709 | ShowMessageOnScreen("~b~ Massive Bounty %s", bounty ? "Activated" : "Disabled"); | |
3710 | ||
3711 | return 0; | |
3712 | }// | |
3713 | ||
3714 | int SpawnBodyParts(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
3715 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
3716 | objectspawn = true; | |
3717 | normalspawn = true; | |
3718 | model = -1268580434; // spunk ramp 0xBF8918DE // UFO 0xB467C540 | |
3719 | ShowMessageOnScreen("~b~ Body parts spawned!"); | |
3720 | return 0; | |
3721 | }// | |
3722 | ||
3723 | int SpawnEgg(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
3724 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
3725 | objectspawn = true; | |
3726 | normalspawn = true; | |
3727 | model = 1803116220; // spunk ramp 0xBF8918DE // UFO 0xB467C540 | |
3728 | ShowMessageOnScreen("~b~ Alien egg spawned!"); | |
3729 | return 0; | |
3730 | }// | |
3731 | ||
3732 | int SpawnShit(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
3733 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
3734 | objectspawn = true; | |
3735 | normalspawn = true; | |
3736 | model = -2071359746; // spunk ramp 0xBF8918DE // UFO 0xB467C540 | |
3737 | ShowMessageOnScreen("~b~ Big shit spawned!"); | |
3738 | return 0; | |
3739 | }// | |
3740 | ||
3741 | int SpawnAsteroid(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
3742 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
3743 | objectspawn = true; | |
3744 | normalspawn = true; | |
3745 | model = -543669801; // spunk ramp 0xBF8918DE // UFO 0xB467C540 | |
3746 | ShowMessageOnScreen("~b~ Big asteroid spawned!"); | |
3747 | return 0; | |
3748 | }// | |
3749 | ||
3750 | int SpawnUfo(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
3751 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
3752 | objectspawn = true; | |
3753 | normalspawn = true; | |
3754 | model = 0xB467C540; // spunk ramp 0xBF8918DE // UFO 0xB467C540 | |
3755 | ShowMessageOnScreen("~b~ Big Ufo spawned!"); | |
3756 | return 0; | |
3757 | }// | |
3758 | ||
3759 | int SpawnFerris(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
3760 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
3761 | objectspawn = true; | |
3762 | normalspawn = true; | |
3763 | model = -1003748966; // spunk ramp 0xBF8918DE // UFO 0xB467C540 | |
3764 | ShowMessageOnScreen("~b~ Ferris Wheel spawned!"); | |
3765 | return 0; | |
3766 | }// | |
3767 | ||
3768 | int SpawnLine(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
3769 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
3770 | objectspawn = true; | |
3771 | normalspawn = true; | |
3772 | model = -1157901789; // spunk ramp 0xBF8918DE // UFO 0xB467C540 | |
3773 | ShowMessageOnScreen("~b~ Start line spawned!"); | |
3774 | return 0; | |
3775 | }// | |
3776 | ||
3777 | int SpawnPipe(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
3778 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
3779 | objectspawn = true; | |
3780 | normalspawn = true; | |
3781 | model = 1185512375; // spunk ramp 0xBF8918DE // UFO 0xB467C540 | |
3782 | ShowMessageOnScreen("~b~ Gate spawned!"); | |
3783 | return 0; | |
3784 | }// | |
3785 | ||
3786 | int BarrierS(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
3787 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
3788 | objectspawn = true; | |
3789 | normalspawn = true; | |
3790 | model = 868148414; // spunk ramp 0xBF8918DE // UFO 0xB467C540 | |
3791 | ShowMessageOnScreen("~b~ Short Barrier spawned!"); | |
3792 | return 0; | |
3793 | }// | |
3794 | ||
3795 | int BarrierL(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
3796 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
3797 | objectspawn = true; | |
3798 | normalspawn = true; | |
3799 | model = 1603241576; // spunk ramp 0xBF8918DE // UFO 0xB467C540 | |
3800 | ShowMessageOnScreen("~b~ Long Barrier spawned!"); | |
3801 | return 0; | |
3802 | }// | |
3803 | ||
3804 | int WBarrier(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
3805 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
3806 | objectspawn = true; | |
3807 | normalspawn = true; | |
3808 | model = 24969275; // spunk ramp 0xBF8918DE // UFO 0xB467C540 | |
3809 | ShowMessageOnScreen("~b~ Wooden Barrier spawned!"); | |
3810 | return 0; | |
3811 | }// | |
3812 | ||
3813 | int AWBarrier(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
3814 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
3815 | objectspawn = true; | |
3816 | normalspawn = true; | |
3817 | model = 1867879106; // spunk ramp 0xBF8918DE // UFO 0xB467C540 | |
3818 | ShowMessageOnScreen("~b~ Arrow Wooden Barrier spawned!"); | |
3819 | return 0; | |
3820 | }// | |
3821 | ||
3822 | int MBarrier(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
3823 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
3824 | objectspawn = true; | |
3825 | normalspawn = true; | |
3826 | model = 54588191; // spunk ramp 0xBF8918DE // UFO 0xB467C540 | |
3827 | ShowMessageOnScreen("~b~ Metal Barrier spawned!"); | |
3828 | return 0; | |
3829 | }// | |
3830 | ||
3831 | int RoadCone(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
3832 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
3833 | objectspawn = true; | |
3834 | normalspawn = true; | |
3835 | model = -534360227; // spunk ramp 0xBF8918DE // UFO 0xB467C540 | |
3836 | ShowMessageOnScreen("~b~ Road Cone spawned!"); | |
3837 | return 0; | |
3838 | }// | |
3839 | ||
3840 | int SpawnContainer(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
3841 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
3842 | objectspawn = true; | |
3843 | normalspawn = true; | |
3844 | model = -629735826; // spunk ramp 0xBF8918DE // UFO 0xB467C540 | |
3845 | ShowMessageOnScreen("~b~ Container Spawned!"); | |
3846 | return 0; | |
3847 | }// | |
3848 | ||
3849 | int MoveUp(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { // working | |
3850 | if (DoesEntityExist(objecthandle)) { | |
3851 | float Pos[3]; | |
3852 | network_request_control_of_entity(objecthandle); | |
3853 | GetEntityCoords(objecthandle, Pos); | |
3854 | objectcoordz = Pos[2]; | |
3855 | objectcoordz += 0.1; | |
3856 | network_request_control_of_entity(objecthandle); | |
3857 | set_entity_coords(objecthandle, Pos[0], Pos[1], objectcoordz, 1, 0, 0, 1); | |
3858 | ShowMessageOnScreen("~b~ Moved Object Up"); | |
3859 | return 0; | |
3860 | } | |
3861 | } | |
3862 | ||
3863 | int MoveDown(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { // working | |
3864 | if (DoesEntityExist(objecthandle)) { | |
3865 | float Pos[3]; | |
3866 | network_request_control_of_entity(objecthandle); | |
3867 | GetEntityCoords(objecthandle, Pos); | |
3868 | objectcoordz = Pos[2]; | |
3869 | objectcoordz -= 0.1; | |
3870 | network_request_control_of_entity(objecthandle); | |
3871 | set_entity_coords(objecthandle, Pos[0], Pos[1], objectcoordz, 1, 0, 0, 1); | |
3872 | ShowMessageOnScreen("~b~ Moved Object Down"); | |
3873 | return 0; | |
3874 | } | |
3875 | } | |
3876 | ||
3877 | int MoveForward(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { // was move right | |
3878 | if (DoesEntityExist(objecthandle)) { | |
3879 | float Pos[3]; | |
3880 | network_request_control_of_entity(objecthandle); | |
3881 | GetEntityCoords(objecthandle, Pos); | |
3882 | objectcoordy = Pos[1]; | |
3883 | objectcoordy += 0.1; | |
3884 | network_request_control_of_entity(objecthandle); | |
3885 | set_entity_coords(objecthandle, Pos[0], objectcoordy, Pos[2], 1, 0, 0, 1); | |
3886 | ShowMessageOnScreen("~b~ + Y Axis"); | |
3887 | return 0; | |
3888 | } | |
3889 | } | |
3890 | bool snap = false; | |
3891 | int SnapGround(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { // was move right | |
3892 | if (DoesEntityExist(objecthandle)) { | |
3893 | //float Position[3]; | |
3894 | //GetEntityCoords(objecthandle, Position); | |
3895 | float Position[3], dim_min[3], dim_max[3]; | |
3896 | get_model_dimensions(get_entity_model(PlayerPedId()), dim_min, dim_max); | |
3897 | get_offset_from_entity_in_world_coords(PlayerPedId(), dim_min[0], dim_min[1] + 4.0f, 0.0f, Position); | |
3898 | get_ground_z_for_3d_coord(Position[0], Position[1], Position[2], &Position[2]); | |
3899 | set_entity_coords(objecthandle, Position[0], Position[1], Position[2], 1, 0, 0, 1); | |
3900 | ShowMessageOnScreen("~b~ Snapped Object To Ground Height"); | |
3901 | return 0; | |
3902 | } | |
3903 | } | |
3904 | ||
3905 | ||
3906 | int MoveBackward(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { // was move forward | |
3907 | if (DoesEntityExist(objecthandle)) { | |
3908 | float Pos[3]; | |
3909 | network_request_control_of_entity(objecthandle); | |
3910 | GetEntityCoords(objecthandle, Pos); | |
3911 | objectcoordy = Pos[1]; | |
3912 | objectcoordy -= 0.1; | |
3913 | network_request_control_of_entity(objecthandle); | |
3914 | set_entity_coords(objecthandle, Pos[0], objectcoordy, Pos[2], 1, 0, 0, 1); | |
3915 | ShowMessageOnScreen("~b~ - Y Axis"); | |
3916 | return 0; | |
3917 | } | |
3918 | } | |
3919 | ||
3920 | int MoveLeft(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { // was move backward | |
3921 | if (DoesEntityExist(objecthandle)) { | |
3922 | float Pos[3]; | |
3923 | network_request_control_of_entity(objecthandle); | |
3924 | GetEntityCoords(objecthandle, Pos); | |
3925 | objectcoordx = Pos[0]; | |
3926 | objectcoordx -= 0.1; | |
3927 | network_request_control_of_entity(objecthandle); | |
3928 | set_entity_coords(objecthandle, objectcoordx, Pos[1], Pos[2], 1, 0, 0, 1); | |
3929 | ShowMessageOnScreen("~b~ - X Axis"); | |
3930 | return 0; | |
3931 | } | |
3932 | } | |
3933 | ||
3934 | int MoveRight(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { // was move left | |
3935 | if (DoesEntityExist(objecthandle)) { | |
3936 | float Pos[3]; | |
3937 | network_request_control_of_entity(objecthandle); | |
3938 | GetEntityCoords(objecthandle, Pos); | |
3939 | objectcoordx = Pos[0]; | |
3940 | objectcoordx += 0.1; | |
3941 | network_request_control_of_entity(objecthandle); | |
3942 | set_entity_coords(objecthandle, objectcoordx, Pos[1], Pos[2], 1, 0, 0, 1); | |
3943 | ShowMessageOnScreen("~b~ + X Axis"); | |
3944 | return 0; | |
3945 | } | |
3946 | } | |
3947 | ||
3948 | int HeadingLeft(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
3949 | if (DoesEntityExist(objecthandle)) { | |
3950 | network_request_control_of_entity(objecthandle); | |
3951 | objectyaw = get_entity_heading(objecthandle); | |
3952 | objectyaw += 2.0; | |
3953 | network_request_control_of_entity(objecthandle); | |
3954 | set_entity_rotation(objecthandle,objectpitch,objectroll,objectyaw,2,1); | |
3955 | ShowMessageOnScreen("~b~ + Yaw"); | |
3956 | return 0; | |
3957 | } | |
3958 | } | |
3959 | ||
3960 | int HeadingRight(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
3961 | if (DoesEntityExist(objecthandle)) { | |
3962 | network_request_control_of_entity(objecthandle); | |
3963 | objectyaw = get_entity_heading(objecthandle); | |
3964 | objectyaw -= 2.0; | |
3965 | network_request_control_of_entity(objecthandle); | |
3966 | set_entity_rotation(objecthandle,objectpitch,objectroll,objectyaw,2,1); | |
3967 | ShowMessageOnScreen("~b~ - Yaw"); | |
3968 | return 0; | |
3969 | } | |
3970 | } | |
3971 | ||
3972 | int ObjectFlat(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
3973 | if (DoesEntityExist(objecthandle)) { | |
3974 | network_request_control_of_entity(objecthandle); | |
3975 | objectheading = get_entity_heading(objecthandle); | |
3976 | objectroll = 0; | |
3977 | objectpitch = 0; | |
3978 | network_request_control_of_entity(objecthandle); | |
3979 | set_entity_heading(objecthandle, objectheading + 0.1); | |
3980 | ShowMessageOnScreen("~b~ Object Set Straight"); | |
3981 | return 0; | |
3982 | } | |
3983 | } | |
3984 | ||
3985 | int FreezeObject(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
3986 | if (DoesEntityExist(objecthandle)) { | |
3987 | network_request_control_of_entity(objecthandle); | |
3988 | freeze_entity_position(objecthandle, true); | |
3989 | ShowMessageOnScreen("~b~ Frozen Object"); | |
3990 | return 0; | |
3991 | } | |
3992 | } | |
3993 | ||
3994 | int UnfreezeObject(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
3995 | if (DoesEntityExist(objecthandle)) { | |
3996 | network_request_control_of_entity(objecthandle); | |
3997 | freeze_entity_position(objecthandle, false); | |
3998 | ShowMessageOnScreen("~b~ Unfrozen Object"); | |
3999 | return 0; | |
4000 | } | |
4001 | } | |
4002 | ||
4003 | int PlusPitch(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4004 | if (DoesEntityExist(objecthandle)) { | |
4005 | network_request_control_of_entity(objecthandle); | |
4006 | objectyaw = get_entity_heading(objecthandle); | |
4007 | objectpitch = get_entity_pitch(objecthandle); | |
4008 | objectpitch += 1.0; | |
4009 | network_request_control_of_entity(objecthandle); | |
4010 | set_entity_rotation(objecthandle,objectpitch,objectroll,objectyaw,2,1); | |
4011 | ShowMessageOnScreen("~b~ + Pitch"); | |
4012 | return 0; | |
4013 | } | |
4014 | } | |
4015 | ||
4016 | int MinusPitch(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4017 | if (DoesEntityExist(objecthandle)) { | |
4018 | network_request_control_of_entity(objecthandle); | |
4019 | objectyaw = get_entity_heading(objecthandle); | |
4020 | objectpitch = get_entity_pitch(objecthandle); | |
4021 | objectpitch -= 1.0; | |
4022 | network_request_control_of_entity(objecthandle); | |
4023 | set_entity_rotation(objecthandle,objectpitch,objectroll,objectyaw,2,1); | |
4024 | ShowMessageOnScreen("~b~ - Pitch"); | |
4025 | return 0; | |
4026 | } | |
4027 | } | |
4028 | ||
4029 | int PlusRoll(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4030 | if (DoesEntityExist(objecthandle)) { | |
4031 | network_request_control_of_entity(objecthandle); | |
4032 | objectyaw = get_entity_heading(objecthandle); | |
4033 | objectpitch = get_entity_pitch(objecthandle); | |
4034 | objectroll += 1.0; | |
4035 | network_request_control_of_entity(objecthandle); | |
4036 | set_entity_rotation(objecthandle,objectpitch,objectroll,objectyaw,2,1); | |
4037 | ShowMessageOnScreen("~b~ + Roll"); | |
4038 | return 0; | |
4039 | } | |
4040 | } | |
4041 | ||
4042 | int MinusRoll(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4043 | if (DoesEntityExist(objecthandle)) { | |
4044 | network_request_control_of_entity(objecthandle); | |
4045 | objectyaw = get_entity_heading(objecthandle); | |
4046 | objectpitch = get_entity_pitch(objecthandle); | |
4047 | objectroll -= 1.0; | |
4048 | network_request_control_of_entity(objecthandle); | |
4049 | set_entity_rotation(objecthandle,objectpitch,objectroll,objectyaw,2,1); | |
4050 | ShowMessageOnScreen("~b~ - Roll"); | |
4051 | return 0; | |
4052 | } | |
4053 | } | |
4054 | ||
4055 | int BoarModel(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4056 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
4057 | scriptsetModel = 0xCE5FF074; | |
4058 | return 0; | |
4059 | } | |
4060 | ||
4061 | int FootModel(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4062 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
4063 | scriptsetModel = 1641334641; | |
4064 | return 0; | |
4065 | } | |
4066 | ||
4067 | int JesusModel(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4068 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
4069 | scriptsetModel = 3459037009; | |
4070 | return 0; | |
4071 | } | |
4072 | ||
4073 | int RangerModel(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4074 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
4075 | scriptsetModel = 1011059922; | |
4076 | return 0; | |
4077 | } | |
4078 | ||
4079 | int MexicanModel(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4080 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
4081 | scriptsetModel = 3367706194; | |
4082 | return 0; | |
4083 | } | |
4084 | ||
4085 | int ChopModel(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4086 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
4087 | scriptsetModel = 0x14EC17EA; | |
4088 | return 0; | |
4089 | } | |
4090 | ||
4091 | int ChopModel1(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4092 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
4093 | scriptsetModel = 0x14EC17EA; | |
4094 | return 0; | |
4095 | } | |
4096 | ||
4097 | int CoyoteModel(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4098 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
4099 | scriptsetModel = 0x644AC75E; | |
4100 | return 0; | |
4101 | } | |
4102 | ||
4103 | int HuskyModel(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4104 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
4105 | scriptsetModel = 0x4E8F95A2; | |
4106 | return 0; | |
4107 | } | |
4108 | ||
4109 | int MtLion(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4110 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
4111 | scriptsetModel = 0x1250D7BA; | |
4112 | return 0; | |
4113 | } | |
4114 | ||
4115 | int ShepModel(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4116 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
4117 | scriptsetModel = 0x431FC24C; | |
4118 | return 0; | |
4119 | } | |
4120 | ||
4121 | int ChimpModel(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4122 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
4123 | scriptsetModel = -1469565163; | |
4124 | return 0; | |
4125 | } | |
4126 | ||
4127 | int RetModel(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4128 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
4129 | scriptsetModel = 0x349F33E1; | |
4130 | return 0; | |
4131 | } | |
4132 | ||
4133 | int PigModel(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4134 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
4135 | scriptsetModel = 0xB11BAB56; | |
4136 | return 0; | |
4137 | } | |
4138 | ||
4139 | int RotModel(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4140 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
4141 | scriptsetModel = 0x9563221D; | |
4142 | return 0; | |
4143 | } | |
4144 | ||
4145 | int ZombieModel(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4146 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
4147 | scriptsetModel = 0xAC4B4506; | |
4148 | return 0; | |
4149 | } | |
4150 | ||
4151 | int GunmanModel(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4152 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
4153 | scriptsetModel = 0xB881AEE; | |
4154 | return 0; | |
4155 | } | |
4156 | ||
4157 | int PrisonnModel(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4158 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
4159 | scriptsetModel = 0xB1BB9B59; | |
4160 | return 0; | |
4161 | } | |
4162 | ||
4163 | int SwatModel(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4164 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
4165 | scriptsetModel = 0x8D8F1B10; | |
4166 | return 0; | |
4167 | } | |
4168 | ||
4169 | int ClownModel(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4170 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
4171 | scriptsetModel = 0x4498DDE; | |
4172 | return 0; | |
4173 | } | |
4174 | ||
4175 | int Bugstars(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4176 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
4177 | scriptsetModel = 0x48114518; | |
4178 | return 0; | |
4179 | } | |
4180 | ||
4181 | int Diper(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4182 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
4183 | scriptsetModel = 0x5442C66B; | |
4184 | return 0; | |
4185 | } | |
4186 | ||
4187 | int Fatso(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4188 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
4189 | scriptsetModel = 0xB5CF80E4; | |
4190 | return 0; | |
4191 | } | |
4192 | ||
4193 | int NakedMan(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4194 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
4195 | scriptsetModel = 0x55446010; | |
4196 | return 0; | |
4197 | } | |
4198 | ||
4199 | int SpaceMan(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4200 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
4201 | scriptsetModel = 0xE7B31432; | |
4202 | return 0; | |
4203 | } | |
4204 | ||
4205 | int StatueMan(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4206 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
4207 | scriptsetModel = 0x795AC7A8; | |
4208 | return 0; | |
4209 | } | |
4210 | ||
4211 | int Johhny(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4212 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
4213 | scriptsetModel = 0x87CA80AE; | |
4214 | return 0; | |
4215 | } | |
4216 | ||
4217 | int FBI(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4218 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
4219 | scriptsetModel = 0x3AE4A33B; | |
4220 | return 0; | |
4221 | } | |
4222 | ||
4223 | bool norandomcomps = false; | |
4224 | int Micheal(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4225 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
4226 | scriptsetModel = 0xD7114C9; | |
4227 | norandomcomps = true; | |
4228 | return 0; | |
4229 | } | |
4230 | ||
4231 | int Hippy(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4232 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
4233 | scriptsetModel = -2126242959; | |
4234 | //norandomcomps = true; | |
4235 | return 0; | |
4236 | } | |
4237 | ||
4238 | int Gangster(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4239 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
4240 | scriptsetModel = -1031795266; | |
4241 | return 0; | |
4242 | } | |
4243 | ||
4244 | int Trevor(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4245 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
4246 | scriptsetModel = 0x9B810FA2; | |
4247 | norandomcomps = true; | |
4248 | return 0; | |
4249 | } | |
4250 | ||
4251 | int Franklin(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4252 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
4253 | scriptsetModel = 0x9B22DBAF; | |
4254 | norandomcomps = true; | |
4255 | return 0; | |
4256 | } | |
4257 | ||
4258 | int LolWander(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4259 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
4260 | animid = subMenuIndex; | |
4261 | MakePlayerComeTome(subMenuIndex); | |
4262 | return 0; | |
4263 | } | |
4264 | bool telefoot_prison = false; | |
4265 | int PrisonTele(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4266 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
4267 | animid = subMenuIndex; | |
4268 | telefoot_prison = true; | |
4269 | return 0; | |
4270 | } | |
4271 | ||
4272 | int TeleportWayOnline(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4273 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
4274 | animid = subMenuIndex; | |
4275 | telefoot_way = true; | |
4276 | return 0; | |
4277 | } | |
4278 | ||
4279 | int LolWanderTele(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4280 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
4281 | animid = subMenuIndex; | |
4282 | MakePlayerComeTomeFoot(subMenuIndex); | |
4283 | return 0; | |
4284 | } | |
4285 | ||
4286 | ||
4287 | int KidNap(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4288 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
4289 | animid = subMenuIndex; | |
4290 | nap = true; | |
4291 | return 0; | |
4292 | } | |
4293 | ||
4294 | int PlayerLeave(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4295 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
4296 | animid = subMenuIndex; | |
4297 | kidnap = true; | |
4298 | return 0; | |
4299 | } | |
4300 | ||
4301 | ||
4302 | bool vm_anim = false; | |
4303 | int StunLoop(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4304 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
4305 | animdict = "ragdoll@human"; | |
4306 | anim = "electrocute"; | |
4307 | animid = subMenuIndex; | |
4308 | vm_anim = true; | |
4309 | return 0; | |
4310 | } | |
4311 | ||
4312 | int FireLoop(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4313 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
4314 | animdict = "ragdoll@human"; | |
4315 | anim = "on_fire"; | |
4316 | animid = subMenuIndex; | |
4317 | vm_anim = true; | |
4318 | return 0; | |
4319 | } | |
4320 | ||
4321 | int PoleDance(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4322 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
4323 | animdict = "mini@strip_club@pole_dance@pole_dance1"; | |
4324 | anim = "pd_dance_01"; | |
4325 | animid = subMenuIndex; | |
4326 | vm_anim = true; | |
4327 | return 0; | |
4328 | } | |
4329 | ||
4330 | int PoleDance2(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4331 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
4332 | animdict = "mini@strip_club@pole_dance@pole_dance2"; | |
4333 | anim = "pd_dance_02"; | |
4334 | animid = subMenuIndex; | |
4335 | vm_anim = true; | |
4336 | return 0; | |
4337 | } | |
4338 | ||
4339 | int PoleDance3(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4340 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
4341 | animdict = "mini@strip_club@pole_dance@pole_dance3"; | |
4342 | anim = "pd_dance_03"; | |
4343 | animid = subMenuIndex; | |
4344 | vm_anim = true; | |
4345 | return 0; | |
4346 | } | |
4347 | ||
4348 | int PrivateDance(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4349 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
4350 | animdict = "mini@strip_club@private_dance@part1"; | |
4351 | anim = "priv_dance_p1"; | |
4352 | animid = subMenuIndex; | |
4353 | vm_anim = true; | |
4354 | return 0; | |
4355 | } | |
4356 | ||
4357 | int FuckAir(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4358 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
4359 | animdict = "rcmpaparazzo_2"; | |
4360 | anim = "shag_loop_a"; | |
4361 | animid = subMenuIndex; | |
4362 | vm_anim = true; | |
4363 | return 0; | |
4364 | } | |
4365 | ||
4366 | int FuckAir2(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4367 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
4368 | animdict = "rcmpaparazzo_2"; | |
4369 | anim = "shag_loop_poppy"; | |
4370 | animid = subMenuIndex; | |
4371 | vm_anim = true; | |
4372 | return 0; | |
4373 | } | |
4374 | ||
4375 | int Tazer(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4376 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
4377 | animdict = "stungun@sitting"; | |
4378 | anim = "damage_vehicle"; | |
4379 | animid = subMenuIndex; | |
4380 | vm_anim = true; | |
4381 | return 0; | |
4382 | } | |
4383 | ||
4384 | int Tazer2(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4385 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
4386 | animdict = "stungun@standing"; | |
4387 | anim = "damage"; | |
4388 | animid = subMenuIndex; | |
4389 | vm_anim = true; | |
4390 | return 0; | |
4391 | } | |
4392 | ||
4393 | int ProsMale(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4394 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
4395 | animdict = "mini@prostitutes@sexnorm_veh"; | |
4396 | anim = "sex_loop_male"; | |
4397 | animid = subMenuIndex; | |
4398 | vm_anim = true; | |
4399 | return 0; | |
4400 | } | |
4401 | ||
4402 | int ProsFemale(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4403 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
4404 | animdict = "mini@prostitutes@sexnorm_veh"; | |
4405 | anim = "sex_loop_prostitute"; | |
4406 | animid = subMenuIndex; | |
4407 | vm_anim = true; | |
4408 | return 0; | |
4409 | } | |
4410 | ||
4411 | int BJMale(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4412 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
4413 | animdict = "mini@prostitutes@sexnorm_veh"; | |
4414 | anim = "bj_loop_male"; | |
4415 | animid = subMenuIndex; | |
4416 | vm_anim = true; | |
4417 | return 0; | |
4418 | } | |
4419 | ||
4420 | int BJFemale(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4421 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
4422 | animdict = "mini@prostitutes@sexnorm_veh"; | |
4423 | anim = "bj_loop_prostitute"; | |
4424 | animid = subMenuIndex; | |
4425 | vm_anim = true; | |
4426 | return 0; | |
4427 | } | |
4428 | ||
4429 | int Situps(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4430 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
4431 | animdict = "amb@world_human_sit_ups@male@base"; | |
4432 | anim = "base"; | |
4433 | animid = subMenuIndex; | |
4434 | vm_anim = true; | |
4435 | return 0; | |
4436 | }// | |
4437 | ||
4438 | int Pushups(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4439 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
4440 | animdict = "amb@world_human_push_ups@male@base"; | |
4441 | anim = "base"; | |
4442 | animid = subMenuIndex; | |
4443 | vm_anim = true; | |
4444 | return 0; | |
4445 | } | |
4446 | ||
4447 | int ArmsWave(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4448 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
4449 | animdict = "random@car_thief@victimpoints_ig_3"; | |
4450 | anim = "arms_waving"; | |
4451 | animid = subMenuIndex; | |
4452 | vm_anim = true; | |
4453 | return 0; | |
4454 | } | |
4455 | ||
4456 | int Chop(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4457 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
4458 | animdict = "creatures@rottweiler@amb@"; | |
4459 | anim = "hump_loop_chop"; | |
4460 | animid = PlayerId(); | |
4461 | vm_anim = true; | |
4462 | return 0; | |
4463 | } | |
4464 | ||
4465 | int ChopF(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4466 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
4467 | animdict = "creatures@rottweiler@amb@"; | |
4468 | anim = "hump_loop_ladydog"; | |
4469 | animid = PlayerId(); | |
4470 | vm_anim = true; | |
4471 | return 0; | |
4472 | } | |
4473 | ||
4474 | int CopKneel(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4475 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
4476 | animdict = "random@arrests"; | |
4477 | anim = "kneeling_arrest_idle"; | |
4478 | animid = subMenuIndex; | |
4479 | vm_anim = true; | |
4480 | return 0; | |
4481 | } | |
4482 | ||
4483 | int CopHands(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4484 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
4485 | animdict = "creatures@rottweiler@move"; | |
4486 | anim = "dump_enter"; | |
4487 | animid = PlayerId(); | |
4488 | vm_anim = true; | |
4489 | return 0; | |
4490 | } | |
4491 | ||
4492 | void enablevehmods() { | |
4493 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4494 | set_vehicle_mod_kit(vehicle, 0); | |
4495 | } | |
4496 | bool wheelsmodded = false; | |
4497 | int StockTyres(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4498 | enablevehmods(); | |
4499 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4500 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
4501 | ShowMessageOnScreen("~b~ Stock tyres applied, If your wheels changed with the tyres just change your wheels in the menu!"); | |
4502 | return 0; | |
4503 | } | |
4504 | ||
4505 | int CustomTyres(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4506 | enablevehmods(); | |
4507 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4508 | set_vehicle_mod(vehicle, 23, wheel, 1); | |
4509 | ShowMessageOnScreen("~b~ Custom tyres applied, If your wheels changed with the tyres just change your wheels in the menu!"); | |
4510 | return 0; | |
4511 | } | |
4512 | ||
4513 | int BpTyres(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4514 | enablevehmods(); | |
4515 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4516 | set_vehicle_tyres_can_burst(vehicle, 0); | |
4517 | ShowMessageOnScreen("~b~ Your tyres are now bulletproof!"); | |
4518 | return 0; | |
4519 | } | |
4520 | ||
4521 | int NoArmour(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4522 | enablevehmods(); | |
4523 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4524 | remove_vehicle_mod(vehicle, 16); | |
4525 | ShowMessageOnScreen("~b~ Armour removed"); | |
4526 | return 0; | |
4527 | } | |
4528 | ||
4529 | int StockWheels(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4530 | enablevehmods(); | |
4531 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4532 | remove_vehicle_mod(vehicle, 23); | |
4533 | ShowMessageOnScreen("~b~ Stock wheels applied"); | |
4534 | return 0; | |
4535 | } | |
4536 | int Smoke0(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4537 | enablevehmods(); | |
4538 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4539 | set_vehicle_tyre_smoke_color(vehicle, 255, 0, 0); | |
4540 | ShowMessageOnScreen("~b~ Red tyre smoke applied"); | |
4541 | return 0; | |
4542 | } | |
4543 | int Smoke1(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4544 | enablevehmods(); | |
4545 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4546 | set_vehicle_tyre_smoke_color(vehicle, 0, 255, 0); | |
4547 | ShowMessageOnScreen("~b~ Green tyre smoke applied"); | |
4548 | return 0; | |
4549 | } | |
4550 | int Smoke2(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4551 | enablevehmods(); | |
4552 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4553 | set_vehicle_tyre_smoke_color(vehicle, 0, 0, 255); | |
4554 | ShowMessageOnScreen("~b~ Blue tyre smoke applied"); | |
4555 | return 0; | |
4556 | } | |
4557 | int Smoke3(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4558 | enablevehmods(); | |
4559 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4560 | set_vehicle_tyre_smoke_color(vehicle, 127, 0, 255); | |
4561 | ShowMessageOnScreen("~b~ Purple tyre smoke applied"); | |
4562 | return 0; | |
4563 | } | |
4564 | int Smoke4(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4565 | enablevehmods(); | |
4566 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4567 | set_vehicle_tyre_smoke_color(vehicle, 255, 51, 255); | |
4568 | ShowMessageOnScreen("~b~ Pink tyre smoke applied"); | |
4569 | return 0; | |
4570 | } | |
4571 | int Smoke5(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4572 | enablevehmods(); | |
4573 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4574 | set_vehicle_tyre_smoke_color(vehicle, 102, 178, 255); | |
4575 | ShowMessageOnScreen("~b~ Sky blue tyre smoke applied"); | |
4576 | return 0; | |
4577 | } | |
4578 | int Smoke6(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4579 | enablevehmods(); | |
4580 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4581 | set_vehicle_tyre_smoke_color(vehicle, 255, 128, 0); | |
4582 | ShowMessageOnScreen("~b~ Orange tyre smoke applied"); | |
4583 | return 0; | |
4584 | } | |
4585 | int Smoke7(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4586 | enablevehmods(); | |
4587 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4588 | set_vehicle_tyre_smoke_color(vehicle, 255, 255, 0); | |
4589 | ShowMessageOnScreen("~b~ Yellow tyre smoke applied"); | |
4590 | return 0; | |
4591 | } | |
4592 | int Smoke8(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4593 | enablevehmods(); | |
4594 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4595 | set_vehicle_tyre_smoke_color(vehicle, 0, 255, 255); | |
4596 | ShowMessageOnScreen("~b~ Cyan tyre smoke applied"); | |
4597 | return 0; | |
4598 | } | |
4599 | int StockFb(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4600 | enablevehmods(); | |
4601 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4602 | remove_vehicle_mod(vehicle, 1); | |
4603 | ShowMessageOnScreen("~b~ Stock front bumper installed"); | |
4604 | return 0; | |
4605 | } | |
4606 | bool turbo_check = false; | |
4607 | int TurboToggle(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4608 | enablevehmods(); | |
4609 | if (!turbo_check) { | |
4610 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4611 | toggle_vehicle_mod(vehicle, 18, 1); | |
4612 | ShowMessageOnScreen("~b~ Turbo installed"); | |
4613 | turbo_check = true; | |
4614 | } | |
4615 | else if (turbo_check) { | |
4616 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4617 | toggle_vehicle_mod(vehicle, 18, 0); | |
4618 | ShowMessageOnScreen("~b~ Turbo uninstalled"); | |
4619 | turbo_check = false; | |
4620 | } | |
4621 | return 0; | |
4622 | } | |
4623 | ||
4624 | bool light_check = false; | |
4625 | int LightToggle(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4626 | enablevehmods(); | |
4627 | if (!light_check) { | |
4628 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4629 | toggle_vehicle_mod(vehicle, 22, 1); | |
4630 | ShowMessageOnScreen("~b~ Xenon Lights installed"); | |
4631 | light_check = true; | |
4632 | } | |
4633 | else if (light_check) { | |
4634 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4635 | toggle_vehicle_mod(vehicle, 22, 0); | |
4636 | ShowMessageOnScreen("~b~ Xenon Lights uninstalled"); | |
4637 | light_check = false; | |
4638 | } | |
4639 | return 0; | |
4640 | } | |
4641 | ||
4642 | int Tint0(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4643 | enablevehmods(); | |
4644 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4645 | set_vehicle_window_tint(vehicle, 4); | |
4646 | ShowMessageOnScreen("~b~ Tint removed!"); | |
4647 | return 0; | |
4648 | } | |
4649 | int Tint1(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4650 | enablevehmods(); | |
4651 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4652 | set_vehicle_window_tint(vehicle, 3); | |
4653 | ShowMessageOnScreen("~b~ Light tint installed!"); | |
4654 | return 0; | |
4655 | } | |
4656 | int Tint2(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4657 | enablevehmods(); | |
4658 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4659 | set_vehicle_window_tint(vehicle, 2); | |
4660 | ShowMessageOnScreen("~b~ Dark tint installed!"); | |
4661 | return 0; | |
4662 | } | |
4663 | int Tint3(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4664 | enablevehmods(); | |
4665 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4666 | set_vehicle_window_tint(vehicle, 1); | |
4667 | ShowMessageOnScreen("~b~ Limo tint installed!"); | |
4668 | return 0; | |
4669 | } | |
4670 | int Tint4(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4671 | enablevehmods(); | |
4672 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4673 | set_vehicle_window_tint(vehicle, 5); | |
4674 | ShowMessageOnScreen("~b~ Chr0m3's Black tint installed!"); | |
4675 | return 0; | |
4676 | } | |
4677 | int Tint5(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4678 | enablevehmods(); | |
4679 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4680 | set_vehicle_window_tint(vehicle, 7); | |
4681 | ShowMessageOnScreen("~b~ Chr0m3's Green tint installed!"); | |
4682 | return 0; | |
4683 | } | |
4684 | bool door0 = false; | |
4685 | int OpenDoor0(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4686 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4687 | if (!door0) { | |
4688 | set_vehicle_door_open(vehicle, 0); | |
4689 | ShowMessageOnScreen("~b~ Drivers door opened"); | |
4690 | door0 = true; | |
4691 | } | |
4692 | else if (door0) { | |
4693 | set_vehicle_door_shut(vehicle, 0); | |
4694 | ShowMessageOnScreen("~b~ Drivers door closed"); | |
4695 | door0 = false; | |
4696 | } | |
4697 | return 0; | |
4698 | } | |
4699 | bool door1 = false; | |
4700 | int OpenDoor1(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4701 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4702 | if (!door1) { | |
4703 | set_vehicle_door_open(vehicle, 1); | |
4704 | ShowMessageOnScreen("~b~ Passenger door opened"); | |
4705 | door1 = true; | |
4706 | } | |
4707 | else if (door1) { | |
4708 | set_vehicle_door_shut(vehicle, 1); | |
4709 | ShowMessageOnScreen("~b~ Passenger door closed"); | |
4710 | door1 = false; | |
4711 | } | |
4712 | return 0; | |
4713 | } | |
4714 | bool door2 = false; | |
4715 | int OpenDoor2(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4716 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4717 | if (!door2) { | |
4718 | set_vehicle_door_open(vehicle, 2); | |
4719 | ShowMessageOnScreen("~b~ Drivers rear door opened"); | |
4720 | door2 = true; | |
4721 | } | |
4722 | else if (door2) { | |
4723 | set_vehicle_door_shut(vehicle, 2); | |
4724 | ShowMessageOnScreen("~b~ Drivers rear door closed"); | |
4725 | door2 = false; | |
4726 | } | |
4727 | return 0; | |
4728 | } | |
4729 | bool door3 = false; | |
4730 | int OpenDoor3(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4731 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4732 | if (!door3) { | |
4733 | set_vehicle_door_open(vehicle, 3); | |
4734 | ShowMessageOnScreen("~b~ Passenger rear door opened"); | |
4735 | door3 = true; | |
4736 | } | |
4737 | else if (door3) { | |
4738 | set_vehicle_door_shut(vehicle, 3); | |
4739 | ShowMessageOnScreen("~b~ Passenger rear door closed"); | |
4740 | door3 = false; | |
4741 | } | |
4742 | return 0; | |
4743 | } | |
4744 | bool door4 = false; | |
4745 | int OpenDoor4(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4746 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4747 | if (!door4) { | |
4748 | set_vehicle_door_open(vehicle, 4); | |
4749 | ShowMessageOnScreen("~b~ Hood opened"); | |
4750 | door4 = true; | |
4751 | } | |
4752 | else if (door4) { | |
4753 | set_vehicle_door_shut(vehicle, 4); | |
4754 | ShowMessageOnScreen("~b~ Hood closed"); | |
4755 | door4 = false; | |
4756 | } | |
4757 | return 0; | |
4758 | } | |
4759 | bool door5 = false; | |
4760 | int OpenDoor5(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4761 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4762 | if (!door5) { | |
4763 | set_vehicle_door_open(vehicle, 5); | |
4764 | ShowMessageOnScreen("~b~ Boot opened"); | |
4765 | door5 = true; | |
4766 | } | |
4767 | else if (door5) { | |
4768 | set_vehicle_door_shut(vehicle, 5); | |
4769 | ShowMessageOnScreen("~b~ Boot closed"); | |
4770 | door5 = false; | |
4771 | } | |
4772 | return 0; | |
4773 | } | |
4774 | int RemoveHood(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4775 | enablevehmods(); | |
4776 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4777 | set_vehicle_door_broken(vehicle, 4, 1); | |
4778 | ShowMessageOnScreen("~b~ Hood removed!"); | |
4779 | return 0; | |
4780 | } | |
4781 | ||
4782 | int RemoveBoot(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4783 | enablevehmods(); | |
4784 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4785 | set_vehicle_door_broken(vehicle, 5, 1); | |
4786 | ShowMessageOnScreen("~b~ Boot Removed"); | |
4787 | return 0; | |
4788 | } | |
4789 | ||
4790 | int Armour0(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4791 | enablevehmods(); | |
4792 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4793 | set_vehicle_mod(vehicle, 16, 0, 0); | |
4794 | ShowMessageOnScreen("~b~ 20 percent Armour installed"); | |
4795 | return 0; | |
4796 | } | |
4797 | ||
4798 | int Armour1(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4799 | enablevehmods(); | |
4800 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4801 | set_vehicle_mod(vehicle, 16, 1, 0); | |
4802 | ShowMessageOnScreen("~b~ 40 percent Armour installed"); | |
4803 | return 0; | |
4804 | } | |
4805 | ||
4806 | int Armour2(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4807 | enablevehmods(); | |
4808 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4809 | set_vehicle_mod(vehicle, 16, 2, 0); | |
4810 | ShowMessageOnScreen("~b~ 60 percent Armour installed"); | |
4811 | return 0; | |
4812 | } | |
4813 | ||
4814 | int Armour3(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4815 | enablevehmods(); | |
4816 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4817 | set_vehicle_mod(vehicle, 16, 3, 0); | |
4818 | ShowMessageOnScreen("~b~ 80 percent Armour installed"); | |
4819 | return 0; | |
4820 | } | |
4821 | ||
4822 | int Armour4(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4823 | enablevehmods(); | |
4824 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4825 | set_vehicle_mod(vehicle, 16, 4, 0); | |
4826 | ShowMessageOnScreen("~b~ 100 percent Armour installed"); | |
4827 | return 0; | |
4828 | } | |
4829 | ||
4830 | int Fb0(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4831 | enablevehmods(); | |
4832 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4833 | set_vehicle_mod(vehicle, 1, 0, 0); | |
4834 | ShowMessageOnScreen("~b~ Front bumper 1 installed"); | |
4835 | return 0; | |
4836 | } | |
4837 | int Fb1(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4838 | enablevehmods(); | |
4839 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4840 | set_vehicle_mod(vehicle, 1, 1, 0); | |
4841 | ShowMessageOnScreen("~b~ Front bumper 2 installed"); | |
4842 | return 0; | |
4843 | } | |
4844 | int Fb2(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4845 | enablevehmods(); | |
4846 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4847 | set_vehicle_mod(vehicle, 1, 2, 0); | |
4848 | ShowMessageOnScreen("~b~ Front bumper 3 installed"); | |
4849 | return 0; | |
4850 | } | |
4851 | ||
4852 | int StockSk(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4853 | enablevehmods(); | |
4854 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4855 | remove_vehicle_mod(vehicle, 3); | |
4856 | ShowMessageOnScreen("~b~ Stock side skirts installed"); | |
4857 | return 0; | |
4858 | } | |
4859 | ||
4860 | int Sk0(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4861 | enablevehmods(); | |
4862 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4863 | set_vehicle_mod(vehicle, 3, 0, 0); | |
4864 | ShowMessageOnScreen("~b~ Side skirts 1 installed"); | |
4865 | return 0; | |
4866 | } | |
4867 | int Sk1(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4868 | enablevehmods(); | |
4869 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4870 | set_vehicle_mod(vehicle, 3, 1, 0); | |
4871 | ShowMessageOnScreen("~b~ Side skirts 2 installed"); | |
4872 | return 0; | |
4873 | } | |
4874 | int Sk2(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4875 | enablevehmods(); | |
4876 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4877 | set_vehicle_mod(vehicle, 3, 2, 0); | |
4878 | ShowMessageOnScreen("~b~ Side skirts 3 installed"); | |
4879 | return 0; | |
4880 | } | |
4881 | ||
4882 | int StockHood(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4883 | enablevehmods(); | |
4884 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4885 | remove_vehicle_mod(vehicle, 7); | |
4886 | ShowMessageOnScreen("~b~ Stock hood installed"); | |
4887 | return 0; | |
4888 | } | |
4889 | ||
4890 | int Hood0(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4891 | enablevehmods(); | |
4892 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4893 | set_vehicle_mod(vehicle, 7, 0, 0); | |
4894 | ShowMessageOnScreen("~b~ Hood 1 installed"); | |
4895 | return 0; | |
4896 | } | |
4897 | int Hood1(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4898 | enablevehmods(); | |
4899 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4900 | set_vehicle_mod(vehicle, 7, 1, 0); | |
4901 | ShowMessageOnScreen("~b~ Hood 2 installed"); | |
4902 | return 0; | |
4903 | } | |
4904 | int Hood2(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4905 | enablevehmods(); | |
4906 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4907 | set_vehicle_mod(vehicle, 7, 2, 0); | |
4908 | ShowMessageOnScreen("~b~ Hood 3 installed"); | |
4909 | return 0; | |
4910 | } | |
4911 | ||
4912 | int Hood3(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4913 | enablevehmods(); | |
4914 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4915 | set_vehicle_mod(vehicle, 7, 3, 0); | |
4916 | ShowMessageOnScreen("~b~ Hood 4 installed"); | |
4917 | return 0; | |
4918 | } | |
4919 | ||
4920 | int Hood4(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4921 | enablevehmods(); | |
4922 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4923 | set_vehicle_mod(vehicle, 7, 4, 0); | |
4924 | ShowMessageOnScreen("~b~ Hood 5 installed"); | |
4925 | return 0; | |
4926 | } | |
4927 | ||
4928 | int StockInterior(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4929 | enablevehmods(); | |
4930 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4931 | remove_vehicle_mod(vehicle, 5); | |
4932 | ShowMessageOnScreen("~b~ Stock interior applied"); | |
4933 | return 0; | |
4934 | } | |
4935 | ||
4936 | int Interior0(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4937 | enablevehmods(); | |
4938 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4939 | set_vehicle_mod(vehicle, 5, 0, 0); | |
4940 | ShowMessageOnScreen("~b~ Custom interior installed"); | |
4941 | return 0; | |
4942 | } | |
4943 | ||
4944 | int StockGrill(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4945 | enablevehmods(); | |
4946 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4947 | remove_vehicle_mod(vehicle, 6); | |
4948 | ShowMessageOnScreen("~b~ Stock grille installed"); | |
4949 | return 0; | |
4950 | } | |
4951 | ||
4952 | int Grill0(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4953 | enablevehmods(); | |
4954 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4955 | set_vehicle_mod(vehicle, 6, 0, 0); | |
4956 | ShowMessageOnScreen("~b~ Grille 1 installed"); | |
4957 | return 0; | |
4958 | } | |
4959 | int Grill1(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4960 | enablevehmods(); | |
4961 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4962 | set_vehicle_mod(vehicle, 6, 1, 0); | |
4963 | ShowMessageOnScreen("~b~ Grille 2 installed"); | |
4964 | return 0; | |
4965 | } | |
4966 | int Grill2(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4967 | enablevehmods(); | |
4968 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4969 | set_vehicle_mod(vehicle, 6, 2, 0); | |
4970 | ShowMessageOnScreen("~b~ Grille 3 installed"); | |
4971 | return 0; | |
4972 | } | |
4973 | ||
4974 | int StockRb(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4975 | enablevehmods(); | |
4976 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4977 | remove_vehicle_mod(vehicle, 2); | |
4978 | ShowMessageOnScreen("~b~ Stock rear bumper installed"); | |
4979 | return 0; | |
4980 | } | |
4981 | ||
4982 | int Rb0(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4983 | enablevehmods(); | |
4984 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4985 | set_vehicle_mod(vehicle, 2, 0, 0); | |
4986 | ShowMessageOnScreen("~b~ Rear bumper 1 installed"); | |
4987 | return 0; | |
4988 | } | |
4989 | int Rb1(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4990 | enablevehmods(); | |
4991 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4992 | set_vehicle_mod(vehicle, 2, 1, 0); | |
4993 | ShowMessageOnScreen("~b~ Rear bumper 2 installed"); | |
4994 | return 0; | |
4995 | } | |
4996 | int Rb2(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
4997 | enablevehmods(); | |
4998 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
4999 | set_vehicle_mod(vehicle, 2, 2, 0); | |
5000 | ShowMessageOnScreen("~b~ Rear bumper 3 installed"); | |
5001 | return 0; | |
5002 | } | |
5003 | ||
5004 | int StockSpoiler(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5005 | enablevehmods(); | |
5006 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5007 | remove_vehicle_mod(vehicle, 0); | |
5008 | ShowMessageOnScreen("~b~ Stock spoiler installed"); | |
5009 | return 0; | |
5010 | } | |
5011 | ||
5012 | int Spoiler0(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5013 | enablevehmods(); | |
5014 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5015 | set_vehicle_mod(vehicle, 0, 0, 0); | |
5016 | ShowMessageOnScreen("~b~ Spoiler 1 installed"); | |
5017 | return 0; | |
5018 | } | |
5019 | int Spoiler1(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5020 | enablevehmods(); | |
5021 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5022 | set_vehicle_mod(vehicle, 0, 1, 0); | |
5023 | ShowMessageOnScreen("~b~ Spoiler 2 installed"); | |
5024 | return 0; | |
5025 | } | |
5026 | int Spoiler2(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5027 | enablevehmods(); | |
5028 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5029 | set_vehicle_mod(vehicle, 0, 2, 0); | |
5030 | ShowMessageOnScreen("~b~ Spoiler 3 installed"); | |
5031 | return 0; | |
5032 | } | |
5033 | ||
5034 | int ExStock(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5035 | enablevehmods(); | |
5036 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5037 | remove_vehicle_mod(vehicle, 4); | |
5038 | ShowMessageOnScreen("~b~ Stock exhaust installed"); | |
5039 | return 0; | |
5040 | } | |
5041 | ||
5042 | int Ex0(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5043 | enablevehmods(); | |
5044 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5045 | set_vehicle_mod(vehicle, 4, 0, 0); | |
5046 | ShowMessageOnScreen("~b~ Exhaust 1 installed"); | |
5047 | return 0; | |
5048 | } | |
5049 | int Ex1(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5050 | enablevehmods(); | |
5051 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5052 | set_vehicle_mod(vehicle, 4, 1, 0); | |
5053 | ShowMessageOnScreen("~b~ Exhaust 2 installed"); | |
5054 | return 0; | |
5055 | } | |
5056 | int Ex2(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5057 | enablevehmods(); | |
5058 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5059 | set_vehicle_mod(vehicle, 4, 2, 0); | |
5060 | ShowMessageOnScreen("~b~ Exhaust 2 installed"); | |
5061 | return 0; | |
5062 | } | |
5063 | ||
5064 | ||
5065 | int SuspStock(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5066 | enablevehmods(); | |
5067 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5068 | remove_vehicle_mod(vehicle, 15); | |
5069 | ShowMessageOnScreen("~b~ Stock suspension installed"); | |
5070 | return 0; | |
5071 | } | |
5072 | ||
5073 | int Susp0(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5074 | enablevehmods(); | |
5075 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5076 | set_vehicle_mod(vehicle, 15, 0, 0); | |
5077 | ShowMessageOnScreen("~b~ Lowered suspension installed"); | |
5078 | return 0; | |
5079 | } | |
5080 | ||
5081 | int Susp1(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5082 | enablevehmods(); | |
5083 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5084 | set_vehicle_mod(vehicle, 15, 1, 0); | |
5085 | ShowMessageOnScreen("~b~ Street suspension installed"); | |
5086 | return 0; | |
5087 | } | |
5088 | ||
5089 | int Susp2(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5090 | enablevehmods(); | |
5091 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5092 | set_vehicle_mod(vehicle, 15, 2, 0); | |
5093 | ShowMessageOnScreen("~b~ Sports suspension installed"); | |
5094 | return 0; | |
5095 | } | |
5096 | int Susp3(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5097 | enablevehmods(); | |
5098 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5099 | set_vehicle_mod(vehicle, 15, 3, 0); | |
5100 | ShowMessageOnScreen("~b~ Competition suspension installed"); | |
5101 | return 0; | |
5102 | } | |
5103 | ||
5104 | int BrakeStock(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5105 | enablevehmods(); | |
5106 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5107 | remove_vehicle_mod(vehicle, 12); | |
5108 | ShowMessageOnScreen("~b~ Stock brakes installed"); | |
5109 | return 0; | |
5110 | } | |
5111 | ||
5112 | int Brake0(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5113 | enablevehmods(); | |
5114 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5115 | set_vehicle_mod(vehicle, 12, 0, 0); | |
5116 | ShowMessageOnScreen("~b~ Street brakes installed"); | |
5117 | return 0; | |
5118 | } | |
5119 | ||
5120 | int Brake1(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5121 | enablevehmods(); | |
5122 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5123 | set_vehicle_mod(vehicle, 12, 1, 0); | |
5124 | ShowMessageOnScreen("~b~ Sports brakes installed"); | |
5125 | return 0; | |
5126 | } | |
5127 | ||
5128 | int Brake2(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5129 | enablevehmods(); | |
5130 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5131 | set_vehicle_mod(vehicle, 12, 2, 0); | |
5132 | ShowMessageOnScreen("~b~ Race brakes installed"); | |
5133 | return 0; | |
5134 | } | |
5135 | ||
5136 | int TranStock(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5137 | enablevehmods(); | |
5138 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5139 | remove_vehicle_mod(vehicle, 13); | |
5140 | ShowMessageOnScreen("~b~ Stock transmission installed"); | |
5141 | return 0; | |
5142 | } | |
5143 | int Tran0(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5144 | enablevehmods(); | |
5145 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5146 | set_vehicle_mod(vehicle, 13, 0, 0); | |
5147 | ShowMessageOnScreen("~b~ Street transmission installed"); | |
5148 | return 0; | |
5149 | } | |
5150 | int Tran1(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5151 | enablevehmods(); | |
5152 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5153 | set_vehicle_mod(vehicle, 13, 1, 0); | |
5154 | ShowMessageOnScreen("~b~ Sports transmission installed"); | |
5155 | return 0; | |
5156 | } | |
5157 | int Tran2(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5158 | enablevehmods(); | |
5159 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5160 | set_vehicle_mod(vehicle, 13, 2, 0); | |
5161 | ShowMessageOnScreen("~b~ Race transmission installed"); | |
5162 | return 0; | |
5163 | } | |
5164 | int EngineStock(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5165 | enablevehmods(); | |
5166 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5167 | remove_vehicle_mod(vehicle, 11); | |
5168 | ShowMessageOnScreen("~b~ Stock engine installed"); | |
5169 | return 0; | |
5170 | } | |
5171 | int Engine0(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5172 | enablevehmods(); | |
5173 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5174 | set_vehicle_mod(vehicle, 11, 0, 0); | |
5175 | ShowMessageOnScreen("~b~ New engine has been installed!"); | |
5176 | return 0; | |
5177 | } | |
5178 | int Engine1(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5179 | enablevehmods(); | |
5180 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5181 | set_vehicle_mod(vehicle, 11, 1, 0); | |
5182 | ShowMessageOnScreen("~b~ New engine has been installed!"); | |
5183 | return 0; | |
5184 | } | |
5185 | int Engine2(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5186 | enablevehmods(); | |
5187 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5188 | set_vehicle_mod(vehicle, 11, 2, 0); | |
5189 | ShowMessageOnScreen("~b~ New engine has been installed!"); | |
5190 | return 0; | |
5191 | } | |
5192 | int Engine3(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5193 | enablevehmods(); | |
5194 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5195 | set_vehicle_mod(vehicle, 11, 3, 0); | |
5196 | ShowMessageOnScreen("~b~ New engine has been installed!"); | |
5197 | return 0; | |
5198 | } | |
5199 | ||
5200 | int HighEnd0(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5201 | enablevehmods(); | |
5202 | wheel = 0; | |
5203 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5204 | set_vehicle_wheel_type(vehicle, 7); | |
5205 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5206 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5207 | return 0; | |
5208 | } | |
5209 | ||
5210 | int HighEnd1(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5211 | enablevehmods(); | |
5212 | wheel = 1; | |
5213 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5214 | set_vehicle_wheel_type(vehicle, 7); | |
5215 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5216 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5217 | return 0; | |
5218 | } | |
5219 | ||
5220 | int HighEnd2(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5221 | enablevehmods(); | |
5222 | wheel = 2; | |
5223 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5224 | set_vehicle_wheel_type(vehicle, 7); | |
5225 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5226 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5227 | return 0; | |
5228 | } | |
5229 | ||
5230 | int HighEnd3(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5231 | enablevehmods(); | |
5232 | wheel = 3; | |
5233 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5234 | set_vehicle_wheel_type(vehicle, 7); | |
5235 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5236 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5237 | return 0; | |
5238 | } | |
5239 | ||
5240 | int HighEnd4(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5241 | enablevehmods(); | |
5242 | wheel = 4; | |
5243 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5244 | set_vehicle_wheel_type(vehicle, 7); | |
5245 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5246 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5247 | return 0; | |
5248 | } | |
5249 | int HighEnd5(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5250 | enablevehmods(); | |
5251 | wheel = 5; | |
5252 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5253 | set_vehicle_wheel_type(vehicle, 7); | |
5254 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5255 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5256 | return 0; | |
5257 | } | |
5258 | int HighEnd6(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5259 | enablevehmods(); | |
5260 | wheel = 6; | |
5261 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5262 | set_vehicle_wheel_type(vehicle, 7); | |
5263 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5264 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5265 | return 0; | |
5266 | } | |
5267 | int HighEnd7(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5268 | enablevehmods(); | |
5269 | wheel = 7; | |
5270 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5271 | set_vehicle_wheel_type(vehicle, 7); | |
5272 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5273 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5274 | return 0; | |
5275 | } | |
5276 | int HighEnd8(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5277 | enablevehmods(); | |
5278 | wheel = 8; | |
5279 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5280 | set_vehicle_wheel_type(vehicle, 7); | |
5281 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5282 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5283 | return 0; | |
5284 | } | |
5285 | int HighEnd9(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5286 | enablevehmods(); | |
5287 | wheel = 9; | |
5288 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5289 | set_vehicle_wheel_type(vehicle, 7); | |
5290 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5291 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5292 | return 0; | |
5293 | } | |
5294 | int HighEnd10(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5295 | enablevehmods(); | |
5296 | wheel = 10; | |
5297 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5298 | set_vehicle_wheel_type(vehicle, 7); | |
5299 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5300 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5301 | return 0; | |
5302 | } | |
5303 | int HighEnd11(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5304 | enablevehmods(); | |
5305 | wheel = 11; | |
5306 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5307 | set_vehicle_wheel_type(vehicle, 7); | |
5308 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5309 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5310 | return 0; | |
5311 | } | |
5312 | int HighEnd12(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5313 | enablevehmods(); | |
5314 | wheel = 12; | |
5315 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5316 | set_vehicle_wheel_type(vehicle, 7); | |
5317 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5318 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5319 | return 0; | |
5320 | } | |
5321 | int HighEnd13(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5322 | enablevehmods(); | |
5323 | wheel = 13; | |
5324 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5325 | set_vehicle_wheel_type(vehicle, 7); | |
5326 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5327 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5328 | return 0; | |
5329 | } | |
5330 | int HighEnd14(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5331 | enablevehmods(); | |
5332 | wheel = 14; | |
5333 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5334 | set_vehicle_wheel_type(vehicle, 7); | |
5335 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5336 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5337 | return 0; | |
5338 | } | |
5339 | int HighEnd15(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5340 | enablevehmods(); | |
5341 | wheel = 15; | |
5342 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5343 | set_vehicle_wheel_type(vehicle, 7); | |
5344 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5345 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5346 | return 0; | |
5347 | } | |
5348 | int HighEnd16(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5349 | enablevehmods(); | |
5350 | wheel = 16; | |
5351 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5352 | set_vehicle_wheel_type(vehicle, 7); | |
5353 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5354 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5355 | return 0; | |
5356 | } | |
5357 | int HighEnd17(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5358 | enablevehmods(); | |
5359 | wheel = 17; | |
5360 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5361 | set_vehicle_wheel_type(vehicle, 7); | |
5362 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5363 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5364 | return 0; | |
5365 | } | |
5366 | int HighEnd18(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5367 | enablevehmods(); | |
5368 | wheel = 18; | |
5369 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5370 | set_vehicle_wheel_type(vehicle, 7); | |
5371 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5372 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5373 | return 0; | |
5374 | } | |
5375 | int HighEnd19(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5376 | enablevehmods(); | |
5377 | wheel = 19; | |
5378 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5379 | set_vehicle_wheel_type(vehicle, 7); | |
5380 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5381 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5382 | return 0; | |
5383 | } | |
5384 | ||
5385 | int Lowrider0(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5386 | enablevehmods(); | |
5387 | wheel = 0; | |
5388 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5389 | set_vehicle_wheel_type(vehicle, 2); | |
5390 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5391 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5392 | return 0; | |
5393 | } | |
5394 | ||
5395 | int Lowrider1(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5396 | enablevehmods(); | |
5397 | wheel = 1; | |
5398 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5399 | set_vehicle_wheel_type(vehicle, 2); | |
5400 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5401 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5402 | return 0; | |
5403 | } | |
5404 | ||
5405 | int Lowrider2(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5406 | enablevehmods(); | |
5407 | wheel = 2; | |
5408 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5409 | set_vehicle_wheel_type(vehicle, 2); | |
5410 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5411 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5412 | return 0; | |
5413 | } | |
5414 | ||
5415 | int Lowrider3(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5416 | enablevehmods(); | |
5417 | wheel = 3; | |
5418 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5419 | set_vehicle_wheel_type(vehicle, 2); | |
5420 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5421 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5422 | return 0; | |
5423 | } | |
5424 | ||
5425 | int Lowrider4(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5426 | enablevehmods(); | |
5427 | wheel = 4; | |
5428 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5429 | set_vehicle_wheel_type(vehicle, 2); | |
5430 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5431 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5432 | return 0; | |
5433 | } | |
5434 | int Lowrider5(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5435 | enablevehmods(); | |
5436 | wheel = 5; | |
5437 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5438 | set_vehicle_wheel_type(vehicle, 2); | |
5439 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5440 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5441 | return 0; | |
5442 | } | |
5443 | int Lowrider6(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5444 | enablevehmods(); | |
5445 | wheel = 6; | |
5446 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5447 | set_vehicle_wheel_type(vehicle, 2); | |
5448 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5449 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5450 | return 0; | |
5451 | } | |
5452 | int Lowrider7(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5453 | enablevehmods(); | |
5454 | wheel = 7; | |
5455 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5456 | set_vehicle_wheel_type(vehicle, 2); | |
5457 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5458 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5459 | return 0; | |
5460 | } | |
5461 | int Lowrider8(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5462 | enablevehmods(); | |
5463 | wheel = 8; | |
5464 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5465 | set_vehicle_wheel_type(vehicle, 2); | |
5466 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5467 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5468 | return 0; | |
5469 | } | |
5470 | int Lowrider9(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5471 | enablevehmods(); | |
5472 | wheel = 9; | |
5473 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5474 | set_vehicle_wheel_type(vehicle, 2); | |
5475 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5476 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5477 | return 0; | |
5478 | } | |
5479 | int Lowrider10(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5480 | enablevehmods(); | |
5481 | wheel = 10; | |
5482 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5483 | set_vehicle_wheel_type(vehicle, 2); | |
5484 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5485 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5486 | return 0; | |
5487 | } | |
5488 | int Lowrider11(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5489 | enablevehmods(); | |
5490 | wheel = 11; | |
5491 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5492 | set_vehicle_wheel_type(vehicle, 2); | |
5493 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5494 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5495 | return 0; | |
5496 | } | |
5497 | int Lowrider12(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5498 | enablevehmods(); | |
5499 | wheel = 12; | |
5500 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5501 | set_vehicle_wheel_type(vehicle, 2); | |
5502 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5503 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5504 | return 0; | |
5505 | } | |
5506 | int Lowrider13(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5507 | enablevehmods(); | |
5508 | wheel = 13; | |
5509 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5510 | set_vehicle_wheel_type(vehicle, 2); | |
5511 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5512 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5513 | return 0; | |
5514 | } | |
5515 | int Lowrider14(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5516 | enablevehmods(); | |
5517 | wheel = 14; | |
5518 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5519 | set_vehicle_wheel_type(vehicle, 2); | |
5520 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5521 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5522 | return 0; | |
5523 | } | |
5524 | ||
5525 | int Muscle0(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5526 | enablevehmods(); | |
5527 | wheel = 0; | |
5528 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5529 | set_vehicle_wheel_type(vehicle, 1); | |
5530 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5531 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5532 | return 0; | |
5533 | } | |
5534 | ||
5535 | int Muscle1(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5536 | enablevehmods(); | |
5537 | wheel = 1; | |
5538 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5539 | set_vehicle_wheel_type(vehicle, 1); | |
5540 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5541 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5542 | return 0; | |
5543 | } | |
5544 | ||
5545 | int Muscle2(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5546 | enablevehmods(); | |
5547 | wheel = 2; | |
5548 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5549 | set_vehicle_wheel_type(vehicle, 1); | |
5550 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5551 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5552 | return 0; | |
5553 | } | |
5554 | ||
5555 | int Muscle3(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5556 | enablevehmods(); | |
5557 | wheel = 3; | |
5558 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5559 | set_vehicle_wheel_type(vehicle, 1); | |
5560 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5561 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5562 | return 0; | |
5563 | } | |
5564 | ||
5565 | int Muscle4(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5566 | enablevehmods(); | |
5567 | wheel = 4; | |
5568 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5569 | set_vehicle_wheel_type(vehicle, 1); | |
5570 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5571 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5572 | return 0; | |
5573 | } | |
5574 | int Muscle5(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5575 | enablevehmods(); | |
5576 | wheel = 5; | |
5577 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5578 | set_vehicle_wheel_type(vehicle, 1); | |
5579 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5580 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5581 | return 0; | |
5582 | } | |
5583 | int Muscle6(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5584 | enablevehmods(); | |
5585 | wheel = 6; | |
5586 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5587 | set_vehicle_wheel_type(vehicle, 1); | |
5588 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5589 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5590 | return 0; | |
5591 | } | |
5592 | int Muscle7(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5593 | enablevehmods(); | |
5594 | wheel = 7; | |
5595 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5596 | set_vehicle_wheel_type(vehicle, 1); | |
5597 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5598 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5599 | return 0; | |
5600 | } | |
5601 | int Muscle8(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5602 | enablevehmods(); | |
5603 | wheel = 8; | |
5604 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5605 | set_vehicle_wheel_type(vehicle, 1); | |
5606 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5607 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5608 | return 0; | |
5609 | } | |
5610 | int Muscle9(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5611 | enablevehmods(); | |
5612 | wheel = 9; | |
5613 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5614 | set_vehicle_wheel_type(vehicle, 1); | |
5615 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5616 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5617 | return 0; | |
5618 | } | |
5619 | int Muscle10(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5620 | enablevehmods(); | |
5621 | wheel = 10; | |
5622 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5623 | set_vehicle_wheel_type(vehicle, 1); | |
5624 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5625 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5626 | return 0; | |
5627 | } | |
5628 | int Muscle11(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5629 | enablevehmods(); | |
5630 | wheel = 11; | |
5631 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5632 | set_vehicle_wheel_type(vehicle, 1); | |
5633 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5634 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5635 | return 0; | |
5636 | } | |
5637 | int Muscle12(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5638 | enablevehmods(); | |
5639 | wheel = 12; | |
5640 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5641 | set_vehicle_wheel_type(vehicle, 1); | |
5642 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5643 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5644 | return 0; | |
5645 | } | |
5646 | int Muscle13(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5647 | enablevehmods(); | |
5648 | wheel = 13; | |
5649 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5650 | set_vehicle_wheel_type(vehicle, 1); | |
5651 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5652 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5653 | return 0; | |
5654 | } | |
5655 | int Muscle14(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5656 | enablevehmods(); | |
5657 | wheel = 14; | |
5658 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5659 | set_vehicle_wheel_type(vehicle, 1); | |
5660 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5661 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5662 | return 0; | |
5663 | } | |
5664 | int Muscle15(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5665 | enablevehmods(); | |
5666 | wheel = 15; | |
5667 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5668 | set_vehicle_wheel_type(vehicle, 1); | |
5669 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5670 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5671 | return 0; | |
5672 | } | |
5673 | int Muscle16(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5674 | enablevehmods(); | |
5675 | wheel = 16; | |
5676 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5677 | set_vehicle_wheel_type(vehicle, 1); | |
5678 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5679 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5680 | return 0; | |
5681 | } | |
5682 | int Muscle17(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5683 | enablevehmods(); | |
5684 | wheel = 17; | |
5685 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5686 | set_vehicle_wheel_type(vehicle, 1); | |
5687 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5688 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5689 | return 0; | |
5690 | } | |
5691 | ||
5692 | int Offroad0(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5693 | enablevehmods(); | |
5694 | wheel = 0; | |
5695 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5696 | set_vehicle_wheel_type(vehicle, 4); | |
5697 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5698 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5699 | return 0; | |
5700 | } | |
5701 | ||
5702 | int Offroad1(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5703 | enablevehmods(); | |
5704 | wheel = 1; | |
5705 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5706 | set_vehicle_wheel_type(vehicle, 4); | |
5707 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5708 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5709 | return 0; | |
5710 | } | |
5711 | ||
5712 | int Offroad2(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5713 | enablevehmods(); | |
5714 | wheel = 2; | |
5715 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5716 | set_vehicle_wheel_type(vehicle, 4); | |
5717 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5718 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5719 | return 0; | |
5720 | } | |
5721 | ||
5722 | int Offroad3(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5723 | enablevehmods(); | |
5724 | wheel = 3; | |
5725 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5726 | set_vehicle_wheel_type(vehicle, 4); | |
5727 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5728 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5729 | return 0; | |
5730 | } | |
5731 | ||
5732 | int Offroad4(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5733 | enablevehmods(); | |
5734 | wheel = 4; | |
5735 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5736 | set_vehicle_wheel_type(vehicle, 4); | |
5737 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5738 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5739 | return 0; | |
5740 | } | |
5741 | int Offroad5(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5742 | enablevehmods(); | |
5743 | wheel = 5; | |
5744 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5745 | set_vehicle_wheel_type(vehicle, 4); | |
5746 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5747 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5748 | return 0; | |
5749 | } | |
5750 | int Offroad6(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5751 | enablevehmods(); | |
5752 | wheel = 6; | |
5753 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5754 | set_vehicle_wheel_type(vehicle, 4); | |
5755 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5756 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5757 | return 0; | |
5758 | } | |
5759 | int Offroad7(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5760 | enablevehmods(); | |
5761 | wheel = 7; | |
5762 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5763 | set_vehicle_wheel_type(vehicle, 4); | |
5764 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5765 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5766 | return 0; | |
5767 | } | |
5768 | int Offroad8(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5769 | enablevehmods(); | |
5770 | wheel = 8; | |
5771 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5772 | set_vehicle_wheel_type(vehicle, 4); | |
5773 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5774 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5775 | return 0; | |
5776 | } | |
5777 | int Offroad9(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5778 | enablevehmods(); | |
5779 | wheel = 9; | |
5780 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5781 | set_vehicle_wheel_type(vehicle, 4); | |
5782 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5783 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5784 | return 0; | |
5785 | } | |
5786 | ||
5787 | int Sport0(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5788 | enablevehmods(); | |
5789 | wheel = 0; | |
5790 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5791 | set_vehicle_wheel_type(vehicle, 0); | |
5792 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5793 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5794 | return 0; | |
5795 | } | |
5796 | ||
5797 | int Sport1(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5798 | enablevehmods(); | |
5799 | wheel = 1; | |
5800 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5801 | set_vehicle_wheel_type(vehicle, 0); | |
5802 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5803 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5804 | return 0; | |
5805 | } | |
5806 | ||
5807 | int Sport2(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5808 | enablevehmods(); | |
5809 | wheel = 2; | |
5810 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5811 | set_vehicle_wheel_type(vehicle, 0); | |
5812 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5813 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5814 | return 0; | |
5815 | } | |
5816 | ||
5817 | int Sport3(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5818 | enablevehmods(); | |
5819 | wheel = 3; | |
5820 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5821 | set_vehicle_wheel_type(vehicle, 0); | |
5822 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5823 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5824 | return 0; | |
5825 | } | |
5826 | ||
5827 | int Sport4(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5828 | enablevehmods(); | |
5829 | wheel = 4; | |
5830 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5831 | set_vehicle_wheel_type(vehicle, 0); | |
5832 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5833 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5834 | return 0; | |
5835 | } | |
5836 | int Sport5(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5837 | enablevehmods(); | |
5838 | wheel = 5; | |
5839 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5840 | set_vehicle_wheel_type(vehicle, 0); | |
5841 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5842 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5843 | return 0; | |
5844 | } | |
5845 | int Sport6(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5846 | enablevehmods(); | |
5847 | wheel = 6; | |
5848 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5849 | set_vehicle_wheel_type(vehicle, 0); | |
5850 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5851 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5852 | return 0; | |
5853 | } | |
5854 | int Sport7(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5855 | enablevehmods(); | |
5856 | wheel = 7; | |
5857 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5858 | set_vehicle_wheel_type(vehicle, 0); | |
5859 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5860 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5861 | return 0; | |
5862 | } | |
5863 | int Sport8(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5864 | enablevehmods(); | |
5865 | wheel = 8; | |
5866 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5867 | set_vehicle_wheel_type(vehicle, 0); | |
5868 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5869 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5870 | return 0; | |
5871 | } | |
5872 | int Sport9(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5873 | enablevehmods(); | |
5874 | wheel = 9; | |
5875 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5876 | set_vehicle_wheel_type(vehicle, 0); | |
5877 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5878 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5879 | return 0; | |
5880 | } | |
5881 | int Sport10(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5882 | enablevehmods(); | |
5883 | wheel = 10; | |
5884 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5885 | set_vehicle_wheel_type(vehicle, 0); | |
5886 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5887 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5888 | return 0; | |
5889 | } | |
5890 | int Sport11(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5891 | enablevehmods(); | |
5892 | wheel = 11; | |
5893 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5894 | set_vehicle_wheel_type(vehicle, 0); | |
5895 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5896 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5897 | return 0; | |
5898 | } | |
5899 | int Sport12(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5900 | enablevehmods(); | |
5901 | wheel = 12; | |
5902 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5903 | set_vehicle_wheel_type(vehicle, 0); | |
5904 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5905 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5906 | return 0; | |
5907 | } | |
5908 | int Sport13(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5909 | enablevehmods(); | |
5910 | wheel = 13; | |
5911 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5912 | set_vehicle_wheel_type(vehicle, 0); | |
5913 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5914 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5915 | return 0; | |
5916 | } | |
5917 | int Sport14(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5918 | enablevehmods(); | |
5919 | wheel = 14; | |
5920 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5921 | set_vehicle_wheel_type(vehicle, 0); | |
5922 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5923 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5924 | return 0; | |
5925 | } | |
5926 | int Sport15(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5927 | enablevehmods(); | |
5928 | wheel = 15; | |
5929 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5930 | set_vehicle_wheel_type(vehicle, 0); | |
5931 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5932 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5933 | return 0; | |
5934 | } | |
5935 | int Sport16(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5936 | enablevehmods(); | |
5937 | wheel = 16; | |
5938 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5939 | set_vehicle_wheel_type(vehicle, 0); | |
5940 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5941 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5942 | return 0; | |
5943 | } | |
5944 | int Sport17(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5945 | enablevehmods(); | |
5946 | wheel = 17; | |
5947 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5948 | set_vehicle_wheel_type(vehicle, 0); | |
5949 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5950 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5951 | return 0; | |
5952 | } | |
5953 | int Sport18(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5954 | enablevehmods(); | |
5955 | wheel = 18; | |
5956 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5957 | set_vehicle_wheel_type(vehicle, 0); | |
5958 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5959 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5960 | return 0; | |
5961 | } | |
5962 | int Sport19(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5963 | enablevehmods(); | |
5964 | wheel = 19; | |
5965 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5966 | set_vehicle_wheel_type(vehicle, 0); | |
5967 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5968 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5969 | return 0; | |
5970 | } | |
5971 | ||
5972 | int Sport20(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5973 | enablevehmods(); | |
5974 | wheel = 20; | |
5975 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5976 | set_vehicle_wheel_type(vehicle, 0); | |
5977 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5978 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5979 | return 0; | |
5980 | } | |
5981 | ||
5982 | int Sport21(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5983 | enablevehmods(); | |
5984 | wheel = 21; | |
5985 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5986 | set_vehicle_wheel_type(vehicle, 0); | |
5987 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5988 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5989 | return 0; | |
5990 | } | |
5991 | ||
5992 | int Sport22(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
5993 | enablevehmods(); | |
5994 | wheel = 22; | |
5995 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
5996 | set_vehicle_wheel_type(vehicle, 0); | |
5997 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
5998 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
5999 | return 0; | |
6000 | } | |
6001 | ||
6002 | int Sport23(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6003 | enablevehmods(); | |
6004 | wheel = 23; | |
6005 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6006 | set_vehicle_wheel_type(vehicle, 0); | |
6007 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
6008 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
6009 | return 0; | |
6010 | } | |
6011 | ||
6012 | int Sport24(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6013 | enablevehmods(); | |
6014 | wheel = 24; | |
6015 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6016 | set_vehicle_wheel_type(vehicle, 0); | |
6017 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
6018 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
6019 | return 0; | |
6020 | } | |
6021 | ||
6022 | int SUV0(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6023 | enablevehmods(); | |
6024 | wheel = 0; | |
6025 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6026 | set_vehicle_wheel_type(vehicle, 3); | |
6027 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
6028 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
6029 | return 0; | |
6030 | } | |
6031 | ||
6032 | int SUV1(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6033 | enablevehmods(); | |
6034 | wheel = 1; | |
6035 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6036 | set_vehicle_wheel_type(vehicle, 3); | |
6037 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
6038 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
6039 | return 0; | |
6040 | } | |
6041 | ||
6042 | int SUV2(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6043 | enablevehmods(); | |
6044 | wheel = 2; | |
6045 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6046 | set_vehicle_wheel_type(vehicle, 3); | |
6047 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
6048 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
6049 | return 0; | |
6050 | } | |
6051 | ||
6052 | int SUV3(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6053 | enablevehmods(); | |
6054 | wheel = 3; | |
6055 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6056 | set_vehicle_wheel_type(vehicle, 3); | |
6057 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
6058 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
6059 | return 0; | |
6060 | } | |
6061 | ||
6062 | int SUV4(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6063 | enablevehmods(); | |
6064 | wheel = 4; | |
6065 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6066 | set_vehicle_wheel_type(vehicle, 3); | |
6067 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
6068 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
6069 | return 0; | |
6070 | } | |
6071 | int SUV5(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6072 | enablevehmods(); | |
6073 | wheel = 5; | |
6074 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6075 | set_vehicle_wheel_type(vehicle, 3); | |
6076 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
6077 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
6078 | return 0; | |
6079 | } | |
6080 | int SUV6(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6081 | enablevehmods(); | |
6082 | wheel = 6; | |
6083 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6084 | set_vehicle_wheel_type(vehicle, 3); | |
6085 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
6086 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
6087 | return 0; | |
6088 | } | |
6089 | int SUV7(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6090 | enablevehmods(); | |
6091 | wheel = 7; | |
6092 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6093 | set_vehicle_wheel_type(vehicle, 3); | |
6094 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
6095 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
6096 | return 0; | |
6097 | } | |
6098 | int SUV8(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6099 | enablevehmods(); | |
6100 | wheel = 8; | |
6101 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6102 | set_vehicle_wheel_type(vehicle, 3); | |
6103 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
6104 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
6105 | return 0; | |
6106 | } | |
6107 | int SUV9(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6108 | enablevehmods(); | |
6109 | wheel = 9; | |
6110 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6111 | set_vehicle_wheel_type(vehicle, 3); | |
6112 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
6113 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
6114 | return 0; | |
6115 | } | |
6116 | int SUV10(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6117 | enablevehmods(); | |
6118 | wheel = 10; | |
6119 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6120 | set_vehicle_wheel_type(vehicle, 3); | |
6121 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
6122 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
6123 | return 0; | |
6124 | } | |
6125 | int SUV11(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6126 | enablevehmods(); | |
6127 | wheel = 11; | |
6128 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6129 | set_vehicle_wheel_type(vehicle, 3); | |
6130 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
6131 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
6132 | return 0; | |
6133 | } | |
6134 | int SUV12(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6135 | enablevehmods(); | |
6136 | wheel = 12; | |
6137 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6138 | set_vehicle_wheel_type(vehicle, 3); | |
6139 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
6140 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
6141 | return 0; | |
6142 | } | |
6143 | int SUV13(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6144 | enablevehmods(); | |
6145 | wheel = 13; | |
6146 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6147 | set_vehicle_wheel_type(vehicle, 3); | |
6148 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
6149 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
6150 | return 0; | |
6151 | } | |
6152 | int SUV14(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6153 | enablevehmods(); | |
6154 | wheel = 14; | |
6155 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6156 | set_vehicle_wheel_type(vehicle, 3); | |
6157 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
6158 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
6159 | return 0; | |
6160 | } | |
6161 | int SUV15(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6162 | enablevehmods(); | |
6163 | wheel = 15; | |
6164 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6165 | set_vehicle_wheel_type(vehicle, 3); | |
6166 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
6167 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
6168 | return 0; | |
6169 | } | |
6170 | int SUV16(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6171 | enablevehmods(); | |
6172 | wheel = 16; | |
6173 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6174 | set_vehicle_wheel_type(vehicle, 3); | |
6175 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
6176 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
6177 | return 0; | |
6178 | } | |
6179 | int SUV17(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6180 | enablevehmods(); | |
6181 | wheel = 17; | |
6182 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6183 | set_vehicle_wheel_type(vehicle, 3); | |
6184 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
6185 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
6186 | return 0; | |
6187 | } | |
6188 | int SUV18(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6189 | enablevehmods(); | |
6190 | wheel = 18; | |
6191 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6192 | set_vehicle_wheel_type(vehicle, 3); | |
6193 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
6194 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
6195 | return 0; | |
6196 | } | |
6197 | ||
6198 | int Tuner0(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6199 | enablevehmods(); | |
6200 | wheel = 0; | |
6201 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6202 | set_vehicle_wheel_type(vehicle, 5); | |
6203 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
6204 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
6205 | return 0; | |
6206 | } | |
6207 | ||
6208 | int Tuner1(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6209 | enablevehmods(); | |
6210 | wheel = 1; | |
6211 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6212 | set_vehicle_wheel_type(vehicle, 5); | |
6213 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
6214 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
6215 | return 0; | |
6216 | } | |
6217 | ||
6218 | int Tuner2(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6219 | enablevehmods(); | |
6220 | wheel = 2; | |
6221 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6222 | set_vehicle_wheel_type(vehicle, 5); | |
6223 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
6224 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
6225 | return 0; | |
6226 | } | |
6227 | ||
6228 | int Tuner3(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6229 | enablevehmods(); | |
6230 | wheel = 3; | |
6231 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6232 | set_vehicle_wheel_type(vehicle, 5); | |
6233 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
6234 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
6235 | return 0; | |
6236 | } | |
6237 | ||
6238 | int Tuner4(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6239 | enablevehmods(); | |
6240 | wheel = 4; | |
6241 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6242 | set_vehicle_wheel_type(vehicle, 5); | |
6243 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
6244 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
6245 | return 0; | |
6246 | } | |
6247 | int Tuner5(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6248 | enablevehmods(); | |
6249 | wheel = 5; | |
6250 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6251 | set_vehicle_wheel_type(vehicle, 5); | |
6252 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
6253 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
6254 | return 0; | |
6255 | } | |
6256 | int Tuner6(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6257 | enablevehmods(); | |
6258 | wheel = 6; | |
6259 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6260 | set_vehicle_wheel_type(vehicle, 5); | |
6261 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
6262 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
6263 | return 0; | |
6264 | } | |
6265 | int Tuner7(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6266 | enablevehmods(); | |
6267 | wheel = 7; | |
6268 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6269 | set_vehicle_wheel_type(vehicle, 5); | |
6270 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
6271 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
6272 | return 0; | |
6273 | } | |
6274 | int Tuner8(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6275 | enablevehmods(); | |
6276 | wheel = 8; | |
6277 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6278 | set_vehicle_wheel_type(vehicle, 5); | |
6279 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
6280 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
6281 | return 0; | |
6282 | } | |
6283 | int Tuner9(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6284 | enablevehmods(); | |
6285 | wheel = 9; | |
6286 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6287 | set_vehicle_wheel_type(vehicle, 5); | |
6288 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
6289 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
6290 | return 0; | |
6291 | } | |
6292 | int Tuner10(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6293 | enablevehmods(); | |
6294 | wheel = 10; | |
6295 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6296 | set_vehicle_wheel_type(vehicle, 5); | |
6297 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
6298 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
6299 | return 0; | |
6300 | } | |
6301 | int Tuner11(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6302 | enablevehmods(); | |
6303 | wheel = 11; | |
6304 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6305 | set_vehicle_wheel_type(vehicle, 5); | |
6306 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
6307 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
6308 | return 0; | |
6309 | } | |
6310 | int Tuner12(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6311 | enablevehmods(); | |
6312 | wheel = 12; | |
6313 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6314 | set_vehicle_wheel_type(vehicle, 5); | |
6315 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
6316 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
6317 | return 0; | |
6318 | } | |
6319 | int Tuner13(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6320 | enablevehmods(); | |
6321 | wheel = 13; | |
6322 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6323 | set_vehicle_wheel_type(vehicle, 5); | |
6324 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
6325 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
6326 | return 0; | |
6327 | } | |
6328 | int Tuner14(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6329 | enablevehmods(); | |
6330 | wheel = 14; | |
6331 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6332 | set_vehicle_wheel_type(vehicle, 5); | |
6333 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
6334 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
6335 | return 0; | |
6336 | } | |
6337 | int Tuner15(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6338 | enablevehmods(); | |
6339 | wheel = 15; | |
6340 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6341 | set_vehicle_wheel_type(vehicle, 5); | |
6342 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
6343 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
6344 | return 0; | |
6345 | } | |
6346 | int Tuner16(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6347 | enablevehmods(); | |
6348 | wheel = 16; | |
6349 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6350 | set_vehicle_wheel_type(vehicle, 5); | |
6351 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
6352 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
6353 | return 0; | |
6354 | } | |
6355 | int Tuner17(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6356 | enablevehmods(); | |
6357 | wheel = 17; | |
6358 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6359 | set_vehicle_wheel_type(vehicle, 5); | |
6360 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
6361 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
6362 | return 0; | |
6363 | } | |
6364 | int Tuner18(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6365 | enablevehmods(); | |
6366 | wheel = 18; | |
6367 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6368 | set_vehicle_wheel_type(vehicle, 5); | |
6369 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
6370 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
6371 | return 0; | |
6372 | } | |
6373 | int Tuner19(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6374 | enablevehmods(); | |
6375 | wheel = 19; | |
6376 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6377 | set_vehicle_wheel_type(vehicle, 5); | |
6378 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
6379 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
6380 | return 0; | |
6381 | } | |
6382 | ||
6383 | int Tuner20(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6384 | enablevehmods(); | |
6385 | wheel = 20; | |
6386 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6387 | set_vehicle_wheel_type(vehicle, 5); | |
6388 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
6389 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
6390 | return 0; | |
6391 | } | |
6392 | ||
6393 | int Tuner21(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6394 | enablevehmods(); | |
6395 | wheel = 21; | |
6396 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6397 | set_vehicle_wheel_type(vehicle, 5); | |
6398 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
6399 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
6400 | return 0; | |
6401 | } | |
6402 | ||
6403 | int Tuner22(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6404 | enablevehmods(); | |
6405 | wheel = 22; | |
6406 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6407 | set_vehicle_wheel_type(vehicle, 5); | |
6408 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
6409 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
6410 | return 0; | |
6411 | } | |
6412 | ||
6413 | int Tuner23(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6414 | enablevehmods(); | |
6415 | wheel = 23; | |
6416 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6417 | set_vehicle_wheel_type(vehicle, 5); | |
6418 | set_vehicle_mod(vehicle, 23, wheel, 0); | |
6419 | ShowMessageOnScreen("~b~ New wheels have been applied!"); | |
6420 | return 0; | |
6421 | } | |
6422 | ||
6423 | ||
6424 | int Weather0(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
6425 | { | |
6426 | set_override_weather("BLIZZARD"); | |
6427 | ShowMessageOnScreen("~b~ Weather change been applied!"); | |
6428 | return 0; | |
6429 | } | |
6430 | int Weather1(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
6431 | { | |
6432 | set_override_weather("CLEAR"); | |
6433 | ShowMessageOnScreen("~b~ Weather change been applied!"); | |
6434 | return 0; | |
6435 | } | |
6436 | int Weather2(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
6437 | { | |
6438 | set_override_weather("CLEARING"); | |
6439 | ShowMessageOnScreen("~b~ Weather change been applied!"); | |
6440 | return 0; | |
6441 | } | |
6442 | int Weather3(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
6443 | { | |
6444 | set_override_weather("CLOUDS"); | |
6445 | ShowMessageOnScreen("~b~ Weather change been applied!"); | |
6446 | return 0; | |
6447 | } | |
6448 | int Weather4(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
6449 | { | |
6450 | set_override_weather("EXTRASUNNY"); | |
6451 | ShowMessageOnScreen("~b~ Weather change been applied!"); | |
6452 | return 0; | |
6453 | } | |
6454 | int Weather5(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
6455 | { | |
6456 | set_override_weather("FOGGY"); | |
6457 | ShowMessageOnScreen("~b~ Weather change been applied!"); | |
6458 | return 0; | |
6459 | } | |
6460 | int Weather6(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
6461 | { | |
6462 | set_override_weather("NEUTRAL"); | |
6463 | ShowMessageOnScreen("~b~ Weather change been applied!"); | |
6464 | return 0; | |
6465 | } | |
6466 | int Weather7(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
6467 | { | |
6468 | set_override_weather("OVERCAST"); | |
6469 | ShowMessageOnScreen("~b~ Weather change been applied!"); | |
6470 | return 0; | |
6471 | } | |
6472 | int Weather8(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
6473 | { | |
6474 | set_override_weather("RAIN"); | |
6475 | ShowMessageOnScreen("~b~ Weather change been applied!"); | |
6476 | return 0; | |
6477 | } | |
6478 | int Weather9(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
6479 | { | |
6480 | set_override_weather("SMOG"); | |
6481 | ShowMessageOnScreen("~b~ Weather change been applied!"); | |
6482 | return 0; | |
6483 | } | |
6484 | int Weather10(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
6485 | { | |
6486 | set_override_weather("SNOW"); | |
6487 | ShowMessageOnScreen("~b~ Weather change been applied!"); | |
6488 | return 0; | |
6489 | } | |
6490 | int Weather11(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
6491 | { | |
6492 | set_override_weather("SNOWLIGHT"); | |
6493 | ShowMessageOnScreen("~b~ Weather change been applied!"); | |
6494 | return 0; | |
6495 | } | |
6496 | int Weather12(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
6497 | { | |
6498 | set_override_weather("THUNDER"); | |
6499 | ShowMessageOnScreen("~b~ Weather change been applied!"); | |
6500 | return 0; | |
6501 | } | |
6502 | /*int Weather13(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
6503 | { | |
6504 | int time = get_clock_hours(); | |
6505 | if (time == 23) { | |
6506 | time = 0; | |
6507 | network_override_clock_time(0, 0, 0); | |
6508 | ShowMessageOnScreen("~b~ Set to hour 24"); | |
6509 | } | |
6510 | else { | |
6511 | time++; | |
6512 | network_override_clock_time(time, 0, 0); | |
6513 | ShowMessageOnScreen("~b~ Set to hour %i", time); | |
6514 | } | |
6515 | return 0; | |
6516 | } | |
6517 | int Weather14(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
6518 | { | |
6519 | int time = get_clock_hours(); | |
6520 | if (time == 1) { | |
6521 | time = 0; | |
6522 | network_override_clock_time(0, 0, 0); | |
6523 | ShowMessageOnScreen("~b~ Set to hour 24"); | |
6524 | } | |
6525 | else { | |
6526 | time--; | |
6527 | network_override_clock_time(time, 0, 0); | |
6528 | ShowMessageOnScreen("~b~ Set to hour %i", time); | |
6529 | } | |
6530 | return 0; | |
6531 | }*/ | |
6532 | ||
6533 | int Weather13(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
6534 | { | |
6535 | int time = get_clock_hours() + 1; | |
6536 | if (time > 23) | |
6537 | time = 0; | |
6538 | network_override_clock_time(time, 0, 0); | |
6539 | ShowMessageOnScreen("~b~ Set to hour %i", time); | |
6540 | return 0; | |
6541 | } | |
6542 | ||
6543 | int Weather14(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
6544 | { | |
6545 | int time = get_clock_hours() - 1; | |
6546 | if (time < 0) | |
6547 | time = 23; | |
6548 | network_override_clock_time(time, 0, 0); | |
6549 | ShowMessageOnScreen("~b~ Set to hour %i", time); | |
6550 | return 0; | |
6551 | } | |
6552 | ||
6553 | #ifdef PRIVATE | |
6554 | ||
6555 | bool Peg_Global = false; | |
6556 | int car_hash = 0x1FD824AF; | |
6557 | int pointer1; | |
6558 | int pointer2; | |
6559 | int Peg1(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6560 | /*int pointer = *(int *)(Var_Pointer + 4); | |
6561 | pointer1 = pointer += (2131539 * 4); | |
6562 | pointer2 = pointer += (2134525 * 4);*/ | |
6563 | pointer1 = GlobalToAddress(2390986, 2697); | |
6564 | pointer1 = GlobalToAddress(2394984, 1643 + 42); | |
6565 | Peg_Global = true; | |
6566 | ShowMessageOnScreen("~b~ Call up pegasus and order any vehicle and it will be a space docker!, May not work all the time!"); | |
6567 | return 0; | |
6568 | } | |
6569 | ||
6570 | void pegasusloop() { | |
6571 | *(int *)pointer1 = car_hash; | |
6572 | *(int *)pointer2 = car_hash; | |
6573 | } | |
6574 | ||
6575 | #endif | |
6576 | ||
6577 | /*Pegasus->AddStaticItem("Space Docker", false, Peg1, NULL); | |
6578 | Pegasus->AddStaticItem("FBI Cruiser", false, Peg2, NULL); | |
6579 | Pegasus->AddStaticItem("Clown Van", false, Peg3, NULL); | |
6580 | Pegasus->AddStaticItem("Weed Van", false, Peg4, NULL); | |
6581 | Pegasus->AddStaticItem("Sultan", false, Peg5, NULL);*/ | |
6582 | ||
6583 | ||
6584 | bool Create = false; | |
6585 | int ToggleCreator(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6586 | Create ^= true;// toggle | |
6587 | snap ^= true; | |
6588 | ShowMessageOnScreen("~b~ Creator mode %s!", Create ? "enabled, aim at an object" : "disabled"); | |
6589 | return 0; | |
6590 | } | |
6591 | ||
6592 | void create_loop() | |
6593 | { | |
6594 | if(unk_0x8866D9D0(PlayerId(), &objecthandle)) { | |
6595 | if (IsEntityVehicle(objecthandle)) { | |
6596 | ShowMessageOnScreen("~b~ Vehiche handle returned you can now move this vehicle with the object spawner options"); | |
6597 | } | |
6598 | if (IsEntityObject(objecthandle)) { | |
6599 | ShowMessageOnScreen("~b~ Object handle returned you can now move this object with the object spawner options"); | |
6600 | } | |
6601 | } | |
6602 | } | |
6603 | ||
6604 | void speed() | |
6605 | { | |
6606 | int ispeed; | |
6607 | if (!is_ped_on_foot(PlayerPedId())) | |
6608 | { | |
6609 | int car = GetCarCharIsIn(PlayerPedId(), 0);//GET_CAR_CHAR_IS_USING(GetPlayerPed(), &veh_speed); | |
6610 | /*if (is_vehicle_in_burnout(car)) { ShowMessageOnScreen("~r~ Skid it up brah!!"); } | |
6611 | else { ShowMessageOnScreen("No skid :("); }*/ | |
6612 | float speed = get_entity_speed(car); | |
6613 | speed = speed * speedmul; // MaxSpeed (Default: 3.61)! (5.86) | |
6614 | ispeed = (int) speed; // float to int | |
6615 | PrintToScreen("Speed KM/H:", 0.05000000, 0.22000000, 0, 132, 202, 255, 0.80000000, 0.80000000, 0, 6); | |
6616 | PrintToScreenNum(ispeed, 0.05000000, 0.26000000, 0, 255, 0, 255, 0.80000000, 0.80000000, 0, 6); | |
6617 | if (ispeed < 120) | |
6618 | { | |
6619 | PrintToScreenNum(ispeed, 0.05000000, 0.26000000, 0, 255, 0, 255, 0.80000000, 0.80000000, 0, 6); | |
6620 | } | |
6621 | if (ispeed > 120) | |
6622 | { | |
6623 | PrintToScreenNum(ispeed, 0.05000000, 0.26000000, 255, 255, 0, 255, 0.80000000, 0.80000000, 0, 6); | |
6624 | } | |
6625 | if (ispeed > 180) | |
6626 | { | |
6627 | PrintToScreenNum(ispeed, 0.05000000, 0.26000000, 255, 165, 0, 255, 0.80000000, 0.80000000, 0, 6); | |
6628 | } | |
6629 | if (ispeed > 240) | |
6630 | { | |
6631 | PrintToScreenNum(ispeed, 0.05000000, 0.26000000, 255, 0, 0, 255, 0.80000000, 0.80000000, 0, 6); | |
6632 | } | |
6633 | } | |
6634 | } | |
6635 | ||
6636 | #ifdef personal | |
6637 | ||
6638 | bool drop = false; | |
6639 | float cash[3]; | |
6640 | int CashDrop(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6641 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
6642 | cashclient = subMenuIndex; | |
6643 | if (!drop) { | |
6644 | drop = true; | |
6645 | ShowMessageOnScreen("~b~ Cash Drop Active"); | |
6646 | //GetEntityCoords(GetPlayerHandle(subMenuIndex), cash); | |
6647 | } | |
6648 | else if (drop) { | |
6649 | drop = false; | |
6650 | ShowMessageOnScreen("~b~ Cash Drop Disabled"); | |
6651 | } | |
6652 | return 0; | |
6653 | } | |
6654 | /*for (int i = 0; i < Trailamount; i++) { | |
6655 | float sin = (float)round(sin(i) * radius) + cash[1]; | |
6656 | float cos = (float)round(cos(i) * radius) + cash[0]; | |
6657 | }*/ | |
6658 | int cashCount = 0, | |
6659 | cashwait; | |
6660 | int cashcoount = 120; //3 | |
6661 | int cashwaitam = 1000; //500 | |
6662 | void cashloop() | |
6663 | { | |
6664 | GetEntityCoords(GetPlayerHandle(cashclient), cash); | |
6665 | if(cashCount <= cashcoount) { | |
6666 | create_ambient_pickup( get_hash_key("PICKUP_MONEY_VARIABLE"), cash, 0, 100000, 1, 0, 1 ); | |
6667 | create_ambient_pickup( get_hash_key("PICKUP_MONEY_VARIABLE"), cash, 0, 100000, 1, 0, 1 ); | |
6668 | create_ambient_pickup( get_hash_key("PICKUP_MONEY_VARIABLE"), cash, 0, 100000, 1, 0, 1 ); | |
6669 | cashCount += 3; | |
6670 | } | |
6671 | else | |
6672 | { | |
6673 | if(cashwait == 0) | |
6674 | cashwait = GetTickCount(); | |
6675 | if((GetTickCount() - cashwait) > cashwaitam) | |
6676 | cashCount = cashwait = 0; | |
6677 | } | |
6678 | /* | |
6679 | create_ambient_pickup( get_hash_key("PICKUP_MONEY_VARIABLE"), cash, 0, 100000, 1, 0, 1 ); | |
6680 | create_ambient_pickup( get_hash_key("PICKUP_MONEY_VARIABLE"), cash, 0, 100000, 1, 0, 1 ); | |
6681 | create_ambient_pickup( get_hash_key("PICKUP_MONEY_VARIABLE"), cash, 0, 100000, 1, 0, 1 ); | |
6682 | create_ambient_pickup( get_hash_key("PICKUP_MONEY_VARIABLE"), cash, 0, 100000, 1, 0, 1 );*/ | |
6683 | ||
6684 | } | |
6685 | #endif | |
6686 | ||
6687 | ||
6688 | bool cower; | |
6689 | int Cower(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6690 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
6691 | animid = subMenuIndex; | |
6692 | cower = true; | |
6693 | /*animdict = "random@arrests"; | |
6694 | anim = "idle_2_hands_up"; | |
6695 | animid = subMenuIndex; | |
6696 | vm_anim = true;*/ | |
6697 | ||
6698 | return 0; | |
6699 | } | |
6700 | int StopLoop(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6701 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
6702 | StopPlayerTasks(subMenuIndex); | |
6703 | return 0; | |
6704 | } | |
6705 | ||
6706 | ||
6707 | int BuffDude(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6708 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
6709 | scriptsetModel = 0xDA116E7E; | |
6710 | return 0; | |
6711 | } | |
6712 | bool comps = false; | |
6713 | int Random(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6714 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
6715 | comps = true; | |
6716 | return 0; | |
6717 | } | |
6718 | int RageModel(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6719 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
6720 | scriptsetModel = 880829941; | |
6721 | return 0; | |
6722 | } | |
6723 | ||
6724 | int MalePants(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6725 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
6726 | scriptsetModel = 2109968527; | |
6727 | return 0; | |
6728 | } | |
6729 | bool slender = false; | |
6730 | int Slendy(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6731 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
6732 | slender = true; | |
6733 | scriptsetModel = 0x92991b72; | |
6734 | return 0; | |
6735 | } | |
6736 | int FemalePants(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6737 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
6738 | scriptsetModel = 602513566; | |
6739 | return 0; | |
6740 | } | |
6741 | bool activenos = false; | |
6742 | int ToggleNos(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6743 | //set_vehicle_boost_active | |
6744 | activenos = !activenos; | |
6745 | ShowMessageOnScreen("~b~ Nos is now %s.", activenos ? "On, Press LS To Use Nitrous!" : "off"); | |
6746 | return 0; | |
6747 | } | |
6748 | bool drift = false; | |
6749 | int Slidey(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6750 | //set_vehicle_boost_active | |
6751 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6752 | if (!drift) { | |
6753 | unk_0x90D3A0D9(vehicle, 1); | |
6754 | ShowMessageOnScreen("~b~ Time to drift!, This is terrible (Not my fault it's using one of rockstars natives)"); | |
6755 | drift = true; | |
6756 | } | |
6757 | else if (drift) { | |
6758 | unk_0x90D3A0D9(vehicle, 0); | |
6759 | ShowMessageOnScreen("~b~ Slidey car turned off."); | |
6760 | drift = false; | |
6761 | } | |
6762 | return 0; | |
6763 | } | |
6764 | ||
6765 | bool handdrift = false; | |
6766 | int SlideyHand(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6767 | //set_vehicle_boost_active | |
6768 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6769 | if (!handdrift) { | |
6770 | //unk_0x90D3A0D9(vehicle, 1); | |
6771 | ShowMessageOnScreen("~b~ Time to drift!, Press or hold A to activate slide"); | |
6772 | handdrift = true; | |
6773 | } | |
6774 | else if (handdrift) { | |
6775 | //unk_0x90D3A0D9(vehicle, 0); | |
6776 | ShowMessageOnScreen("~b~ Handbrake Slidey car turned off"); | |
6777 | handdrift = false; | |
6778 | } | |
6779 | return 0; | |
6780 | } | |
6781 | ||
6782 | void slideyloop() { | |
6783 | if (is_control_pressed(2, 174)) { | |
6784 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6785 | unk_0x90D3A0D9(vehicle, 1); | |
6786 | } | |
6787 | if (is_control_just_released(2, 174)) { | |
6788 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6789 | unk_0x90D3A0D9(vehicle, 0); | |
6790 | } | |
6791 | } | |
6792 | ||
6793 | ||
6794 | int Lock(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6795 | //set_vehicle_boost_active | |
6796 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6797 | set_vehicle_doors_locked(vehicle, 4); | |
6798 | ShowMessageOnScreen("~b~ Vehicle has been locked!"); | |
6799 | return 0; | |
6800 | } | |
6801 | ||
6802 | int Unlock(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6803 | //set_vehicle_boost_active | |
6804 | int vehicle = GetCarCharIsIn(PlayerPedId(), 0); | |
6805 | set_vehicle_doors_locked(vehicle, 0); | |
6806 | ShowMessageOnScreen("~b~ Vehicle has been Unlocked!"); | |
6807 | return 0; | |
6808 | } | |
6809 | ||
6810 | ||
6811 | bool rocket, requested; | |
6812 | int ToggleRocket(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6813 | if (!rocket) { | |
6814 | ShowMessageOnScreen("~b~ Vehicle Rockets On, Press LS To Shoot them!"); | |
6815 | rocket = true; | |
6816 | requested = false; | |
6817 | custom = false; | |
6818 | } | |
6819 | else if (rocket) { | |
6820 | ShowMessageOnScreen("~b~ Vehicle Rockets Off"); | |
6821 | rocket = false; | |
6822 | custom = false; | |
6823 | } | |
6824 | //ShowMessageOnScreen("~b~ Vehicle rockets are currently not working"); | |
6825 | return 0; | |
6826 | } | |
6827 | ||
6828 | bool fwrocket; | |
6829 | int ToggleFWVehicle(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6830 | if (!fwrocket) { | |
6831 | ShowMessageOnScreen("~b~ Vehicle Fireworks On, Press LS To Shoot them!"); | |
6832 | fwrocket = true; | |
6833 | custom = false; | |
6834 | } | |
6835 | else if (fwrocket) { | |
6836 | ShowMessageOnScreen("~b~ Vehicle Fireworks Off"); | |
6837 | fwrocket = false; | |
6838 | custom = false; | |
6839 | } | |
6840 | //ShowMessageOnScreen("~b~ Vehicle rockets are currently not working"); | |
6841 | return 0; | |
6842 | } | |
6843 | ||
6844 | void fwrocketloop() { | |
6845 | float dim_min[3], | |
6846 | dim_max[3], | |
6847 | targetpos1[3], | |
6848 | targetpos2[3], | |
6849 | launchpos1[3], | |
6850 | launchpos2[3], | |
6851 | rocket_speed; | |
6852 | int PedID; | |
6853 | if (is_ped_in_any_vehicle(PedID = PlayerPedId())) | |
6854 | { | |
6855 | ||
6856 | if ( is_control_just_pressed( 2, 197 ) && !is_ped_on_foot(PedID)) // ls | |
6857 | { | |
6858 | printf("Pressed LS\n"); | |
6859 | int vehicle = GetCarCharIsIn(PedID, 0 ), | |
6860 | Model = get_entity_model(vehicle); | |
6861 | printf("Got vehicle %i \n", vehicle); | |
6862 | get_model_dimensions( Model, dim_min, dim_max ); | |
6863 | printf("Got dimensions\n"); | |
6864 | ||
6865 | if ( is_control_pressed( 2, 198 ) ) // rs | |
6866 | { | |
6867 | printf("Pressed RS\n"); | |
6868 | get_offset_from_entity_in_world_coords( vehicle, dim_min[0] - 0.2f, dim_min[1] - 0.5f, 0.0f, launchpos1 ) ; | |
6869 | get_offset_from_entity_in_world_coords( vehicle, dim_max[0] + 0.2f, dim_min[1] - 0.5f, 0.0f, launchpos2 ) ; | |
6870 | get_offset_from_entity_in_world_coords( vehicle, dim_min[0] - 0.2f, dim_min[1] - 300.5f, 0.5f, targetpos1 ); | |
6871 | get_offset_from_entity_in_world_coords( vehicle, dim_max[0] + 0.2f, dim_min[1] - 300.5f, 0.5f, targetpos2 ); | |
6872 | printf("Got offset\n"); | |
6873 | } | |
6874 | else | |
6875 | { | |
6876 | printf("Got vehicle %i \n", vehicle); | |
6877 | get_offset_from_entity_in_world_coords( vehicle, dim_min[0] - 0.2f, dim_min[1] + 0.5f, 0.0f, launchpos1 ); | |
6878 | get_offset_from_entity_in_world_coords( vehicle, dim_max[0] + 0.2f, dim_min[1] + 0.5f, 0.0f, launchpos2 ); | |
6879 | get_offset_from_entity_in_world_coords( vehicle, dim_min[0] - 0.2f, dim_min[1] + 300.5f, 0.5f, targetpos1 ); | |
6880 | get_offset_from_entity_in_world_coords( vehicle, dim_max[0] + 0.2f, dim_min[1] + 300.5f, 0.5f, targetpos2 ); | |
6881 | printf("Got offset 2\n"); | |
6882 | if ( Model == get_hash_key("surfer") || Model == get_hash_key("blazer") ) | |
6883 | { | |
6884 | printf("Checked entity model\n"); | |
6885 | targetpos1[2] += 3.5f; | |
6886 | targetpos2[2] += 3.5f; | |
6887 | } | |
6888 | else | |
6889 | { | |
6890 | printf("Checked entity model 2\n"); | |
6891 | targetpos1[2]--; | |
6892 | targetpos2[2]--; | |
6893 | } | |
6894 | } | |
6895 | float vSpeed = get_entity_speed( vehicle ); | |
6896 | if ( ( vSpeed * vSpeed ) > 1500 ) | |
6897 | { | |
6898 | rocket_speed = ( vSpeed * vSpeed ) + 100; | |
6899 | printf("Got and multiplied rocket / car speed\n"); | |
6900 | } | |
6901 | else | |
6902 | { | |
6903 | rocket_speed = 1500; | |
6904 | } | |
6905 | if (custom){ | |
6906 | shoot_single_bullet_between_coords( launchpos1, targetpos1, 250, 0, get_hash_key("WEAPON_FIREWORK"), rocketid, 1, 1, rocket_speed ); | |
6907 | shoot_single_bullet_between_coords( launchpos2, targetpos2, 250, 0, get_hash_key("WEAPON_FIREWORK"), rocketid, 1, 1, rocket_speed ); | |
6908 | } | |
6909 | else{ | |
6910 | shoot_single_bullet_between_coords( launchpos1, targetpos1, 250, 0, get_hash_key("WEAPON_FIREWORK"), PedID, 1, 1, rocket_speed ); | |
6911 | shoot_single_bullet_between_coords( launchpos2, targetpos2, 250, 0, get_hash_key("WEAPON_FIREWORK"), PedID, 1, 1, rocket_speed ); | |
6912 | } | |
6913 | printf("Fired vehicle rockets \n"); | |
6914 | } | |
6915 | } | |
6916 | } | |
6917 | ||
6918 | ||
6919 | void rocketloop() { | |
6920 | float dim_min[3], | |
6921 | dim_max[3], | |
6922 | targetpos1[3], | |
6923 | targetpos2[3], | |
6924 | launchpos1[3], | |
6925 | launchpos2[3], | |
6926 | rocket_speed; | |
6927 | int PedID; | |
6928 | if (is_ped_in_any_vehicle(PedID = PlayerPedId())) | |
6929 | { | |
6930 | ||
6931 | if ( is_control_just_pressed( 2, 197 ) && !is_ped_on_foot(PedID)) // ls | |
6932 | { | |
6933 | printf("Pressed LS\n"); | |
6934 | int vehicle = GetCarCharIsIn(PedID, 0 ), | |
6935 | Model = get_entity_model(vehicle); | |
6936 | printf("Got vehicle %i \n", vehicle); | |
6937 | get_model_dimensions( Model, dim_min, dim_max ); | |
6938 | printf("Got dimensions\n"); | |
6939 | ||
6940 | if ( is_control_pressed( 2, 198 ) ) // rs | |
6941 | { | |
6942 | printf("Pressed RS\n"); | |
6943 | get_offset_from_entity_in_world_coords( vehicle, dim_min[0] - 0.2f, dim_min[1] - 0.5f, 0.0f, launchpos1 ) ; | |
6944 | get_offset_from_entity_in_world_coords( vehicle, dim_max[0] + 0.2f, dim_min[1] - 0.5f, 0.0f, launchpos2 ) ; | |
6945 | get_offset_from_entity_in_world_coords( vehicle, dim_min[0] - 0.2f, dim_min[1] - 300.5f, 0.5f, targetpos1 ); | |
6946 | get_offset_from_entity_in_world_coords( vehicle, dim_max[0] + 0.2f, dim_min[1] - 300.5f, 0.5f, targetpos2 ); | |
6947 | printf("Got offset\n"); | |
6948 | } | |
6949 | else | |
6950 | { | |
6951 | printf("Got vehicle %i \n", vehicle); | |
6952 | get_offset_from_entity_in_world_coords( vehicle, dim_min[0] - 0.2f, dim_min[1] + 0.5f, 0.0f, launchpos1 ); | |
6953 | get_offset_from_entity_in_world_coords( vehicle, dim_max[0] + 0.2f, dim_min[1] + 0.5f, 0.0f, launchpos2 ); | |
6954 | get_offset_from_entity_in_world_coords( vehicle, dim_min[0] - 0.2f, dim_min[1] + 300.5f, 0.5f, targetpos1 ); | |
6955 | get_offset_from_entity_in_world_coords( vehicle, dim_max[0] + 0.2f, dim_min[1] + 300.5f, 0.5f, targetpos2 ); | |
6956 | printf("Got offset 2\n"); | |
6957 | if ( Model == get_hash_key("surfer") || Model == get_hash_key("blazer") ) | |
6958 | { | |
6959 | printf("Checked entity model\n"); | |
6960 | targetpos1[2] += 3.5f; | |
6961 | targetpos2[2] += 3.5f; | |
6962 | } | |
6963 | else | |
6964 | { | |
6965 | printf("Checked entity model 2\n"); | |
6966 | targetpos1[2]--; | |
6967 | targetpos2[2]--; | |
6968 | } | |
6969 | } | |
6970 | float vSpeed = get_entity_speed( vehicle ); | |
6971 | if ( ( vSpeed * vSpeed ) > 1500 ) | |
6972 | { | |
6973 | rocket_speed = ( vSpeed * vSpeed ) + 100; | |
6974 | printf("Got and multiplied rocket / car speed\n"); | |
6975 | } | |
6976 | else | |
6977 | { | |
6978 | rocket_speed = 1500; | |
6979 | } | |
6980 | if (custom){ | |
6981 | shoot_single_bullet_between_coords( launchpos1, targetpos1, 250, 0, get_hash_key("WEAPON_VEHICLE_ROCKET"), rocketid, 1, 1, rocket_speed ); | |
6982 | shoot_single_bullet_between_coords( launchpos2, targetpos2, 250, 0, get_hash_key("WEAPON_VEHICLE_ROCKET"), rocketid, 1, 1, rocket_speed ); | |
6983 | } | |
6984 | else{ | |
6985 | shoot_single_bullet_between_coords( launchpos1, targetpos1, 250, 0, get_hash_key("WEAPON_VEHICLE_ROCKET"), PedID, 1, 1, rocket_speed ); | |
6986 | shoot_single_bullet_between_coords( launchpos2, targetpos2, 250, 0, get_hash_key("WEAPON_VEHICLE_ROCKET"), PedID, 1, 1, rocket_speed ); | |
6987 | } | |
6988 | printf("Fired vehicle rockets \n"); | |
6989 | } | |
6990 | } | |
6991 | } | |
6992 | ||
6993 | bool mg; | |
6994 | int ToggleMg(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
6995 | if (!mg) { | |
6996 | ShowMessageOnScreen("~b~ Vehicle Super Machineguns On, Press X To Shoot them!"); | |
6997 | mg = true; | |
6998 | requested = false; | |
6999 | custom = false; | |
7000 | } | |
7001 | else if (mg) { | |
7002 | ShowMessageOnScreen("~b~ Vehicle Super Machineguns Off"); | |
7003 | mg = false; | |
7004 | custom = false; | |
7005 | } | |
7006 | //ShowMessageOnScreen("~b~ Vehicle MG's are currently not working"); | |
7007 | return 0; | |
7008 | } | |
7009 | ||
7010 | void mgloop() { | |
7011 | float dim_min[3], | |
7012 | dim_max[3], | |
7013 | targetpos1[3], | |
7014 | targetpos2[3], | |
7015 | launchpos1[3], | |
7016 | launchpos2[3], | |
7017 | rocket_speed; | |
7018 | int PedID; | |
7019 | if (is_ped_in_any_vehicle(PedID = PlayerPedId())) | |
7020 | { | |
7021 | ||
7022 | if (menuInputHandler->XButtonDown() && !is_ped_on_foot(PedID)) // ls | |
7023 | { | |
7024 | //printf("Pressed LS\n"); | |
7025 | int vehicle = GetCarCharIsIn(PedID, 0 ), | |
7026 | Model = get_entity_model(vehicle); | |
7027 | //printf("Got vehicle %i \n", vehicle); | |
7028 | get_model_dimensions( Model, dim_min, dim_max ); | |
7029 | //printf("Got dimensions\n"); | |
7030 | ||
7031 | if ( is_control_pressed( 2, 198 ) ) // rs | |
7032 | { | |
7033 | //printf("Pressed RS\n"); | |
7034 | get_offset_from_entity_in_world_coords( vehicle, dim_min[0] - 0.2f, dim_min[1] - 0.5f, 0.0f, launchpos1 ) ; | |
7035 | get_offset_from_entity_in_world_coords( vehicle, dim_max[0] + 0.2f, dim_min[1] - 0.5f, 0.0f, launchpos2 ) ; | |
7036 | get_offset_from_entity_in_world_coords( vehicle, dim_min[0] - 0.2f, dim_min[1] - 300.5f, 0.5f, targetpos1 ); | |
7037 | get_offset_from_entity_in_world_coords( vehicle, dim_max[0] + 0.2f, dim_min[1] - 300.5f, 0.5f, targetpos2 ); | |
7038 | //printf("Got offset\n"); | |
7039 | } | |
7040 | else | |
7041 | { | |
7042 | //printf("Got vehicle %i \n", vehicle); | |
7043 | get_offset_from_entity_in_world_coords( vehicle, dim_min[0] - 0.2f, dim_min[1] + 0.5f, 0.0f, launchpos1 ); | |
7044 | get_offset_from_entity_in_world_coords( vehicle, dim_max[0] + 0.2f, dim_min[1] + 0.5f, 0.0f, launchpos2 ); | |
7045 | get_offset_from_entity_in_world_coords( vehicle, dim_min[0] - 0.2f, dim_min[1] + 300.5f, 0.5f, targetpos1 ); | |
7046 | get_offset_from_entity_in_world_coords( vehicle, dim_max[0] + 0.2f, dim_min[1] + 300.5f, 0.5f, targetpos2 ); | |
7047 | //printf("Got offset 2\n"); | |
7048 | if ( Model == get_hash_key("surfer") || Model == get_hash_key("blazer") ) | |
7049 | { | |
7050 | //printf("Checked entity model\n"); | |
7051 | targetpos1[2] += 3.5f; | |
7052 | targetpos2[2] += 3.5f; | |
7053 | } | |
7054 | else | |
7055 | { | |
7056 | //printf("Checked entity model 2\n"); | |
7057 | targetpos1[2]--; | |
7058 | targetpos2[2]--; | |
7059 | } | |
7060 | } | |
7061 | float vSpeed = get_entity_speed( vehicle ); | |
7062 | if ( ( vSpeed * vSpeed ) > 1500 ) | |
7063 | { | |
7064 | rocket_speed = ( vSpeed * vSpeed ) + 100; | |
7065 | //printf("Got and multiplied rocket / car speed\n"); | |
7066 | } | |
7067 | else | |
7068 | { | |
7069 | rocket_speed = 1500; | |
7070 | } | |
7071 | if (custom){ | |
7072 | shoot_single_bullet_between_coords( launchpos1, targetpos1, 10, 1, get_hash_key("WEAPON_REMOTESNIPER"), rocketid, 0, 1, -1082130432 ); | |
7073 | shoot_single_bullet_between_coords( launchpos2, targetpos2, 10, 1, get_hash_key("WEAPON_REMOTESNIPER"), rocketid, 0, 1, -1082130432 ); | |
7074 | } | |
7075 | else{ | |
7076 | shoot_single_bullet_between_coords( launchpos1, targetpos1, 10, 1, get_hash_key("WEAPON_REMOTESNIPER"), PedID, 0, 1, -1082130432 ); | |
7077 | shoot_single_bullet_between_coords( launchpos2, targetpos2, 10, 1, get_hash_key("WEAPON_REMOTESNIPER"), PedID, 0, 1, -1082130432 ); | |
7078 | } | |
7079 | //printf("Fired vehicle rockets \n"); | |
7080 | } | |
7081 | } | |
7082 | } | |
7083 | ||
7084 | bool Mini; | |
7085 | int ToggleMini(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
7086 | if (!Mini) { | |
7087 | ShowMessageOnScreen("~b~ Vehicle Machineguns On, Press X To Shoot them!"); | |
7088 | Mini = true; | |
7089 | requested = false; | |
7090 | custom = false; | |
7091 | } | |
7092 | else if (Mini) { | |
7093 | ShowMessageOnScreen("~b~ Vehicle Machineguns Off"); | |
7094 | Mini = false; | |
7095 | custom = false; | |
7096 | } | |
7097 | return 0; | |
7098 | } | |
7099 | ||
7100 | void miniloop() { | |
7101 | float dim_min[3], | |
7102 | dim_max[3], | |
7103 | targetpos1[3], | |
7104 | targetpos2[3], | |
7105 | launchpos1[3], | |
7106 | launchpos2[3], | |
7107 | rocket_speed; | |
7108 | int PedID; | |
7109 | if (is_ped_in_any_vehicle(PedID = PlayerPedId())) | |
7110 | { | |
7111 | ||
7112 | if (menuInputHandler->XButtonDown() && !is_ped_on_foot(PedID)) // ls | |
7113 | { | |
7114 | //printf("Pressed LS\n"); | |
7115 | int vehicle = GetCarCharIsIn(PedID, 0 ), | |
7116 | Model = get_entity_model(vehicle); | |
7117 | //printf("Got vehicle %i \n", vehicle); | |
7118 | get_model_dimensions( Model, dim_min, dim_max ); | |
7119 | //printf("Got dimensions\n"); | |
7120 | ||
7121 | if ( is_control_pressed( 2, 198 ) ) // rs | |
7122 | { | |
7123 | //printf("Pressed RS\n"); | |
7124 | get_offset_from_entity_in_world_coords( vehicle, dim_min[0] - 0.2f, dim_min[1] - 0.5f, 0.0f, launchpos1 ) ; | |
7125 | get_offset_from_entity_in_world_coords( vehicle, dim_max[0] + 0.2f, dim_min[1] - 0.5f, 0.0f, launchpos2 ) ; | |
7126 | get_offset_from_entity_in_world_coords( vehicle, dim_min[0] - 0.2f, dim_min[1] - 300.5f, 0.5f, targetpos1 ); | |
7127 | get_offset_from_entity_in_world_coords( vehicle, dim_max[0] + 0.2f, dim_min[1] - 300.5f, 0.5f, targetpos2 ); | |
7128 | //printf("Got offset\n"); | |
7129 | } | |
7130 | else | |
7131 | { | |
7132 | //printf("Got vehicle %i \n", vehicle); | |
7133 | get_offset_from_entity_in_world_coords( vehicle, dim_min[0] - 0.2f, dim_min[1] + 0.5f, 0.0f, launchpos1 ); | |
7134 | get_offset_from_entity_in_world_coords( vehicle, dim_max[0] + 0.2f, dim_min[1] + 0.5f, 0.0f, launchpos2 ); | |
7135 | get_offset_from_entity_in_world_coords( vehicle, dim_min[0] - 0.2f, dim_min[1] + 300.5f, 0.5f, targetpos1 ); | |
7136 | get_offset_from_entity_in_world_coords( vehicle, dim_max[0] + 0.2f, dim_min[1] + 300.5f, 0.5f, targetpos2 ); | |
7137 | //printf("Got offset 2\n"); | |
7138 | if ( Model == get_hash_key("surfer") || Model == get_hash_key("blazer") ) | |
7139 | { | |
7140 | //printf("Checked entity model\n"); | |
7141 | targetpos1[2] += 3.5f; | |
7142 | targetpos2[2] += 3.5f; | |
7143 | } | |
7144 | else | |
7145 | { | |
7146 | //printf("Checked entity model 2\n"); | |
7147 | targetpos1[2]--; | |
7148 | targetpos2[2]--; | |
7149 | } | |
7150 | } | |
7151 | float vSpeed = get_entity_speed( vehicle ); | |
7152 | if ( ( vSpeed * vSpeed ) > 1500 ) | |
7153 | { | |
7154 | rocket_speed = ( vSpeed * vSpeed ) + 100; | |
7155 | //printf("Got and multiplied rocket / car speed\n"); | |
7156 | } | |
7157 | else | |
7158 | { | |
7159 | rocket_speed = 1500; | |
7160 | } | |
7161 | if (custom){ | |
7162 | shoot_single_bullet_between_coords( launchpos1, targetpos1, 10, 0, get_hash_key("WEAPON_ASSAULTRIFLE"), rocketid, 1, 1, -1082130432 ); | |
7163 | shoot_single_bullet_between_coords( launchpos2, targetpos2, 10, 0, get_hash_key("WEAPON_ASSAULTRIFLE"), rocketid, 1, 1, -1082130432 ); | |
7164 | } | |
7165 | else{ | |
7166 | shoot_single_bullet_between_coords( launchpos1, targetpos1, 10, 0, get_hash_key("WEAPON_ASSAULTRIFLE"), PedID, 1, 1, -1082130432 ); | |
7167 | shoot_single_bullet_between_coords( launchpos2, targetpos2, 10, 0, get_hash_key("WEAPON_ASSAULTRIFLE"), PedID, 1, 1, -1082130432 ); | |
7168 | } | |
7169 | //printf("Fired vehicle rockets \n"); | |
7170 | } | |
7171 | } | |
7172 | } | |
7173 | ||
7174 | void nosloop() { | |
7175 | if (menuInputHandler->BButtonLSDown()) { | |
7176 | int Handle = GetCarCharIsIn(PlayerPedId(), 0); | |
7177 | if(Handle != 0) | |
7178 | { | |
7179 | if (is_vehicle_on_all_wheels(Handle)){ | |
7180 | set_vehicle_boost_active(Handle, 1); | |
7181 | unk_0x1D980479("RaceTurbo", 0, 0); | |
7182 | apply_force_to_entity(Handle, true, 0, 3.0f, 0, 0, 0, 0, true, true, true, true, false, true); | |
7183 | set_vehicle_boost_active(Handle, 0); | |
7184 | } | |
7185 | } | |
7186 | } | |
7187 | } | |
7188 | ||
7189 | DWORD WINAPI KeyboardThread(LPVOID Value) | |
7190 | { | |
7191 | int Index = (int)Value; | |
7192 | switch(Index) | |
7193 | { | |
7194 | case 0: | |
7195 | if (custom_per) { | |
7196 | ZeroMemory(&Overlapped2, sizeof(Overlapped2)); | |
7197 | XShowKeyboardUI(0, VKBD_LATIN_NUMERIC, L"", L"Chr0m3's Custom Performance", L"Please enter your desired performance 0 - 1000", Username2, 15, &Overlapped2 ); | |
7198 | while(!XHasOverlappedIoCompleted(&Overlapped2)) | |
7199 | Sleep(100); | |
7200 | float result = _wtof(Username2); | |
7201 | printf("Entered Float = %f \n", result); | |
7202 | set_vehicle_rpm(GetCarCharIsIn(PlayerPedId(), 0), result); | |
7203 | custom_per = false; | |
7204 | } | |
7205 | break; | |
7206 | case 1: | |
7207 | if (custom_plate) { | |
7208 | ZeroMemory(&Overlapped2, sizeof(Overlapped2)); | |
7209 | XShowKeyboardUI(0, VKBD_DEFAULT, L"", L"Chr0m3's Custom Plate Shop", L"Please enter your desired plate", Username2, 8, &Overlapped2 ); | |
7210 | while(!XHasOverlappedIoCompleted(&Overlapped2)) | |
7211 | Sleep(100); | |
7212 | char str[9]; | |
7213 | wcstombs(str, Username2, 9); | |
7214 | set_number_plate(GetCarCharIsIn(PlayerPedId(), 0), str); | |
7215 | custom_plate = false; | |
7216 | } | |
7217 | break; | |
7218 | case 2: | |
7219 | ZeroMemory(&Overlapped2, sizeof(Overlapped2)); | |
7220 | XShowKeyboardUI(0, VKBD_DEFAULT, L"", L"Chr0m3's Custom Model Changer", L"Please enter your desired model name (Example U_M_M_Jesus_01) \nNOTE: You may need to enter model more then once for it to register!", Username2, 20, &Overlapped2 ); | |
7221 | while(!XHasOverlappedIoCompleted(&Overlapped2)) | |
7222 | Sleep(100); | |
7223 | char str2[20]; | |
7224 | wcstombs(str2, Username2, 20); | |
7225 | scriptsetModel = get_hash_key(str2); | |
7226 | break; | |
7227 | case 3: | |
7228 | ZeroMemory(&Overlapped2, sizeof(Overlapped2)); | |
7229 | XShowKeyboardUI(0, VKBD_DEFAULT, L"", L"Chr0m3's Custom Vehicles", L"Please enter your desired vehicle name (Example pony2) \nNOTE: You may need to enter model more then once for it to register!", Username2, 20, &Overlapped2 ); | |
7230 | while(!XHasOverlappedIoCompleted(&Overlapped2)) | |
7231 | Sleep(100); | |
7232 | char str1[20]; | |
7233 | wcstombs(str1, Username2, 20); | |
7234 | car = true; | |
7235 | scriptsetModel = get_hash_key(str1); | |
7236 | break; | |
7237 | case 4: | |
7238 | ZeroMemory(&Overlapped2, sizeof(Overlapped2)); | |
7239 | XShowKeyboardUI(0, VKBD_DEFAULT, L"", L"Chr0m3's Custom Object", L"Please enter your desired object name (Example p_spinning_anus_s) \nNOTE: You may need to enter model more then once for it to register!", Username2, 20, &Overlapped2 ); | |
7240 | while(!XHasOverlappedIoCompleted(&Overlapped2)) | |
7241 | Sleep(100); | |
7242 | char str3[20]; | |
7243 | wcstombs(str3, Username2, 20); | |
7244 | objectspawn = true; | |
7245 | normalspawn = true; | |
7246 | model = get_hash_key(str3); | |
7247 | break; | |
7248 | } | |
7249 | return 0; | |
7250 | } | |
7251 | ||
7252 | int TogglePerf(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
7253 | custom_per = true; | |
7254 | CreateThread(0, 0, KeyboardThread, 0, 0, 0); | |
7255 | return 0; | |
7256 | } | |
7257 | ||
7258 | int CustomModel(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
7259 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
7260 | //scriptsetModel = -1026527405;//0x9CF26183; | |
7261 | wtf = true; | |
7262 | CreateThread(0, 0, KeyboardThread, (LPVOID)2, 0, 0); | |
7263 | return 0; | |
7264 | } | |
7265 | ||
7266 | int CustomVeh(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
7267 | { | |
7268 | CreateThread(0, 0, KeyboardThread, (LPVOID)3, 0, 0); | |
7269 | return 0; | |
7270 | } | |
7271 | ||
7272 | int CustomObject(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
7273 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
7274 | CreateThread(0, 0, KeyboardThread, (LPVOID)4, 0, 0); | |
7275 | return 0; | |
7276 | }// | |
7277 | void supercar() { | |
7278 | } | |
7279 | ||
7280 | bool speedon = false; | |
7281 | int Speed(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
7282 | if (!speedon) { | |
7283 | *(float*)0x82004F24 = 0.45f; | |
7284 | ShowMessageOnScreen("~b~ Super speed / grip turned on"); | |
7285 | speedon = true; | |
7286 | } | |
7287 | else { | |
7288 | *(float*)0x82004F24 = 0.16666667f; | |
7289 | ShowMessageOnScreen("~b~ Super speed / grip turned off"); | |
7290 | speedon = false; | |
7291 | } | |
7292 | return 0; | |
7293 | } | |
7294 | ||
7295 | int GiveCash(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
7296 | //int Addr = 0x83AF8068; | |
7297 | //*(__int64 *)(*(int *)(*(int *)(*(int *)Addr + 4) + ((*(int *)(Addr + 4) << 3) + 4)) + 8) = 999999999; | |
7298 | ((void(*)(int,int,int))0x82C5D738)(999999999, 0, 1); | |
7299 | ShowMessageOnScreen("~b~ Cash given!"); | |
7300 | return 0; | |
7301 | } | |
7302 | ||
7303 | int AttachPedHandle; | |
7304 | int AttachBouy(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
7305 | AttachPedHandle = selectedMenuIndexes->operator[](1); | |
7306 | //0x64611296 Alien 0x9CF26183 Playboy (naked) | |
7307 | /*printf("wtf\n"); | |
7308 | AttachPedHandle = selectedMenuIndexes->operator[](1); | |
7309 | printf("Error here? \n"); | |
7310 | attachspawn = true; | |
7311 | printf("1 Error here? \n"); | |
7312 | objectspawn = true; | |
7313 | printf("2 Error here? \n"); | |
7314 | scriptsetModel = 0x1B276762; | |
7315 | printf("3 Error here? \n");*/ | |
7316 | attach_entity_to_entity(PlayerPedId(), GetPlayerHandle(AttachPedHandle), -1, 0, -0.3, 0, 0, 0, 0); | |
7317 | ShowMessageOnScreen("~b~ Attached to player!"); | |
7318 | return 0; | |
7319 | } | |
7320 | bool pedobject; | |
7321 | int spawnedobject; | |
7322 | bool spawn_egg = false; | |
7323 | int AttachBouy2(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
7324 | animid = selectedMenuIndexes->operator[](1); | |
7325 | spawn_egg = true; | |
7326 | spawnedobject = 1803116220; | |
7327 | z10 = 1.0; | |
7328 | ShowMessageOnScreen("~b~ Attached egg to player!"); | |
7329 | return 0; | |
7330 | } | |
7331 | ||
7332 | bool spawn_sword = false; | |
7333 | int Sword(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
7334 | { | |
7335 | //#ifdef PRIVATE | |
7336 | GiveWeaponDelayed(PlayerPedId(), 0x99B507EA, 9999, 1); // knife | |
7337 | //spawnedobject = get_hash_key("prop_boxing_glove_01"); | |
7338 | spawnedobject = get_hash_key("prop_cs_katana_01"); | |
7339 | spawn_sword = true; | |
7340 | ShowMessageOnScreen("~b~ You have been given a sword!"); | |
7341 | //#else | |
7342 | //ShowMessageOnScreen("~r~ Sorry this is only available in the private version!"); | |
7343 | //#endif | |
7344 | return 0; | |
7345 | } | |
7346 | ||
7347 | bool spawn_glove = false; | |
7348 | int Glove(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) | |
7349 | { | |
7350 | //#ifdef PRIVATE | |
7351 | spawnedobject = get_hash_key("prop_boxing_glove_01"); | |
7352 | spawn_glove = true; | |
7353 | ShowMessageOnScreen("~b~ You have been given a boxing glove!"); | |
7354 | //#else | |
7355 | //ShowMessageOnScreen("~r~ Sorry this is only available in the private version!"); | |
7356 | //#endif | |
7357 | return 0; | |
7358 | } | |
7359 | ||
7360 | bool spawn_cone = false; | |
7361 | int AttachCone(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
7362 | animid = selectedMenuIndexes->operator[](1); | |
7363 | spawn_cone = true; | |
7364 | spawnedobject = -534360227; | |
7365 | //z10 = 0.7; | |
7366 | ShowMessageOnScreen("~b~ Attached cone to player!"); | |
7367 | return 0; | |
7368 | } | |
7369 | ||
7370 | bool rapid_fire = false; | |
7371 | int RapidFire(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
7372 | if (!rapid_fire) { | |
7373 | ShowMessageOnScreen("~b~ Firework guns on"); | |
7374 | rapid_fire = true; | |
7375 | } | |
7376 | else if (rapid_fire) | |
7377 | { | |
7378 | ShowMessageOnScreen("~b~ Firework guns off"); | |
7379 | rapid_fire = false; | |
7380 | } | |
7381 | return 0; | |
7382 | } | |
7383 | ||
7384 | bool firework_gun = false; | |
7385 | int FireworkGun(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
7386 | if (!firework_gun) { | |
7387 | fexp1 = "scr_indep_firework_starburst"; | |
7388 | fr = 1.0, fg = 0, fb = 0; | |
7389 | ShowMessageOnScreen("~b~ Firework guns on"); | |
7390 | fwsize = 1.0; | |
7391 | firework_gun = true; | |
7392 | } | |
7393 | else if (firework_gun) | |
7394 | { | |
7395 | ShowMessageOnScreen("~b~ Firework guns off"); | |
7396 | firework_gun = false; | |
7397 | } | |
7398 | return 0; | |
7399 | } | |
7400 | ||
7401 | /*void set_self_ammo_as_max_ammo() | |
7402 | { | |
7403 | Var32 var_0; | |
7404 | Var32 var_1; | |
7405 | var_0 = int get_current_weapon_hash(); | |
7406 | Stack.Push( set_ammo_in_clip( player_ped_id(), var_0, get_max_ammo_in_clip( player_ped_id(), var_0, 1 ) ) ); | |
7407 | if ( is_ped_shooting( player_ped_id() ) ) | |
7408 | { | |
7409 | if ( (((GetHash("WEAPON_RPG") == var_0 || GetHash("WEAPON_STINGER") == var_0) || GetHash("WEAPON_PASSENGER_ROCKET") == var_0) || GetHash("WEAPON_STUNGUN") == var_0) ) | |
7410 | { | |
7411 | set_current_ped_weapon( player_ped_id(), GetHash("WEAPON_MICROSMG"), 1 ); | |
7412 | set_current_ped_weapon( player_ped_id(), var_0, 1 ); | |
7413 | } | |
7414 | } | |
7415 | }*/ | |
7416 | ||
7417 | ||
7418 | bool creator_obj = false; | |
7419 | int AttachCreator(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
7420 | animid = selectedMenuIndexes->operator[](1); | |
7421 | if (Create) { | |
7422 | creator_obj = true; | |
7423 | ShowMessageOnScreen("~b~ Attached object to player!"); | |
7424 | } | |
7425 | else { ShowMessageOnScreen("~r~ You can't use this unless you have object selected using creator mode"); | |
7426 | } | |
7427 | return 0; | |
7428 | } | |
7429 | ||
7430 | int AttachWeed(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
7431 | animid = selectedMenuIndexes->operator[](1); | |
7432 | pedobject = true; | |
7433 | spawnedobject = 452618762; | |
7434 | z10 = 0; | |
7435 | ShowMessageOnScreen("~b~ Attached weed to player!"); | |
7436 | return 0; | |
7437 | } | |
7438 | ||
7439 | int AttachNeon(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
7440 | animid = selectedMenuIndexes->operator[](1); | |
7441 | pedobject = true; | |
7442 | spawnedobject = 1433474877; | |
7443 | z10 = 0; | |
7444 | ShowMessageOnScreen("~b~ Attached beer neon to player!"); | |
7445 | return 0; | |
7446 | }// | |
7447 | ||
7448 | int PiggieBack(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
7449 | AttachPedHandle = selectedMenuIndexes->operator[](1); | |
7450 | attach_entity_to_entity(PlayerPedId(), GetPlayerHandle(AttachPedHandle), -1, 0, -0.3, 0, 0, 0, 0); | |
7451 | animdict = "mini@prostitutes@sexnorm_veh"; | |
7452 | anim = "bj_loop_male"; | |
7453 | animid = PlayerId(); | |
7454 | vm_anim = true; | |
7455 | ShowMessageOnScreen("~b~ Piggy back!"); | |
7456 | return 0; | |
7457 | } | |
7458 | bool funnyshit = false; | |
7459 | int FuckPlayer(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
7460 | AttachPedHandle = selectedMenuIndexes->operator[](1); | |
7461 | attach_entity_to_entity(PlayerPedId(), GetPlayerHandle(AttachPedHandle), -1, 0, -0.3, 0, 0, 0, 0); | |
7462 | if (!funnyshit) { | |
7463 | animdict = "rcmpaparazzo_2"; | |
7464 | anim = "shag_loop_a"; | |
7465 | animid = AttachPedHandle; | |
7466 | vm_anim = true; | |
7467 | funnyshit = true; // player | |
7468 | } | |
7469 | if (funnyshit) { | |
7470 | animdict = "rcmpaparazzo_2"; | |
7471 | anim = "shag_loop_poppy"; | |
7472 | animid = PlayerId(); | |
7473 | vm_anim = true; | |
7474 | funnyshit = false; // you | |
7475 | } | |
7476 | ShowMessageOnScreen("~b~ Enjoy the root!"); | |
7477 | return 0; | |
7478 | } | |
7479 | ||
7480 | int ChopPiss1(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
7481 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
7482 | animdict = "creatures@rottweiler@move"; | |
7483 | anim = "pee_right_enter"; | |
7484 | animid = PlayerId(); | |
7485 | vm_anim = true; | |
7486 | return 0; | |
7487 | } | |
7488 | ||
7489 | int ChopPiss2(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
7490 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
7491 | animdict = "creatures@rottweiler@move"; | |
7492 | anim = "pee_right_idle"; | |
7493 | animid = PlayerId(); | |
7494 | vm_anim = true; | |
7495 | return 0; | |
7496 | } | |
7497 | ||
7498 | int ChopPiss3(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
7499 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
7500 | animdict = "creatures@rottweiler@move"; | |
7501 | anim = "pee_right_exit"; | |
7502 | animid = PlayerId(); | |
7503 | vm_anim = true; | |
7504 | return 0; | |
7505 | } | |
7506 | ||
7507 | int ChopDump(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
7508 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
7509 | animdict = "creatures@rottweiler@move"; | |
7510 | anim = "dump_loop"; | |
7511 | animid = PlayerId(); | |
7512 | vm_anim = true; | |
7513 | return 0; | |
7514 | } | |
7515 | ||
7516 | int ChopAttack2(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
7517 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
7518 | animdict = "creatures@rottweiler@melee@streamed_core@"; | |
7519 | anim = "attack"; | |
7520 | animid = PlayerId(); | |
7521 | vm_anim = true; | |
7522 | return 0; | |
7523 | } | |
7524 | ||
7525 | int ChopAttack1(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
7526 | int subMenuIndex = selectedMenuIndexes->operator[](1); | |
7527 | animdict = "creatures@rottweiler@melee@streamed_core@"; | |
7528 | anim = "ground_attack_0"; | |
7529 | animid = PlayerId(); | |
7530 | vm_anim = true; | |
7531 | return 0; | |
7532 | } | |
7533 | ||
7534 | int Detach(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
7535 | detach_entity(PlayerPedId()); | |
7536 | ShowMessageOnScreen("~b~ Detached"); | |
7537 | return 0; | |
7538 | } | |
7539 | float z = 0; | |
7540 | float unk = 4.0; | |
7541 | float unk1 = 2.5; | |
7542 | int RedNeon(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
7543 | neonr = 255, neong = 0, neonb = 0; | |
7544 | z = 0; | |
7545 | unk = 4.0; | |
7546 | unk1 = 2.5; | |
7547 | return 0; | |
7548 | } | |
7549 | ||
7550 | int GreenNeon(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
7551 | neonr = 0, neong = 255, neonb = 0; | |
7552 | z = 0; | |
7553 | unk = 4.0; | |
7554 | unk1 = 2.5; | |
7555 | return 0; | |
7556 | } | |
7557 | int BlueNeon(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
7558 | neonr = 0, neong = 0, neonb = 255; | |
7559 | z = 0; | |
7560 | unk = 4.0; | |
7561 | unk1 = 2.5; | |
7562 | return 0; | |
7563 | } | |
7564 | int PinkNeon(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
7565 | neonr = 255, neong = 51, neonb = 255; | |
7566 | z = 0; | |
7567 | unk = 4.0; | |
7568 | unk1 = 2.5; | |
7569 | return 0; | |
7570 | } | |
7571 | int PurpleNeon(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
7572 | neonr = 153, neong = 0, neonb = 153; | |
7573 | z = 0; | |
7574 | unk = 4.0; | |
7575 | unk1 = 2.5; | |
7576 | return 0; | |
7577 | } | |
7578 | int OrangeNeon(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
7579 | neonr = 255, neong = 128, neonb = 0; | |
7580 | z = 0; | |
7581 | unk = 4.0; | |
7582 | unk1 = 2.5; | |
7583 | return 0; | |
7584 | } | |
7585 | int CyanNeon(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
7586 | neonr = 0, neong = 204, neonb = 204; | |
7587 | z = 0; | |
7588 | unk = 4.0; | |
7589 | unk1 = 2.5; | |
7590 | return 0; | |
7591 | } | |
7592 | bool neons = false; | |
7593 | int ToggleNeon(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
7594 | if (!neons) { | |
7595 | neons = true; | |
7596 | ShowMessageOnScreen("~b~ Only you can see these neons"); | |
7597 | } | |
7598 | else if (neons) { | |
7599 | neons = false; | |
7600 | ShowMessageOnScreen("~b~ Only you can see these neons"); | |
7601 | } | |
7602 | return 0; | |
7603 | } | |
7604 | ||
7605 | void neonloop() { | |
7606 | float Pos[3]; | |
7607 | GetEntityCoords(GetCarCharIsIn(PlayerPedId(), 0), Pos); | |
7608 | draw_light_with_range(Pos[0], Pos[1], Pos[2] - z, neonr, neong, neonb, unk, unk1); | |
7609 | } | |
7610 | ||
7611 | int PlateThreadValue = -1; | |
7612 | int ChangePlate1(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) { | |
7613 | custom_plate = true; | |
7614 | CreateThread(0, 0, KeyboardThread, (LPVOID)1, 0, 0); | |
7615 | return 0; | |
7616 | } | |
7617 | ||
7618 | // | |
7619 | ||
7620 | ||
7621 | // for handling crashes | |
7622 | LONG WINAPI Exception(struct _EXCEPTION_POINTERS *e) { | |
7623 | printf("GTAV Menu crashed for some reason"); | |
7624 | ||
7625 | HalReturnToFirmware(HalRebootQuiesceRoutine); | |
7626 | ||
7627 | return 0; | |
7628 | } | |
7629 | ||
7630 | // Our menu setup function | |
7631 | void SetupMenu() { | |
7632 | // Allocate our input handler | |
7633 | menuInputHandler = new Input; | |
7634 | ||
7635 | // Setup menu | |
7636 | mainMenu = new GTAVMenu; | |
7637 | playerOptionsMenu = new GTAVMenu; | |
7638 | vehicleOptionMenu = new GTAVMenu; | |
7639 | weaponOptionsMenu = new GTAVMenu; | |
7640 | onlinePlayers = new GTAVMenu; | |
7641 | onlinePlayersSubMenu = new GTAVMenu; | |
7642 | CarSpawnerMenu = new GTAVMenu; | |
7643 | OnlinePlayerVehicleOptions = new GTAVMenu; | |
7644 | OnlinePlayerTeleport = new GTAVMenu; | |
7645 | NaughtyStuff = new GTAVMenu; | |
7646 | NiceStuff = new GTAVMenu; | |
7647 | AllOnlinePlayers = new GTAVMenu; | |
7648 | TeleMenu = new GTAVMenu; | |
7649 | ModelChanger = new GTAVMenu; | |
7650 | MiscOptions = new GTAVMenu; | |
7651 | AnimalModels = new GTAVMenu; | |
7652 | ObjectAttachments = new GTAVMenu; | |
7653 | ExtraNaughtyStuff = new GTAVMenu; | |
7654 | ObjectOptions = new GTAVMenu; | |
7655 | ObjectOptions1 = new GTAVMenu; | |
7656 | FunnyCarOptions = new GTAVMenu; | |
7657 | ChopAnims = new GTAVMenu; | |
7658 | Chr0m3 = new GTAVMenu; | |
7659 | ModShop = new GTAVMenu; | |
7660 | PerformanceMenu = new GTAVMenu; | |
7661 | BodyMenu = new GTAVMenu; | |
7662 | WheelMenu = new GTAVMenu; | |
7663 | ArmourMenu = new GTAVMenu; | |
7664 | HighEnd = new GTAVMenu; | |
7665 | EngineMenu = new GTAVMenu; | |
7666 | TransMenu = new GTAVMenu; | |
7667 | BrakesMenu = new GTAVMenu; | |
7668 | SuspMenu = new GTAVMenu; | |
7669 | ExMenu = new GTAVMenu; | |
7670 | FbMenu = new GTAVMenu; | |
7671 | RbMenu = new GTAVMenu; | |
7672 | SkMenu = new GTAVMenu; | |
7673 | InteriorMenu = new GTAVMenu; | |
7674 | HoodMenu = new GTAVMenu; | |
7675 | GrillMenu = new GTAVMenu; | |
7676 | SpoilerMenu = new GTAVMenu; | |
7677 | Lowrider = new GTAVMenu; | |
7678 | Muscle = new GTAVMenu; | |
7679 | Offroad = new GTAVMenu; | |
7680 | Sport = new GTAVMenu; | |
7681 | SportMenu2 = new GTAVMenu; | |
7682 | SUV = new GTAVMenu; | |
7683 | Tuner = new GTAVMenu; | |
7684 | TunerMenu2 = new GTAVMenu; | |
7685 | Pegasus = new GTAVMenu; | |
7686 | Weather = new GTAVMenu; | |
7687 | SpeedoMeter = new GTAVMenu; | |
7688 | RankUnlock = new GTAVMenu; | |
7689 | RGMenu = new GTAVMenu; | |
7690 | FWMenu = new GTAVMenu; | |
7691 | VWMenu = new GTAVMenu; | |
7692 | ||
7693 | ||
7694 | #ifdef DEVKIT && Auth | |
7695 | if(IsFalseAuthed) | |
7696 | DmSetMemory((LPVOID)SetupMenu, 0xF00, new byte[0xF00], 0); | |
7697 | #endif | |
7698 | ||
7699 | // Setup player options | |
7700 | playerOptionsMenu->SetMenuTitle("Player Options"); | |
7701 | playerOptionsMenu->AddStaticItem("Toggle Invincibility", true, ToggleInvincibility, NULL); | |
7702 | playerOptionsMenu->AddStaticItem("Super Jump", true, SuperJump, NULL); | |
7703 | playerOptionsMenu->AddStaticItem("Super Run", true, SuperRun, NULL); | |
7704 | playerOptionsMenu->AddStaticItem("Invisible Player", true, InvisiblePlayer, NULL); | |
7705 | ||
7706 | // Setup vehicle options menu | |
7707 | vehicleOptionMenu->SetMenuTitle("Vehicle Options"); | |
7708 | vehicleOptionMenu->AddStaticItem("Rainbow Car", true, ToggleRainbow, NULL); | |
7709 | vehicleOptionMenu->AddStaticItem("Invincible Vehicle", true, ToggleInvisibleCar, NULL); | |
7710 | vehicleOptionMenu->AddStaticItem("Invincible Vehicle Loop", true, ToggleInvincibleCar, NULL); | |
7711 | vehicleOptionMenu->AddStaticItem("Fix And Wash Vehicle", false, FixMyCar, NULL); | |
7712 | vehicleOptionMenu->AddStaticItem("Invisible Vehicle", true, SetCarInvisible, NULL); | |
7713 | vehicleOptionMenu->AddStaticItem("Toggle Vehicle Collision", true, SetCarCol, NULL); | |
7714 | vehicleOptionMenu->AddStaticItem("Lower Vehicle", true, LowerVehicle, NULL); | |
7715 | vehicleOptionMenu->AddStaticItem("Paint Vehicle Chrome", false, PaintChrome, NULL); | |
7716 | vehicleOptionMenu->AddStaticItem("Paint Vehicle Random", false, RandomPaint, NULL); | |
7717 | vehicleOptionMenu->AddStaticItem("Change License Plate", false, ChangePlate1, NULL); | |
7718 | vehicleOptionMenu->AddStaticItem("Vehicle Nitrous", true, ToggleNos, NULL); | |
7719 | vehicleOptionMenu->AddStaticItem("Slidey Cars", true, Slidey, NULL); | |
7720 | vehicleOptionMenu->AddStaticItem("Handbrake Slidey Cars", true, SlideyHand, NULL); | |
7721 | vehicleOptionMenu->AddStaticItem("Lock Vehicle", false, Lock, NULL); | |
7722 | vehicleOptionMenu->AddStaticItem("Unlock Vehicle", false, Unlock, NULL); | |
7723 | vehicleOptionMenu->AddStaticItem("Drive On Water", true, DriveWater, NULL); | |
7724 | vehicleOptionMenu->AddStaticItem("Drive In Air", true, DriveAir, NULL); | |
7725 | vehicleOptionMenu->AddStaticItem("KMH Speedometer", true, DriveAirGz, NULL); | |
7726 | vehicleOptionMenu->AddSubMenu("Vehicle Weapons", VWMenu); | |
7727 | ||
7728 | VWMenu->SetMenuTitle("Vehicle Weapon Menu"); | |
7729 | VWMenu->AddStaticItem("Vehicle Rockets", true, ToggleRocket, NULL); | |
7730 | VWMenu->AddStaticItem("Vehicle Super Machineguns", true, ToggleMg, NULL); | |
7731 | VWMenu->AddStaticItem("Vehicle Machineguns", true, ToggleMini, NULL); | |
7732 | VWMenu->AddStaticItem("Disable Weapon Trackers", true, PlayerAcuse, NULL); | |
7733 | VWMenu->AddStaticItem("Vehicle Fireworks", true, ToggleFWVehicle, NULL); | |
7734 | ||
7735 | // Setup weapon options menu | |
7736 | weaponOptionsMenu->SetMenuTitle("Weapon Options"); | |
7737 | weaponOptionsMenu->AddStaticItem("Give Stun Gun", false, GiveStunGun, NULL); | |
7738 | weaponOptionsMenu->AddStaticItem("Give All Weapons", false, GiveAllWeapons, NULL); | |
7739 | weaponOptionsMenu->AddStaticItem("Car Gun", true, ToggleUltimateDeagle, NULL); | |
7740 | weaponOptionsMenu->AddStaticItem("Unlimited Ammo", true, ToggleAmmo, NULL); | |
7741 | weaponOptionsMenu->AddStaticItem("Aimbot", true, ToggleAimbot, NULL); | |
7742 | weaponOptionsMenu->AddStaticItem("Give Sword", false, Sword, NULL); | |
7743 | weaponOptionsMenu->AddStaticItem("Give Boxing Glove", false, Glove, NULL); | |
7744 | weaponOptionsMenu->AddSubMenu("Rocket Gun Options", RGMenu); | |
7745 | weaponOptionsMenu->AddSubMenu("Firework Gun Options", FWMenu); | |
7746 | ||
7747 | FWMenu->SetMenuTitle("Firework Weapon Options"); | |
7748 | FWMenu->AddStaticItem("Firework Explosion Gun", true, RapidFire, NULL); | |
7749 | FWMenu->AddStaticItem("Firework Gun", true, FireworkGun, NULL); | |
7750 | FWMenu->AddStaticItem("Fountain Firework", false, FireWorkExp_0, NULL);// OnlinePlayerWanted | |
7751 | FWMenu->AddStaticItem("Shortburst Firework", false, FireWorkExp_1, NULL);// OnlinePlayerWanted | |
7752 | FWMenu->AddStaticItem("Starburst Firework", false, FireWorkExp_2, NULL);// OnlinePlayerWanted | |
7753 | FWMenu->AddStaticItem("Trailburst Firework", false, FireWorkExp_3, NULL);// OnlinePlayerWanted*/ | |
7754 | FWMenu->AddStaticItem("Normal Size", false, FWOpt, NULL); | |
7755 | FWMenu->AddStaticItem("Medium Size", false, FWOpt1, NULL); | |
7756 | FWMenu->AddStaticItem("Big Size", false, FWOpt2, NULL); | |
7757 | FWMenu->AddStaticItem("Red", false, FWOpt3, NULL); | |
7758 | FWMenu->AddStaticItem("Green", false, FWOpt4, NULL); | |
7759 | FWMenu->AddStaticItem("Blue", false, FWOpt5, NULL); | |
7760 | FWMenu->AddStaticItem("Pink", false, FWOpt6, NULL); | |
7761 | FWMenu->AddStaticItem("Purple", false, FWOpt7, NULL); | |
7762 | FWMenu->AddStaticItem("Orange", false, FWOpt8, NULL); | |
7763 | FWMenu->AddStaticItem("Cyan", false, FWOpt9, NULL); | |
7764 | FWMenu->AddStaticItem("Rainbow Cycle", true, FWOpt10, NULL); | |
7765 | //FWMenu->AddStaticItem("Gold", false, FWOpt9, NULL); | |
7766 | ||
7767 | RGMenu->SetMenuTitle("Rocket Gun Options"); | |
7768 | RGMenu->AddStaticItem("Rocket Guns", true, ToggleRocketGun, NULL); | |
7769 | RGMenu->AddStaticItem("Gas Leak", false, RocketGunExp0, NULL); | |
7770 | RGMenu->AddStaticItem("Hydrant", false, RocketGunExp1, NULL); | |
7771 | RGMenu->AddStaticItem("Smoke Cloud", false, RocketGunExp2, NULL); | |
7772 | RGMenu->AddStaticItem("Flare", false, RocketGunExp3, NULL); | |
7773 | RGMenu->AddStaticItem("Steam", false, RocketGunExp4, NULL); | |
7774 | RGMenu->AddStaticItem("Small Explosion", false, RocketGunExp5, NULL); | |
7775 | RGMenu->AddStaticItem("Medium Explosion", false, RocketGunExp6, NULL); | |
7776 | RGMenu->AddStaticItem("Massive Explosion", false, RocketGunExp7, NULL); | |
7777 | ||
7778 | ||
7779 | ||
7780 | ||
7781 | // Setup online sub players | |
7782 | onlinePlayersSubMenu->SetMenuTitle("Online Players Options"); | |
7783 | onlinePlayersSubMenu->AddSubMenu("Vehicle Options", OnlinePlayerVehicleOptions); | |
7784 | onlinePlayersSubMenu->AddSubMenu("Teleport", OnlinePlayerTeleport); | |
7785 | onlinePlayersSubMenu->AddSubMenu("Naughty Stuff", NaughtyStuff); | |
7786 | onlinePlayersSubMenu->AddSubMenu("Very Naughty Stuff", ExtraNaughtyStuff); | |
7787 | onlinePlayersSubMenu->AddSubMenu("Nice Stuff", NiceStuff); | |
7788 | onlinePlayersSubMenu->AddSubMenu("Attach Menu", ObjectAttachments); | |
7789 | ||
7790 | // object attach menu | |
7791 | ObjectAttachments->SetMenuTitle("Attach Menu"); | |
7792 | ObjectAttachments->AddStaticItem("Attach To Player", false, AttachBouy, NULL); | |
7793 | ObjectAttachments->AddStaticItem("Detach", false, Detach, NULL); | |
7794 | ObjectAttachments->AddStaticItem("Attach Alien Egg", false, AttachBouy2, NULL); | |
7795 | ObjectAttachments->AddStaticItem("Attach Weed", false, AttachWeed, NULL); | |
7796 | ObjectAttachments->AddStaticItem("Attach Beer Neon", false, AttachNeon, NULL); | |
7797 | ObjectAttachments->AddStaticItem("Attach Traffic Cone", false, AttachCone, NULL); | |
7798 | ObjectAttachments->AddStaticItem("Attach Creator Object", false, AttachCreator, NULL); | |
7799 | //ObjectAttachments->AddStaticItem("Have Sex With Player", false, FuckPlayer, NULL); | |
7800 | ||
7801 | // model changer menu | |
7802 | ModelChanger->SetMenuTitle("Model Changer Menu"); | |
7803 | ModelChanger->AddStaticItem("Alien", false, AlienModel, NULL); | |
7804 | ModelChanger->AddStaticItem("Topless", false, StripperModel, NULL); | |
7805 | ModelChanger->AddStaticItem("Stripper", false, OnlineStripper, NULL); | |
7806 | ModelChanger->AddStaticItem("Invisible", false, InvisibleModel, NULL); | |
7807 | ModelChanger->AddStaticItem("Zombie", false, ZombieModel, NULL); | |
7808 | ModelChanger->AddStaticItem("Gunman", false, GunmanModel, NULL); | |
7809 | ModelChanger->AddStaticItem("Prisoner", false, PrisonnModel, NULL); | |
7810 | ModelChanger->AddStaticItem("Swat", false, SwatModel, NULL); | |
7811 | ModelChanger->AddStaticItem("Clown", false, ClownModel, NULL); | |
7812 | ModelChanger->AddStaticItem("Bugstars", false, Bugstars, NULL); | |
7813 | ModelChanger->AddStaticItem("Diper Dildo Man", false, Diper, NULL); | |
7814 | ModelChanger->AddStaticItem("Fatso", false, Fatso, NULL); | |
7815 | ModelChanger->AddStaticItem("Naked Man", false, NakedMan, NULL); | |
7816 | ModelChanger->AddStaticItem("Space Man", false, SpaceMan, NULL); | |
7817 | ModelChanger->AddStaticItem("Statue Man", false, StatueMan, NULL); | |
7818 | ModelChanger->AddStaticItem("Johhny", false, Johhny, NULL); | |
7819 | ModelChanger->AddStaticItem("FBI Suit", false, FBI, NULL); | |
7820 | ModelChanger->AddStaticItem("Micheal", false, Micheal, NULL); | |
7821 | ModelChanger->AddStaticItem("Franklin", false, Franklin, NULL); | |
7822 | ModelChanger->AddStaticItem("Trevor", false, Trevor, NULL); | |
7823 | ModelChanger->AddStaticItem("Buff Dude", false, BuffDude, NULL); | |
7824 | ModelChanger->AddSubMenu("More + Animal Models", AnimalModels); | |
7825 | ||
7826 | // animal models | |
7827 | AnimalModels->SetMenuTitle("More + Animal Models"); | |
7828 | AnimalModels->AddStaticItem("Impotenet Rage", false, RageModel, NULL); | |
7829 | AnimalModels->AddStaticItem("Male With Pants Down", false, MalePants, NULL); | |
7830 | AnimalModels->AddStaticItem("Female With Skirt Up", false, FemalePants, NULL); | |
7831 | AnimalModels->AddStaticItem("Slender Man", false, Slendy, NULL); | |
7832 | AnimalModels->AddStaticItem("Bigfoot", false, FootModel, NULL);//rottweiler | |
7833 | AnimalModels->AddStaticItem("Jesus", false, JesusModel, NULL);//rottweiler | |
7834 | AnimalModels->AddStaticItem("Space Ranger", false, RangerModel, NULL);//rottweiler | |
7835 | AnimalModels->AddStaticItem("Drunk Mexican", false, MexicanModel, NULL);//rottweiler | |
7836 | AnimalModels->AddStaticItem("Classy Stripper", false, Hippy, NULL);//rottweiler | |
7837 | AnimalModels->AddStaticItem("Gang Member", false, Gangster, NULL);//rottweiler | |
7838 | AnimalModels->AddStaticItem("Space Monkey", false, MonkeySpaceModel, NULL);//rottweiler | |
7839 | AnimalModels->AddStaticItem("Boar", false, BoarModel, NULL); | |
7840 | AnimalModels->AddStaticItem("Chop", false, ChopModel, NULL); | |
7841 | AnimalModels->AddStaticItem("Coyote", false, CoyoteModel, NULL); | |
7842 | AnimalModels->AddStaticItem("Husky", false, HuskyModel, NULL); | |
7843 | AnimalModels->AddStaticItem("Mountain Lion", false, MtLion, NULL); | |
7844 | AnimalModels->AddStaticItem("Pig", false, PigModel, NULL); | |
7845 | AnimalModels->AddStaticItem("Retriever", false, RetModel, NULL); | |
7846 | AnimalModels->AddStaticItem("Rottweiler", false, RotModel, NULL); | |
7847 | AnimalModels->AddStaticItem("Shepherd", false, ShepModel, NULL);//rottweiler | |
7848 | AnimalModels->AddStaticItem("Chimp", false, ChimpModel, NULL);//rottweiler | |
7849 | AnimalModels->AddStaticItem("Monkey", false, MonkeyModel, NULL);//rottweiler | |
7850 | AnimalModels->AddStaticItem("Enter Custom Model", false, CustomModel, NULL);//rottweiler | |
7851 | ||
7852 | ||
7853 | // Online player vehicle options | |
7854 | ||
7855 | OnlinePlayerVehicleOptions->SetMenuTitle("Vehicle Options"); | |
7856 | OnlinePlayerVehicleOptions->AddStaticItem("Change Colour Of Players Car", false, PaintOnlinePlayersCar, NULL); | |
7857 | OnlinePlayerVehicleOptions->AddStaticItem("Paint Players Car Chrome", false, PaintOnlinePlayersCarChrome, NULL); | |
7858 | OnlinePlayerVehicleOptions->AddStaticItem("Stall And Light On Fire", false, ExplodeOnlinePlayerVehicle, NULL); | |
7859 | OnlinePlayerVehicleOptions->AddStaticItem("Launch Players Vehicle In Sky", false, SendPlayersCarToSpace, NULL); | |
7860 | OnlinePlayerVehicleOptions->AddStaticItem("Tow Truck", false, TowTruck, NULL); | |
7861 | OnlinePlayerVehicleOptions->AddStaticItem("Remote Control Car", false, RcCar, NULL); | |
7862 | OnlinePlayerVehicleOptions->AddStaticItem("Detach Towtruck / RC", false, DetachTowTruck, NULL); | |
7863 | OnlinePlayerVehicleOptions->AddStaticItem("Lock Player Doors", false, LockPlayersDoors, NULL); | |
7864 | OnlinePlayerVehicleOptions->AddStaticItem("Steal Players Vehicle", false, ChangePlatePlayer, NULL); | |
7865 | OnlinePlayerVehicleOptions->AddStaticItem("Kick Player Out Of Personal", false, LMAO, NULL); | |
7866 | OnlinePlayerVehicleOptions->AddStaticItem("Delete Vehicle", false, DeleteVehicle, NULL); | |
7867 | ||
7868 | // Online player teleport options | |
7869 | ||
7870 | OnlinePlayerTeleport->SetMenuTitle("Teleport Options"); | |
7871 | OnlinePlayerTeleport->AddStaticItem("Teleport To Player", false, TeleportToOnlinePlayer, NULL); | |
7872 | OnlinePlayerTeleport->AddStaticItem("Teleport Player In Car To You", false, TeleportPlayerToMe, NULL); | |
7873 | OnlinePlayerTeleport->AddStaticItem("Teleport Player On Foot To You", false, LolWanderTele, NULL); | |
7874 | OnlinePlayerTeleport->AddStaticItem("Teleport Player To Prison", false, PrisonTele, NULL); | |
7875 | OnlinePlayerTeleport->AddStaticItem("Teleport Into Vehicle", false, TeleportInToCar, NULL); | |
7876 | OnlinePlayerTeleport->AddStaticItem("Teleport Player On Foot To WP", false, TeleportWayOnline, NULL); | |
7877 | ||
7878 | ||
7879 | // Online Player naughty stuff | |
7880 | ||
7881 | NaughtyStuff->SetMenuTitle("Naughty Stuff"); | |
7882 | NaughtyStuff->AddStaticItem("Set Explosion On Player", false, BlowUpOnlinePlayer, NULL); | |
7883 | NaughtyStuff->AddStaticItem("Invisible Nuke On Player", false, BlowUpOnlinePlayerInvisible, NULL); | |
7884 | NaughtyStuff->AddStaticItem("Hydrant Explosion On Player", false, BlowUpOnlinePlayerWater, NULL); | |
7885 | NaughtyStuff->AddStaticItem("Kick Player", false, KickOnlinePlayer, NULL); | |
7886 | NaughtyStuff->AddStaticItem("Remove All Weapons", false, RemoveOnlinePlayerWeapons, NULL); | |
7887 | NaughtyStuff->AddStaticItem("Revenge Served Pink", false, PinkOnlinePlayerVehicle, NULL); | |
7888 | NaughtyStuff->AddStaticItem("Give Player 5 Stars", false, OnlinePlayerWanted, NULL);// OnlinePlayerWanted | |
7889 | NaughtyStuff->AddStaticItem("Fountain Firework", false, FireWorkExp, NULL);// OnlinePlayerWanted | |
7890 | NaughtyStuff->AddStaticItem("Shortburst Firework", false, FireWorkExp1, NULL);// OnlinePlayerWanted | |
7891 | NaughtyStuff->AddStaticItem("Starburst Firework", false, FireWorkExp2, NULL);// OnlinePlayerWanted | |
7892 | NaughtyStuff->AddStaticItem("Trailburst Firework", false, FireWorkExp3, NULL);// OnlinePlayerWanted | |
7893 | //NaughtyStuff->AddStaticItem("Make Chop Attack Player", false, ChopAttack, NULL);// OnlinePlayerWanted | |
7894 | #ifdef PRIVATE | |
7895 | ////NaughtyStuff->AddStaticItem("Give Cash Troll Message", false, FakeMes0, NULL);// OnlinePlayerWanted | |
7896 | ///NaughtyStuff->AddStaticItem("Take Cash Troll Message", false, FakeMes1, NULL);// OnlinePlayerWanted | |
7897 | #endif | |
7898 | ||
7899 | // online player extra naughty stuff | |
7900 | ||
7901 | ExtraNaughtyStuff->SetMenuTitle("Very Naughty Stuff"); | |
7902 | ExtraNaughtyStuff->AddStaticItem("Make Player Come To Me", false, LolWander, NULL); | |
7903 | ExtraNaughtyStuff->AddStaticItem("Kidnap Player", false, KidNap, NULL); | |
7904 | ExtraNaughtyStuff->AddStaticItem("Force Player To Leave Vehicle", false, PlayerLeave, NULL); | |
7905 | ExtraNaughtyStuff->AddStaticItem("Tazer Player Loop", false, StunLoop, NULL); | |
7906 | ExtraNaughtyStuff->AddStaticItem("Stun Fire Loop", false, FireLoop, NULL); | |
7907 | ExtraNaughtyStuff->AddStaticItem("Make Player Pole Dance", false, PoleDance, NULL); | |
7908 | ExtraNaughtyStuff->AddStaticItem("Make Player Pole Dance 2", false, PoleDance2, NULL); | |
7909 | ExtraNaughtyStuff->AddStaticItem("Make Player Pole Dance 3", false, PoleDance3, NULL); | |
7910 | ExtraNaughtyStuff->AddStaticItem("Make Player Private Dance", false, PrivateDance, NULL); | |
7911 | ExtraNaughtyStuff->AddStaticItem("Make Player Fuck Air", false, FuckAir, NULL); | |
7912 | ExtraNaughtyStuff->AddStaticItem("Make Player Fuck Air 2", false, FuckAir2, NULL); | |
7913 | ExtraNaughtyStuff->AddStaticItem("Electrocute Player", false, Tazer2, NULL); | |
7914 | ExtraNaughtyStuff->AddStaticItem("Prostitue Male Sex", false, ProsMale, NULL); | |
7915 | ExtraNaughtyStuff->AddStaticItem("Prostitue Female Sex", false, ProsFemale, NULL); | |
7916 | ExtraNaughtyStuff->AddStaticItem("Prostitue Male BJ", false, BJMale, NULL); | |
7917 | ExtraNaughtyStuff->AddStaticItem("Prostitue Female BJ", false, BJFemale, NULL); | |
7918 | ExtraNaughtyStuff->AddStaticItem("Situps", false, Situps, NULL); | |
7919 | ExtraNaughtyStuff->AddStaticItem("Pushups", false, Pushups, NULL); | |
7920 | ExtraNaughtyStuff->AddStaticItem("Wave Yo Arms", false, ArmsWave, NULL); | |
7921 | ExtraNaughtyStuff->AddStaticItem("Cop Kneeling Arrest", false, CopKneel, NULL); | |
7922 | ExtraNaughtyStuff->AddStaticItem("Make Player Cower", false, Cower, NULL); | |
7923 | ExtraNaughtyStuff->AddStaticItem("Stop Task", false, StopLoop, NULL); | |
7924 | ||
7925 | // online player nice stuff | |
7926 | ||
7927 | NiceStuff->SetMenuTitle("Nice Stuff"); | |
7928 | NiceStuff->AddStaticItem("Give All Weapons", false, GiveWeaponsOnline, NULL); | |
7929 | NiceStuff->AddStaticItem("Fix Vehicle", false, FixVehicleOnline, NULL); | |
7930 | NiceStuff->AddStaticItem("Remove Wanted Level", false, RemoveOnlineWanted, NULL); | |
7931 | #ifdef personal | |
7932 | NiceStuff->AddStaticItem("Cash Drop", true, CashDrop, NULL); | |
7933 | #endif | |
7934 | ||
7935 | // setup teleport menu | |
7936 | TeleMenu->SetMenuTitle("Teleport Menu"); | |
7937 | TeleMenu->AddStaticItem("Get Coords", false, TeleCoords, NULL);//TeleLsCustoms | |
7938 | TeleMenu->AddStaticItem("Franklins Crib", false, TeleFranklinsCrib, NULL); | |
7939 | TeleMenu->AddStaticItem("Micheals Crib", false, TeleMicsCrib, NULL); | |
7940 | TeleMenu->AddStaticItem("Morningwood Ammunation", false, TeleImpoundLot, NULL); | |
7941 | TeleMenu->AddStaticItem("Burton LS Customs", false, TeleLsCustoms, NULL);//TeleLsCustoms | |
7942 | TeleMenu->AddStaticItem("Custom Derby Arena", false, TeleArena, NULL);//TeleLsCustoms | |
7943 | TeleMenu->AddStaticItem("10 Car Garage", false, TeleGarage, NULL);//TeleLsCustoms | |
7944 | TeleMenu->AddStaticItem("Waypoint", false, TeleWay, NULL);//TeleLsCustoms | |
7945 | ||
7946 | // all online players | |
7947 | ||
7948 | AllOnlinePlayers->SetMenuTitle("All Players"); | |
7949 | AllOnlinePlayers->AddStaticItem("Give All Weapons", false, GiveOnlineAllWeapons, NULL); | |
7950 | AllOnlinePlayers->AddStaticItem("Remove All Weapons", false, TakeOnlineAllWeapons, NULL); | |
7951 | AllOnlinePlayers->AddStaticItem("Blow Up All Players", false, BlowUpAllOnlinePlayers, NULL); | |
7952 | AllOnlinePlayers->AddStaticItem("Teleport All Players To You", false, TeleAllOnlinePlayers, NULL); | |
7953 | AllOnlinePlayers->AddStaticItem("Make All Players Dance", false, AllPlayersDance, NULL); | |
7954 | AllOnlinePlayers->AddStaticItem("Electrocute All Players", false, AllPlayersElectrocute, NULL); | |
7955 | AllOnlinePlayers->AddStaticItem("Make All Players Pole Dance", false, AllPlayersPoleDance, NULL); | |
7956 | AllOnlinePlayers->AddStaticItem("Stop Anim On All Players", false, StopAll, NULL); | |
7957 | AllOnlinePlayers->AddStaticItem("Teleport All Players To WP", false, AllWay, NULL); | |
7958 | ||
7959 | // setup car spawner menu | |
7960 | CarSpawnerMenu->SetMenuTitle("Vehicle Spawner"); | |
7961 | CarSpawnerMenu->AddStaticItem("Spawn Sultan", false, SpawnSultan, NULL); | |
7962 | CarSpawnerMenu->AddStaticItem("Franklins Buffalo", false, SpawnBuffalo, NULL); | |
7963 | CarSpawnerMenu->AddStaticItem("Futo", false, SpawnFuto, NULL); | |
7964 | CarSpawnerMenu->AddStaticItem("Albany Roosevelt", false, SpawnRoos, NULL); | |
7965 | CarSpawnerMenu->AddStaticItem("Custom Vehicle", false, CustomVeh, NULL); | |
7966 | ||
7967 | ||
7968 | ||
7969 | // Setup online players | |
7970 | onlinePlayers->SetMenuTitle("Online Players"); | |
7971 | onlinePlayers->AddSubMenu("Player", onlinePlayersSubMenu); | |
7972 | onlinePlayers->AddSubMenu("Player", onlinePlayersSubMenu); | |
7973 | onlinePlayers->AddSubMenu("Player", onlinePlayersSubMenu); | |
7974 | onlinePlayers->AddSubMenu("Player", onlinePlayersSubMenu); | |
7975 | onlinePlayers->AddSubMenu("Player", onlinePlayersSubMenu); | |
7976 | onlinePlayers->AddSubMenu("Player", onlinePlayersSubMenu); | |
7977 | onlinePlayers->AddSubMenu("Player", onlinePlayersSubMenu); | |
7978 | onlinePlayers->AddSubMenu("Player", onlinePlayersSubMenu); | |
7979 | onlinePlayers->AddSubMenu("Player", onlinePlayersSubMenu); | |
7980 | onlinePlayers->AddSubMenu("Player", onlinePlayersSubMenu); | |
7981 | onlinePlayers->AddSubMenu("Player", onlinePlayersSubMenu); | |
7982 | onlinePlayers->AddSubMenu("Player", onlinePlayersSubMenu); | |
7983 | onlinePlayers->AddSubMenu("Player", onlinePlayersSubMenu); | |
7984 | onlinePlayers->AddSubMenu("Player", onlinePlayersSubMenu); | |
7985 | onlinePlayers->AddSubMenu("Player", onlinePlayersSubMenu); | |
7986 | onlinePlayers->AddSubMenu("Player", onlinePlayersSubMenu); | |
7987 | ||
7988 | // misc options | |
7989 | ||
7990 | MiscOptions->SetMenuTitle("Misc Menu"); | |
7991 | MiscOptions->AddStaticItem("Randon Components", false, Random, NULL); | |
7992 | MiscOptions->AddStaticItem("Give 999,999,999 Cash", false, GiveCash, NULL); | |
7993 | MiscOptions->AddStaticItem("No Police", true, WantedPlayer, NULL); | |
7994 | MiscOptions->AddStaticItem("Super Speed / Grip", true, Speed, NULL); | |
7995 | MiscOptions->AddStaticItem("Force Field", true, FieldToggle, NULL); | |
7996 | MiscOptions->AddStaticItem("Spawn Chop", false, ChopSpawn, NULL); | |
7997 | MiscOptions->AddStaticItem("Drunk Mode", false, DrunkMode, NULL); | |
7998 | MiscOptions->AddStaticItem("Normal Male Mode", false, NormalM, NULL); | |
7999 | MiscOptions->AddStaticItem("Normal Female", false, NormalF, NULL); | |
8000 | MiscOptions->AddStaticItem("Activate Animal Attack", false, AnimalAttack, NULL); | |
8001 | MiscOptions->AddStaticItem("Derby Arena", false, DerbyArena, NULL); | |
8002 | MiscOptions->AddStaticItem("XMAS", true, ToggleXmas, NULL); | |
8003 | MiscOptions->AddStaticItem("First Person Mod", true, FlyMod, NULL); | |
8004 | MiscOptions->AddStaticItem("Superman Mode", true, SuperMod, NULL); | |
8005 | MiscOptions->AddStaticItem("Remove Fireworks Limit", false, FWLimit, NULL); | |
8006 | MiscOptions->AddStaticItem("Load North Yankton", false, LoadNY, NULL); | |
8007 | //MiscOptions->AddStaticItem("Analog Speedo", true, Analog, NULL); | |
8008 | //MiscOptions->AddStaticItem("Fly Car Mode", true, FlyCarMod, NULL); | |
8009 | //MiscOptions->AddStaticItem("10 Car Garage Troll", true, GarageFan, NULL); | |
8010 | //MiscOptions->AddStaticItem("Fly Mod", true, FlyMod, NULL); | |
8011 | //MiscOptions->AddStaticItem("Massive Bounty", true, ToggleBounty, NULL); | |
8012 | ||
8013 | // object menu | |
8014 | ||
8015 | ObjectOptions->SetMenuTitle("Object Spawner Menu"); | |
8016 | ObjectOptions->AddStaticItem("Spawn Object Var Test", false, SpawnObject, NULL); | |
8017 | ObjectOptions->AddStaticItem("Spawn Weed", false, SpawnWeed, NULL); | |
8018 | ObjectOptions->AddStaticItem("Spawn Tarp Body", false, SpawnBody, NULL); | |
8019 | ObjectOptions->AddStaticItem("Spawn Ramp", false, SpawnRamp, NULL); | |
8020 | ObjectOptions->AddStaticItem("Spawn Body Parts", false, SpawnBodyParts, NULL); | |
8021 | ObjectOptions->AddStaticItem("Spawn Alien Egg", false, SpawnEgg, NULL); | |
8022 | ObjectOptions->AddStaticItem("Spawn Big Turd", false, SpawnShit, NULL); | |
8023 | ObjectOptions->AddStaticItem("Spawn Big Asteroid", false, SpawnAsteroid, NULL); | |
8024 | ObjectOptions->AddStaticItem("Spawn Big UFO", false, SpawnUfo, NULL); | |
8025 | ObjectOptions->AddStaticItem("Spawn Ferris Wheel", false, SpawnFerris, NULL); | |
8026 | ObjectOptions->AddStaticItem("Spawn Finish Line", false, SpawnLine, NULL); | |
8027 | ObjectOptions->AddStaticItem("Spawn Shipping Container", false, SpawnContainer, NULL); | |
8028 | ObjectOptions->AddStaticItem("Military Gate", false, SpawnPipe, NULL);// -160475089 | |
8029 | ObjectOptions->AddStaticItem("Concrete Barrier Short", false, BarrierS, NULL); | |
8030 | ObjectOptions->AddStaticItem("Concrete Barrier Long", false, BarrierL, NULL); | |
8031 | ObjectOptions->AddStaticItem("Wooden Barrier", false, WBarrier, NULL); | |
8032 | ObjectOptions->AddStaticItem("Wooden Arrow Barrier", false, AWBarrier, NULL); | |
8033 | ObjectOptions->AddStaticItem("Metal Barrier", false, MBarrier, NULL); | |
8034 | ObjectOptions->AddStaticItem("Road Cone", false, RoadCone, NULL);// -160475089 | |
8035 | ObjectOptions->AddStaticItem("Custom Object", false, CustomObject, NULL);// -160475089 | |
8036 | ||
8037 | ObjectOptions1->SetMenuTitle("Object Spawner Options"); | |
8038 | ObjectOptions1->AddStaticItem("Move Object Up", false, MoveUp, NULL); | |
8039 | ObjectOptions1->AddStaticItem("Move Object Down", false, MoveDown, NULL); | |
8040 | ObjectOptions1->AddStaticItem("+ Y Axis", false, MoveForward, NULL); | |
8041 | ObjectOptions1->AddStaticItem("- Y Axis", false, MoveBackward, NULL); | |
8042 | ObjectOptions1->AddStaticItem("+ X Axis", false, MoveRight, NULL); | |
8043 | ObjectOptions1->AddStaticItem("- X Axis ", false, MoveLeft, NULL); | |
8044 | ObjectOptions1->AddStaticItem("+ Pitch", false, PlusPitch, NULL); | |
8045 | ObjectOptions1->AddStaticItem("- Pitch ", false, MinusPitch, NULL); | |
8046 | ObjectOptions1->AddStaticItem("+ Roll ", false, PlusRoll, NULL); | |
8047 | ObjectOptions1->AddStaticItem("- Roll ", false, MinusRoll, NULL); | |
8048 | ObjectOptions1->AddStaticItem("+ Yaw", false, HeadingLeft, NULL); | |
8049 | ObjectOptions1->AddStaticItem("- Yaw", false, HeadingRight, NULL); | |
8050 | ObjectOptions1->AddStaticItem("Set Object Straight", false, ObjectFlat, NULL); | |
8051 | ObjectOptions1->AddStaticItem("Freeze Object", false, FreezeObject, NULL); | |
8052 | ObjectOptions1->AddStaticItem("Unfreeze Object", false, UnfreezeObject, NULL); | |
8053 | ObjectOptions1->AddStaticItem("Snap To Ground Infront", false, SnapGround, NULL); | |
8054 | ObjectOptions1->AddStaticItem("Get Object Coords", false, ObjectCoords, NULL); | |
8055 | ObjectOptions1->AddStaticItem("Get Object Hash", false, ObjectHash, NULL); | |
8056 | ObjectOptions1->AddStaticItem("Copy Object", false, ObjectCopy, NULL); | |
8057 | ObjectOptions1->AddStaticItem("Delete Object", false, ObjectDelete, NULL); | |
8058 | //ObjectOptions1->AddStaticItem("Creator Mode", true, CreatorMode, NULL); | |
8059 | ||
8060 | FunnyCarOptions->SetMenuTitle("Funny Car Menu"); | |
8061 | FunnyCarOptions->AddStaticItem("Flying Anus", false, FlyingAnus, NULL); | |
8062 | FunnyCarOptions->AddStaticItem("Dodgem Car", false, DodgemCar, NULL); | |
8063 | ||
8064 | ChopAnims->SetMenuTitle("Chops' Animation List"); | |
8065 | ChopAnims->AddStaticItem("Make Your Model Chop", false, ChopModel1, NULL); | |
8066 | ChopAnims->AddStaticItem("Piss Right", false, ChopPiss1, NULL); | |
8067 | ChopAnims->AddStaticItem("Piss Right Idle", false, ChopPiss2, NULL); | |
8068 | ChopAnims->AddStaticItem("Piss Right Exit", false, ChopPiss3, NULL); | |
8069 | ChopAnims->AddStaticItem("Piss Dump Loop", false, ChopDump, NULL); | |
8070 | ChopAnims->AddStaticItem("Chop Attack 1", false, ChopAttack2, NULL); | |
8071 | ChopAnims->AddStaticItem("Chop Attack 2", false, ChopAttack1, NULL); | |
8072 | ChopAnims->AddStaticItem("Chop Sex (dog model)", false, Chop, NULL); | |
8073 | ChopAnims->AddStaticItem("Chop Ladydog Sex", false, ChopF, NULL); | |
8074 | ChopAnims->AddStaticItem("Chop Take A Dump", false, CopHands, NULL); | |
8075 | ||
8076 | // my mod shop | |
8077 | ||
8078 | ModShop->SetMenuTitle("Chr0m3's Mod Shop"); | |
8079 | ModShop->AddSubMenu("Performance", PerformanceMenu); | |
8080 | ModShop->AddSubMenu("Body", BodyMenu); | |
8081 | ModShop->AddSubMenu("Wheels", WheelMenu); | |
8082 | ModShop->AddSubMenu("Armour", ArmourMenu); | |
8083 | ModShop->AddStaticItem("Xenon Headlights", true, LightToggle, NULL); | |
8084 | ModShop->AddStaticItem("Neons", true, ToggleNeon, NULL); | |
8085 | ModShop->AddStaticItem("Red Neons", false, RedNeon, NULL); | |
8086 | ModShop->AddStaticItem("Green Neons", false, GreenNeon, NULL); | |
8087 | ModShop->AddStaticItem("Blue Neons", false, BlueNeon, NULL); | |
8088 | ModShop->AddStaticItem("Pink Neons", false, PinkNeon, NULL); | |
8089 | ModShop->AddStaticItem("Purple Neons", false, PurpleNeon, NULL); | |
8090 | ModShop->AddStaticItem("Orange Neons", false, OrangeNeon, NULL); | |
8091 | ModShop->AddStaticItem("Cyan Neons", false, CyanNeon, NULL); | |
8092 | ||
8093 | //ModShop->AddStaticItem("Xenon Headlights", false, LightToggle, NULL); | |
8094 | //ModShop->AddStaticItem("Xenon Headlights", false, LightToggle, NULL); | |
8095 | ||
8096 | ArmourMenu->SetMenuTitle("Armour Upgrades"); | |
8097 | ArmourMenu->AddStaticItem("None", false, NoArmour, NULL); | |
8098 | ArmourMenu->AddStaticItem("Armour Upgrade 20%", false, Armour0, NULL); | |
8099 | ArmourMenu->AddStaticItem("Armour Upgrade 40%", false, Armour1, NULL); | |
8100 | ArmourMenu->AddStaticItem("Armour Upgrade 60%", false, Armour2, NULL); | |
8101 | ArmourMenu->AddStaticItem("Armour Upgrade 80%", false, Armour3, NULL); | |
8102 | ArmourMenu->AddStaticItem("Armour Upgrade 100%", false, Armour4, NULL); | |
8103 | ||
8104 | // body menu | |
8105 | BodyMenu->SetMenuTitle("Body Upgrades"); | |
8106 | BodyMenu->AddSubMenu("Front Bumber", FbMenu); | |
8107 | BodyMenu->AddSubMenu("Rear Bumper", RbMenu); | |
8108 | BodyMenu->AddSubMenu("Side Skirts", SkMenu); | |
8109 | BodyMenu->AddSubMenu("Interiors", InteriorMenu); | |
8110 | BodyMenu->AddSubMenu("Hoods", HoodMenu); | |
8111 | BodyMenu->AddSubMenu("Spoiler", SpoilerMenu); | |
8112 | BodyMenu->AddSubMenu("Grilles", GrillMenu); | |
8113 | BodyMenu->AddStaticItem("No Tint", false, Tint0, NULL); | |
8114 | BodyMenu->AddStaticItem("Light Tint", false, Tint1, NULL); | |
8115 | BodyMenu->AddStaticItem("Dark Tint", false, Tint2, NULL); | |
8116 | BodyMenu->AddStaticItem("Limo Tint", false, Tint3, NULL); | |
8117 | BodyMenu->AddStaticItem("Chr0m3's Black Tint", false, Tint4, NULL); | |
8118 | BodyMenu->AddStaticItem("Chr0m3's Green Tint", false, Tint5, NULL); | |
8119 | BodyMenu->AddStaticItem("Open Drivers Door", false, OpenDoor0, NULL); | |
8120 | BodyMenu->AddStaticItem("Open Passenger Door", false, OpenDoor1, NULL); | |
8121 | BodyMenu->AddStaticItem("Open Drivers Rear Door", false, OpenDoor2, NULL); | |
8122 | BodyMenu->AddStaticItem("Open Passengers Rear Door", false, OpenDoor3, NULL); | |
8123 | BodyMenu->AddStaticItem("Open Hood", false, OpenDoor4, NULL); | |
8124 | BodyMenu->AddStaticItem("Open Boot", false, OpenDoor5, NULL); | |
8125 | BodyMenu->AddStaticItem("Remove Hood", false, RemoveHood, NULL); | |
8126 | BodyMenu->AddStaticItem("Remove Boot", false, RemoveBoot, NULL); | |
8127 | ||
8128 | // front bumper | |
8129 | FbMenu->SetMenuTitle("Front Bumper Upgrades"); | |
8130 | FbMenu->AddStaticItem("Stock Front Bumper", false, StockFb, NULL); | |
8131 | FbMenu->AddStaticItem("Front Bumper 1", false, Fb0, NULL); | |
8132 | FbMenu->AddStaticItem("Front Bumper 2", false, Fb1, NULL); | |
8133 | FbMenu->AddStaticItem("Front Bumper 3", false, Fb2, NULL); | |
8134 | ||
8135 | RbMenu->SetMenuTitle("Rear Bumper Upgrades"); | |
8136 | RbMenu->AddStaticItem("Stock Rear Bumper", false, StockRb, NULL); | |
8137 | RbMenu->AddStaticItem("Rear Bumper 1", false, Rb0, NULL); | |
8138 | RbMenu->AddStaticItem("Rear Bumper 2", false, Rb1, NULL); | |
8139 | RbMenu->AddStaticItem("Rear Bumper 3", false, Rb2, NULL); | |
8140 | ||
8141 | // spoiler | |
8142 | SpoilerMenu->SetMenuTitle("Spoiler Upgrades"); | |
8143 | SpoilerMenu->AddStaticItem("Stock Spoiler", false, StockSpoiler, NULL); | |
8144 | SpoilerMenu->AddStaticItem("Spoiler 1", false, Spoiler0, NULL); | |
8145 | SpoilerMenu->AddStaticItem("Spoiler 2", false, Spoiler1, NULL); | |
8146 | SpoilerMenu->AddStaticItem("Spoiler 3", false, Spoiler2, NULL); | |
8147 | ||
8148 | // sid skirts | |
8149 | SkMenu->SetMenuTitle("Side Skirts Upgrades"); | |
8150 | SkMenu->AddStaticItem("Stock Side Skirts", false, StockSk, NULL); | |
8151 | SkMenu->AddStaticItem("Side Skirts 1", false, Sk0, NULL); | |
8152 | SkMenu->AddStaticItem("Side Skirts 2", false, Sk1, NULL); | |
8153 | SkMenu->AddStaticItem("Side Skirts 3", false, Sk2, NULL); | |
8154 | ||
8155 | // interior | |
8156 | InteriorMenu->SetMenuTitle("Interior Upgrades"); | |
8157 | InteriorMenu->AddStaticItem("Stock Interior", false, StockInterior, NULL); | |
8158 | InteriorMenu->AddStaticItem("Custom Interior", false, Interior0, NULL); | |
8159 | ||
8160 | // hoods | |
8161 | HoodMenu->SetMenuTitle("Hood Upgrades"); | |
8162 | HoodMenu->AddStaticItem("Stock Hood", false, StockHood, NULL); | |
8163 | HoodMenu->AddStaticItem("Hood Upgrade 1", false, Hood0, NULL); | |
8164 | HoodMenu->AddStaticItem("Hood Upgrade 2", false, Hood1, NULL); | |
8165 | HoodMenu->AddStaticItem("Hood Upgrade 3", false, Hood2, NULL); | |
8166 | HoodMenu->AddStaticItem("Hood Upgrade 4", false, Hood3, NULL); | |
8167 | HoodMenu->AddStaticItem("Hood Upgrade 5", false, Hood4, NULL); | |
8168 | ||
8169 | // grille | |
8170 | GrillMenu->SetMenuTitle("Grille Upgrades"); | |
8171 | GrillMenu->AddStaticItem("Stock Grille", false, StockGrill, NULL); | |
8172 | GrillMenu->AddStaticItem("Grille Upgrade 1", false, Grill0, NULL); | |
8173 | GrillMenu->AddStaticItem("Grille Upgrade 2", false, Grill1, NULL); | |
8174 | GrillMenu->AddStaticItem("Grille Upgrade 3", false, Grill2, NULL); | |
8175 | ||
8176 | // performance menu | |
8177 | PerformanceMenu->SetMenuTitle("Performance Upgrades"); | |
8178 | PerformanceMenu->AddSubMenu("Engine", EngineMenu); | |
8179 | PerformanceMenu->AddSubMenu("Transmission", TransMenu); | |
8180 | PerformanceMenu->AddSubMenu("Brakes", BrakesMenu); | |
8181 | PerformanceMenu->AddSubMenu("Suspension", SuspMenu); | |
8182 | PerformanceMenu->AddSubMenu("Exhaust", ExMenu); | |
8183 | PerformanceMenu->AddStaticItem("Turbo", true, TurboToggle, NULL); | |
8184 | ||
8185 | // engine menu | |
8186 | EngineMenu->SetMenuTitle("Engine Upgrades"); | |
8187 | EngineMenu->AddStaticItem("Stock Engine", false, EngineStock, NULL); | |
8188 | EngineMenu->AddStaticItem("Engine Upgrade 1", false, Engine0, NULL); | |
8189 | EngineMenu->AddStaticItem("Engine Upgrade 2", false, Engine1, NULL); | |
8190 | EngineMenu->AddStaticItem("Engine Upgrade 3", false, Engine2, NULL); | |
8191 | EngineMenu->AddStaticItem("Engine Upgrade 4", false, Engine3, NULL); | |
8192 | #ifdef PRIVATE | |
8193 | EngineMenu->AddStaticItem("Chr0m3's Custom Performance", false, TogglePerf, NULL); | |
8194 | #endif | |
8195 | ||
8196 | // trans menu | |
8197 | TransMenu->SetMenuTitle("Transmission Upgrades"); | |
8198 | TransMenu->AddStaticItem("Stock Transmission", false, TranStock, NULL); | |
8199 | TransMenu->AddStaticItem("Street Transmission", false, Tran0, NULL); | |
8200 | TransMenu->AddStaticItem("Sports Transmission", false, Tran1, NULL); | |
8201 | TransMenu->AddStaticItem("Race Transmission", false, Tran2, NULL); | |
8202 | ||
8203 | // brakes menu | |
8204 | BrakesMenu->SetMenuTitle("Brake Upgrades"); | |
8205 | BrakesMenu->AddStaticItem("Stock Brakes", false, BrakeStock, NULL); | |
8206 | BrakesMenu->AddStaticItem("Street Brakes", false, Brake0, NULL); | |
8207 | BrakesMenu->AddStaticItem("Sports Brakes", false, Brake1, NULL); | |
8208 | BrakesMenu->AddStaticItem("Race Brakes", false, Brake2, NULL); | |
8209 | ||
8210 | // suspension menu | |
8211 | SuspMenu->SetMenuTitle("Suspension Upgrades"); | |
8212 | SuspMenu->AddStaticItem("Stock Suspension", false, SuspStock, NULL); | |
8213 | SuspMenu->AddStaticItem("Lowered Suspension", false, Susp0, NULL); | |
8214 | SuspMenu->AddStaticItem("Street Suspension", false, Susp1, NULL); | |
8215 | SuspMenu->AddStaticItem("Sports Suspension", false, Susp2, NULL); | |
8216 | SuspMenu->AddStaticItem("Competition Suspension", false, Susp3, NULL); | |
8217 | ||
8218 | // suspension menu | |
8219 | ExMenu->SetMenuTitle("Exhaust Upgrades"); | |
8220 | ExMenu->AddStaticItem("Stock Exhaust", false, ExStock, NULL); | |
8221 | ExMenu->AddStaticItem("Exhaust 1", false, Ex0, NULL); | |
8222 | ExMenu->AddStaticItem("Exhaust 2", false, Ex1, NULL); | |
8223 | ExMenu->AddStaticItem("Exhaust 2", false, Ex2, NULL); | |
8224 | ||
8225 | ||
8226 | // wheel menu | |
8227 | WheelMenu->SetMenuTitle("Wheel Upgrades"); | |
8228 | WheelMenu->AddStaticItem("Stock Tyres", false, StockTyres, NULL); | |
8229 | WheelMenu->AddStaticItem("Custom Tyres", false, CustomTyres, NULL); | |
8230 | WheelMenu->AddStaticItem("Bulletproof Tyres", false, BpTyres, NULL); | |
8231 | WheelMenu->AddStaticItem("Stock Wheels", false, StockWheels, NULL); | |
8232 | WheelMenu->AddSubMenu("High End", HighEnd); | |
8233 | WheelMenu->AddSubMenu("Lowrider", Lowrider); | |
8234 | WheelMenu->AddSubMenu("Muscle", Muscle); | |
8235 | WheelMenu->AddSubMenu("Offroad", Offroad); | |
8236 | WheelMenu->AddSubMenu("Sport", Sport); | |
8237 | WheelMenu->AddSubMenu("Sport Page 2", SportMenu2); | |
8238 | WheelMenu->AddSubMenu("SUV", SUV); | |
8239 | WheelMenu->AddSubMenu("Tuner", Tuner); | |
8240 | WheelMenu->AddSubMenu("Tuner Page 2", TunerMenu2); | |
8241 | WheelMenu->AddStaticItem("Red Tyre Smoke", false, Smoke0, NULL); | |
8242 | WheelMenu->AddStaticItem("Green Tyre Smoke", false, Smoke1, NULL); | |
8243 | WheelMenu->AddStaticItem("Blue Tyre Smoke", false, Smoke2, NULL); | |
8244 | WheelMenu->AddStaticItem("Purple Tyre Smoke", false, Smoke3, NULL); | |
8245 | WheelMenu->AddStaticItem("Pink Tyre Smoke", false, Smoke4, NULL); | |
8246 | WheelMenu->AddStaticItem("Sky Blue Tyre Smoke", false, Smoke5, NULL); | |
8247 | WheelMenu->AddStaticItem("Orange Tyre Smoke", false, Smoke6, NULL); | |
8248 | WheelMenu->AddStaticItem("Yellow Tyre Smoke", false, Smoke7, NULL); | |
8249 | WheelMenu->AddStaticItem("Cyan Tyre Smoke", false, Smoke8, NULL); | |
8250 | // high end | |
8251 | ||
8252 | HighEnd->SetMenuTitle("High End Wheels"); | |
8253 | HighEnd->AddStaticItem("Shadow", false, HighEnd0, NULL); | |
8254 | HighEnd->AddStaticItem("Hypher", false, HighEnd1, NULL); | |
8255 | HighEnd->AddStaticItem("Blade", false, HighEnd2, NULL); | |
8256 | HighEnd->AddStaticItem("Diamond", false, HighEnd3, NULL); | |
8257 | HighEnd->AddStaticItem("Supa Gee", false, HighEnd4, NULL); | |
8258 | HighEnd->AddStaticItem("Chromatic Z", false, HighEnd5, NULL); | |
8259 | HighEnd->AddStaticItem("Merchie Ch.Lip", false, HighEnd6, NULL); | |
8260 | HighEnd->AddStaticItem("Obey RS", false, HighEnd7, NULL); | |
8261 | HighEnd->AddStaticItem("GT Chrome", false, HighEnd8, NULL); | |
8262 | HighEnd->AddStaticItem("Cheetah RR", false, HighEnd9, NULL); | |
8263 | HighEnd->AddStaticItem("Solar", false, HighEnd10, NULL); | |
8264 | HighEnd->AddStaticItem("Split Ten", false, HighEnd11, NULL); | |
8265 | HighEnd->AddStaticItem("Dash VIP", false, HighEnd12, NULL); | |
8266 | HighEnd->AddStaticItem("LozSpeed Ten", false, HighEnd13, NULL); | |
8267 | HighEnd->AddStaticItem("Carbon Inferno", false, HighEnd14, NULL); | |
8268 | HighEnd->AddStaticItem("Carbon Shadow", false, HighEnd15, NULL); | |
8269 | HighEnd->AddStaticItem("Carbonic Z", false, HighEnd16, NULL); | |
8270 | HighEnd->AddStaticItem("Carbon Solar", false, HighEnd17, NULL); | |
8271 | HighEnd->AddStaticItem("Cheetah Cobra R", false, HighEnd18, NULL); | |
8272 | HighEnd->AddStaticItem("Carbon S Racer", false, HighEnd19, NULL); | |
8273 | ||
8274 | // lowrider wheels | |
8275 | Lowrider->SetMenuTitle("Lowrider Wheels"); | |
8276 | Lowrider->AddStaticItem("Flare", false, Lowrider0, NULL); | |
8277 | Lowrider->AddStaticItem("Wired", false, Lowrider1, NULL); | |
8278 | Lowrider->AddStaticItem("Triple Golds", false, Lowrider2, NULL); | |
8279 | Lowrider->AddStaticItem("Big Worm", false, Lowrider3, NULL); | |
8280 | Lowrider->AddStaticItem("Seven Fives", false, Lowrider4, NULL); | |
8281 | Lowrider->AddStaticItem("Split Six", false, Lowrider5, NULL); | |
8282 | Lowrider->AddStaticItem("Fresh Mesh", false, Lowrider6, NULL); | |
8283 | Lowrider->AddStaticItem("Lead Sled", false, Lowrider7, NULL); | |
8284 | Lowrider->AddStaticItem("Turbine", false, Lowrider8, NULL); | |
8285 | Lowrider->AddStaticItem("Super Fin", false, Lowrider9, NULL); | |
8286 | Lowrider->AddStaticItem("Classic Rod", false, Lowrider10, NULL); | |
8287 | Lowrider->AddStaticItem("Dollar", false, Lowrider11, NULL); | |
8288 | Lowrider->AddStaticItem("Dukes", false, Lowrider12, NULL); | |
8289 | Lowrider->AddStaticItem("Low Five", false, Lowrider13, NULL); | |
8290 | Lowrider->AddStaticItem("Gooch", false, Lowrider14, NULL); | |
8291 | ||
8292 | //Muscle | |
8293 | Muscle->SetMenuTitle("Muscle Wheels"); | |
8294 | Muscle->AddStaticItem("Classic Five", false, Muscle0, NULL); | |
8295 | Muscle->AddStaticItem("Dukes", false, Muscle1, NULL); | |
8296 | Muscle->AddStaticItem("Muscle Freak", false, Muscle2, NULL); | |
8297 | Muscle->AddStaticItem("Kracka", false, Muscle3, NULL); | |
8298 | Muscle->AddStaticItem("Azreal", false, Muscle4, NULL); | |
8299 | Muscle->AddStaticItem("Mecha", false, Muscle5, NULL); | |
8300 | Muscle->AddStaticItem("Black Top", false, Muscle6, NULL); | |
8301 | Muscle->AddStaticItem("Drag SPL", false, Muscle7, NULL); | |
8302 | Muscle->AddStaticItem("Revolver", false, Muscle8, NULL); | |
8303 | Muscle->AddStaticItem("Classic Rod", false, Muscle9, NULL); | |
8304 | Muscle->AddStaticItem("Fairlie", false, Muscle10, NULL); | |
8305 | Muscle->AddStaticItem("Spooner", false, Muscle11, NULL); | |
8306 | Muscle->AddStaticItem("Five Star", false, Muscle12, NULL); | |
8307 | Muscle->AddStaticItem("Old School", false, Muscle13, NULL); | |
8308 | Muscle->AddStaticItem("El Jefe", false, Muscle14, NULL); | |
8309 | Muscle->AddStaticItem("Dodman", false, Muscle15, NULL); | |
8310 | Muscle->AddStaticItem("Six Gun", false, Muscle16, NULL); | |
8311 | Muscle->AddStaticItem("Mercenary", false, Muscle17, NULL); | |
8312 | ||
8313 | //Offroad | |
8314 | Offroad->SetMenuTitle("Offroad Wheels"); | |
8315 | Offroad->AddStaticItem("Raider", false, Offroad0, NULL); | |
8316 | Offroad->AddStaticItem("Mudslinger", false, Offroad1, NULL); | |
8317 | Offroad->AddStaticItem("Nevis", false, Offroad2, NULL); | |
8318 | Offroad->AddStaticItem("Cairngorm", false, Offroad3, NULL); | |
8319 | Offroad->AddStaticItem("Amazon", false, Offroad4, NULL); | |
8320 | Offroad->AddStaticItem("Challenger", false, Offroad5, NULL); | |
8321 | Offroad->AddStaticItem("Dune Basher", false, Offroad6, NULL); | |
8322 | Offroad->AddStaticItem("Five Star", false, Offroad7, NULL); | |
8323 | Offroad->AddStaticItem("Rock Crawler", false, Offroad8, NULL); | |
8324 | Offroad->AddStaticItem("Mil Spec Steelie", false, Offroad9, NULL); | |
8325 | ||
8326 | // sport wheels | |
8327 | ||
8328 | Sport->SetMenuTitle("Sports Wheels"); | |
8329 | Sport->AddStaticItem("Inferno", false, Sport0, NULL); | |
8330 | Sport->AddStaticItem("Deep Five", false, Sport1, NULL); | |
8331 | Sport->AddStaticItem("Lozspeed Mk.V", false, Sport2, NULL); | |
8332 | Sport->AddStaticItem("Diamond Cut", false, Sport3, NULL); | |
8333 | Sport->AddStaticItem("Chrono", false, Sport4, NULL); | |
8334 | Sport->AddStaticItem("Feroci RR", false, Sport5, NULL); | |
8335 | Sport->AddStaticItem("FiftyNine", false, Sport6, NULL); | |
8336 | Sport->AddStaticItem("Mercie", false, Sport7, NULL); | |
8337 | Sport->AddStaticItem("Synthetic Z", false, Sport8, NULL); | |
8338 | Sport->AddStaticItem("Organic Type 0", false, Sport9, NULL); | |
8339 | Sport->AddStaticItem("Endo v.1", false, Sport10, NULL); | |
8340 | Sport->AddStaticItem("GT One", false, Sport11, NULL); | |
8341 | Sport->AddStaticItem("Duper 7", false, Sport12, NULL); | |
8342 | Sport->AddStaticItem("Uzer", false, Sport13, NULL); | |
8343 | Sport->AddStaticItem("Groundride", false, Sport14, NULL); | |
8344 | Sport->AddStaticItem("S Racer", false, Sport15, NULL); | |
8345 | Sport->AddStaticItem("Venum", false, Sport16, NULL); | |
8346 | Sport->AddStaticItem("Cosmo", false, Sport17, NULL); | |
8347 | Sport->AddStaticItem("Dash VIP", false, Sport18, NULL); | |
8348 | Sport->AddStaticItem("Ice Kid", false, Sport19, NULL); | |
8349 | ||
8350 | SportMenu2->SetMenuTitle("Sports Wheels Page 2"); | |
8351 | SportMenu2->AddStaticItem("Ruff Weld", false, Sport20, NULL); | |
8352 | SportMenu2->AddStaticItem("Wangan Master", false, Sport21, NULL); | |
8353 | SportMenu2->AddStaticItem("Super Five", false, Sport22, NULL); | |
8354 | SportMenu2->AddStaticItem("Endo v.2", false, Sport23, NULL); | |
8355 | SportMenu2->AddStaticItem("Split Six", false, Sport24, NULL); | |
8356 | ||
8357 | // SUV | |
8358 | ||
8359 | SUV->SetMenuTitle("SUV Wheels"); | |
8360 | SUV->AddStaticItem("VIP", false, SUV0, NULL); | |
8361 | SUV->AddStaticItem("Benefactor", false, SUV1, NULL); | |
8362 | SUV->AddStaticItem("Cosmo", false, SUV2, NULL); | |
8363 | SUV->AddStaticItem("Bippu", false, SUV3, NULL); | |
8364 | SUV->AddStaticItem("Royal Six", false, SUV4, NULL); | |
8365 | SUV->AddStaticItem("Fagorme", false, SUV5, NULL); | |
8366 | SUV->AddStaticItem("Deluxe", false, SUV6, NULL); | |
8367 | SUV->AddStaticItem("Iced Out", false, SUV7, NULL); | |
8368 | SUV->AddStaticItem("Congoscenti", false, SUV8, NULL); | |
8369 | SUV->AddStaticItem("Lozspeed Ten", false, SUV9, NULL); | |
8370 | SUV->AddStaticItem("Supernova", false, SUV10, NULL); | |
8371 | SUV->AddStaticItem("Obey RS", false, SUV11, NULL); | |
8372 | SUV->AddStaticItem("Lozspeed Baller", false, SUV12, NULL); | |
8373 | SUV->AddStaticItem("Extravaganzo", false, SUV13, NULL); | |
8374 | SUV->AddStaticItem("Split Six", false, SUV14, NULL); | |
8375 | SUV->AddStaticItem("Empowered", false, SUV15, NULL); | |
8376 | SUV->AddStaticItem("Sunrise", false, SUV16, NULL); | |
8377 | SUV->AddStaticItem("Dash VIP", false, SUV17, NULL); | |
8378 | SUV->AddStaticItem("Cutter", false, SUV18, NULL); | |
8379 | ||
8380 | //tuner wheels | |
8381 | ||
8382 | Tuner->SetMenuTitle("Tuner Wheels"); | |
8383 | Tuner->AddStaticItem("Cosmo", false, Tuner0, NULL); | |
8384 | Tuner->AddStaticItem("Super Mesh", false, Tuner1, NULL); | |
8385 | Tuner->AddStaticItem("Outsider", false, Tuner2, NULL); | |
8386 | Tuner->AddStaticItem("Rollas", false, Tuner3, NULL); | |
8387 | Tuner->AddStaticItem("Driftmeister", false, Tuner4, NULL); | |
8388 | Tuner->AddStaticItem("Slicer", false, Tuner5, NULL); | |
8389 | Tuner->AddStaticItem("El Quatro", false, Tuner6, NULL); | |
8390 | Tuner->AddStaticItem("Dubbed", false, Tuner7, NULL); | |
8391 | Tuner->AddStaticItem("Five Star", false, Tuner8, NULL); | |
8392 | Tuner->AddStaticItem("Sideways", false, Tuner9, NULL); | |
8393 | Tuner->AddStaticItem("Apex", false, Tuner10, NULL); | |
8394 | Tuner->AddStaticItem("Stanced EG", false, Tuner11, NULL); | |
8395 | Tuner->AddStaticItem("Countersteer", false, Tuner12, NULL); | |
8396 | Tuner->AddStaticItem("Endo v.1", false, Tuner13, NULL); | |
8397 | Tuner->AddStaticItem("Endo v.2 Dish", false, Tuner14, NULL); | |
8398 | Tuner->AddStaticItem("Gruppe Z", false, Tuner15, NULL); | |
8399 | Tuner->AddStaticItem("Choku-Dori", false, Tuner16, NULL); | |
8400 | Tuner->AddStaticItem("Chicane", false, Tuner17, NULL); | |
8401 | Tuner->AddStaticItem("Saisoku", false, Tuner18, NULL); | |
8402 | Tuner->AddStaticItem("Dished Eight", false, Tuner19, NULL); | |
8403 | ||
8404 | TunerMenu2->SetMenuTitle("Tuner Wheels Page 2"); | |
8405 | TunerMenu2->AddStaticItem("Fujiwara", false, Tuner20, NULL); | |
8406 | TunerMenu2->AddStaticItem("Zokusha", false, Tuner21, NULL); | |
8407 | TunerMenu2->AddStaticItem("Battle Vlll", false, Tuner22, NULL); | |
8408 | TunerMenu2->AddStaticItem("Rally Master", false, Tuner23, NULL); | |
8409 | #ifdef PRIVATE | |
8410 | Pegasus->SetMenuTitle("Pegasus Custom Vehicles"); | |
8411 | Pegasus->AddStaticItem("Space Docker", false, Peg1, NULL); | |
8412 | #endif | |
8413 | /*Pegasus->AddStaticItem("FBI Cruiser", false, Peg2, NULL); | |
8414 | Pegasus->AddStaticItem("Clown Van", false, Peg3, NULL); | |
8415 | Pegasus->AddStaticItem("Weed Van", false, Peg4, NULL); | |
8416 | Pegasus->AddStaticItem("Sultan", false, Peg5, NULL);*/ | |
8417 | ||
8418 | Weather->SetMenuTitle("Weather Options"); | |
8419 | Weather->AddStaticItem("Blizzard", false, Weather0, NULL); | |
8420 | Weather->AddStaticItem("Clear", false, Weather1, NULL); | |
8421 | Weather->AddStaticItem("Clearing", false, Weather2, NULL); | |
8422 | Weather->AddStaticItem("Clouds", false, Weather3, NULL); | |
8423 | Weather->AddStaticItem("Extra Sunny", false, Weather4, NULL); | |
8424 | Weather->AddStaticItem("Foggy", false, Weather5, NULL); | |
8425 | Weather->AddStaticItem("Hulk Weather", false, Weather6, NULL); | |
8426 | Weather->AddStaticItem("Overcast", false, Weather7, NULL); | |
8427 | Weather->AddStaticItem("Rain", false, Weather8, NULL); | |
8428 | Weather->AddStaticItem("Smog", false, Weather9, NULL); | |
8429 | Weather->AddStaticItem("Snow", false, Weather10, NULL); | |
8430 | Weather->AddStaticItem("Snow Light", false, Weather11, NULL); | |
8431 | Weather->AddStaticItem("Thunder", false, Weather12, NULL); | |
8432 | Weather->AddStaticItem("+ Hour", false, Weather13, NULL); | |
8433 | Weather->AddStaticItem("- Hour", false, Weather14, NULL); | |
8434 | #ifdef PRIVATE | |
8435 | SpeedoMeter->SetMenuTitle("Speedometer Options"); | |
8436 | SpeedoMeter->AddStaticItem("Speedometer", true, Analog, NULL); | |
8437 | SpeedoMeter->AddStaticItem("Normal Skin", false, SimpleSkin, NULL); | |
8438 | SpeedoMeter->AddStaticItem("BMW Skin", false, BMWSkin, NULL); | |
8439 | SpeedoMeter->AddStaticItem("SV6 Skin", false, TestSkin, NULL); | |
8440 | SpeedoMeter->AddStaticItem("Chrome Skin", false, NormalSkin, NULL); | |
8441 | #endif | |
8442 | ||
8443 | #ifdef PRIVATE | |
8444 | RankUnlock->SetMenuTitle("Rank And Unlocks"); | |
8445 | RankUnlock->AddStaticItem("Char 1 Rank 120, Unlocks", false, Rank, NULL); | |
8446 | RankUnlock->AddStaticItem("Char 2 Rank 120, Unlocks", false, Rank1, NULL); | |
8447 | RankUnlock->AddStaticItem("Char 3 Rank 120, Unlocks", false, Rank2, NULL); | |
8448 | #endif | |
8449 | ||
8450 | // Setup main menu last | |
8451 | mainMenu->SetMenuTitle("GTA V Fucker 1.15: Main Menu"); | |
8452 | mainMenu->AddSubMenu("Player Options", playerOptionsMenu); | |
8453 | mainMenu->AddSubMenu("Vehicle Options", vehicleOptionMenu); | |
8454 | mainMenu->AddSubMenu("Weapon Options", weaponOptionsMenu); | |
8455 | mainMenu->AddSubMenu("Online Player Menu", onlinePlayers); | |
8456 | mainMenu->AddSubMenu("Model Changer Menu", ModelChanger); | |
8457 | mainMenu->AddSubMenu("Teleport Menu", TeleMenu); | |
8458 | mainMenu->AddSubMenu("Vehicle Spawner", CarSpawnerMenu); | |
8459 | mainMenu->AddSubMenu("All Players", AllOnlinePlayers); | |
8460 | mainMenu->AddSubMenu("Misc Options", MiscOptions); | |
8461 | mainMenu->AddSubMenu("Object Spawner", ObjectOptions); | |
8462 | mainMenu->AddSubMenu("Object Spawner Options", ObjectOptions1); | |
8463 | mainMenu->AddSubMenu("Funny Cars", FunnyCarOptions); | |
8464 | mainMenu->AddSubMenu("Chop Anim's", ChopAnims); | |
8465 | mainMenu->AddSubMenu("Weather Options", Weather); | |
8466 | mainMenu->AddSubMenu("Chr0m3's Mod Shop", ModShop); | |
8467 | ||
8468 | #ifdef PRIVATE | |
8469 | mainMenu->AddSubMenu("Speedometer Options", SpeedoMeter); | |
8470 | #endif | |
8471 | mainMenu->AddStaticItem("Creator Mode", true, ToggleCreator, NULL); | |
8472 | #ifdef PRIVATE | |
8473 | mainMenu->AddSubMenu("Rank And Unlocks", RankUnlock); | |
8474 | //mainMenu->AddSubMenu("Pegasus Custom Vehicles", Pegasus); | |
8475 | #endif | |
8476 | } | |
8477 | ||
8478 | DWORD XamUserGetSigninStateHook(DWORD userIndex) { | |
8479 | //printf("XamUserGetSigninStateHook - Spoofing Live 0\n"); | |
8480 | return eXamUserSigninState_SignedInToLive; | |
8481 | } | |
8482 | ||
8483 | DWORD XamUserGetMembershipTierFromXUIDHook(QWORD xuid) { | |
8484 | //printf("XamUserGetMembershipTierFromXUIDHook - Spoofing live 1\n"); | |
8485 | return eXamUserSigninState_SignedInToLive; | |
8486 | } | |
8487 | ||
8488 | HRESULT XamUserGetXUIDHook(DWORD dwUserIndex, DWORD unk, PXUID onlineOut) { | |
8489 | //printf("XamUserGetXUIDHook - Spoofing Live 2\n"); | |
8490 | HRESULT hr = XamUserGetXUID(dwUserIndex, unk, onlineOut); | |
8491 | ||
8492 | //*onlineOut = 2533275020856061; // xuid here | |
8493 | return hr; | |
8494 | } | |
8495 | ||
8496 | NTSTATUS XamUserGetSigninInfoHook(DWORD userIndex, DWORD flags, PXUSER_SIGNIN_INFO xSigningInfo) { | |
8497 | //printf("XamUserGetSigninInfoHook - Spoofing Live And Gamertag 3\n"); | |
8498 | NTSTATUS stat = XamUserGetSigninInfo(userIndex, flags, xSigningInfo); | |
8499 | ||
8500 | //xSigningInfo->UserSigninState = eXUserSigninState_SignedInToLive; | |
8501 | //xSigningInfo->xuid = 2533275020856061; // xuid here | |
8502 | strcpy(xSigningInfo->szUserName, "Borat Is Black"); // gamertag here | |
8503 | ||
8504 | return stat; | |
8505 | } | |
8506 | ||
8507 | //.text:837FDBBC XamUserGetName: | |
8508 | ||
8509 | DWORD XamUserGetNameHook(DWORD dwUserIndex, LPSTR pUserName, DWORD cchUserName) { | |
8510 | DWORD result = XamUserGetName(dwUserIndex, pUserName, cchUserName); | |
8511 | ||
8512 | //printf("XamUserGetSigninInfoHook - Spoofing Gameryag\n"); | |
8513 | ||
8514 | strcpy(pUserName, "Borat Is Black"); // gamertag here | |
8515 | ||
8516 | return result; | |
8517 | } | |
8518 | ||
8519 | HINTERNET NetDll_XHttpConnectHook(DWORD reg3, HINTERNET hSession, const CHAR *pcszServerName, INTERNET_PORT nServerPort, DWORD dwFlags) { | |
8520 | ||
8521 | printf("[R*] - NetDll_XHttpConnectHook - %s %d\n", pcszServerName, nServerPort); | |
8522 | ||
8523 | return XHttpConnect(hSession, pcszServerName, nServerPort, dwFlags); | |
8524 | } | |
8525 | ||
8526 | FILE *fSprintfFile = NULL; | |
8527 | int sprintfFileCunt = 0; | |
8528 | ||
8529 | void sub_8223E0A8_Hook(char *outBuffer, size_t size, char *format, ...) { | |
8530 | ||
8531 | DWORD link; | |
8532 | ||
8533 | __asm mflr link | |
8534 | ||
8535 | if (!fSprintfFile) { | |
8536 | MountPath("Hdd:", "\\Device\\Harddisk0\\Partition1", FALSE); | |
8537 | fopen_s(&fSprintfFile, "Hdd:\\GTAVSprintfLog.txt", "a"); | |
8538 | } | |
8539 | ||
8540 | va_list args; | |
8541 | va_start (args, format); | |
8542 | vsprintf_s(outBuffer, size, format, args); | |
8543 | va_end (args); | |
8544 | ||
8545 | /*char *eb = strstr(outBuffer, "2535471422561337"); | |
8546 | ||
8547 | if (eb) { | |
8548 | memcpy(eb, "2533274959260499", 16); | |
8549 | ||
8550 | printf("Changed xuid %s\n", outBuffer); | |
8551 | }*/ | |
8552 | ||
8553 | //printf("[R*] - sprintf_s hook - %s\n", outBuffer); | |
8554 | ||
8555 | if (fSprintfFile) { | |
8556 | fprintf(fSprintfFile, "%08X - %s\r\n", link, outBuffer); | |
8557 | fflush(fSprintfFile); | |
8558 | } | |
8559 | } | |
8560 | ||
8561 | HINTERNET NetDll_XHttpOpenHook(DWORD reg3, const CHAR *pcszUserAgent, DWORD dwAccessType, const CHAR *pcszProxyName, const CHAR *pcszProxyBypass, DWORD dwFlags) { | |
8562 | ||
8563 | printf("[R*] - NetDll_XHttpOpenHook - User Agent %s Proxy Name %s Proxy Bypass %s\n", pcszUserAgent, pcszProxyName, pcszProxyBypass); | |
8564 | ||
8565 | return XHttpOpen(pcszUserAgent, dwAccessType, pcszProxyName, pcszProxyBypass, dwFlags); | |
8566 | } | |
8567 | ||
8568 | int httpReadDataCount = 0; | |
8569 | ||
8570 | FILE *fHttpRead = 0; | |
8571 | ||
8572 | BOOL NetDll_XHttpReadDataHook(DWORD reg3, HINTERNET hRequest, VOID *pBuffer, DWORD dwNumberOfBytesToRead, DWORD *pdwNumberOfBytesRead) { | |
8573 | BOOL result = XHttpReadData(hRequest, pBuffer, dwNumberOfBytesToRead, pdwNumberOfBytesRead); | |
8574 | ||
8575 | CHAR filePath[MAX_PATH]; | |
8576 | sprintf_s(filePath, "Hdd:\\ReadStream.bin"); | |
8577 | ||
8578 | MountPath("Hdd:", "\\Device\\Harddisk0\\Partition1", FALSE); | |
8579 | ||
8580 | printf("[R*] - NetDll_XHttpReadDataHook - Read %d bytes from http request. Dumping to file.\n", dwNumberOfBytesToRead); | |
8581 | //DumpFile(filePath, (PBYTE)pBuffer, dwNumberOfBytesToRead); | |
8582 | ||
8583 | if (!fHttpRead) { | |
8584 | fopen_s(&fHttpRead, filePath, "a"); | |
8585 | } | |
8586 | ||
8587 | if (fHttpRead) { | |
8588 | fwrite((PBYTE)pBuffer, 1, dwNumberOfBytesToRead, fHttpRead); | |
8589 | fflush(fHttpRead); | |
8590 | } | |
8591 | ||
8592 | return result; | |
8593 | } | |
8594 | ||
8595 | int httpWrittenDataCount = 0; | |
8596 | ||
8597 | FILE *fWriteStream = 0; | |
8598 | ||
8599 | BOOL NetDll_XHttpWriteDataHook(DWORD reg3, HINTERNET hRequest, VOID *pBuffer, DWORD dwNumberOfBytesToWrite, DWORD *pdwNumberOfBytesWritten) { | |
8600 | BOOL result = XHttpWriteData(hRequest, pBuffer, dwNumberOfBytesToWrite, pdwNumberOfBytesWritten); | |
8601 | ||
8602 | CHAR filePath[MAX_PATH]; | |
8603 | sprintf_s(filePath, "Hdd:\\WriteStream.bin"); | |
8604 | ||
8605 | MountPath("Hdd:", "\\Device\\Harddisk0\\Partition1", FALSE); | |
8606 | ||
8607 | printf("[R*] - NetDll_XHttpWriteDataHook - Wrote %d bytes to http request. Dumping to file.\n", dwNumberOfBytesToWrite); | |
8608 | //DumpFile(filePath, (PBYTE)pBuffer, dwNumberOfBytesToWrite); | |
8609 | ||
8610 | if (!fWriteStream) { | |
8611 | fopen_s(&fWriteStream, filePath, "a"); | |
8612 | } | |
8613 | ||
8614 | if (fWriteStream) { | |
8615 | fwrite((PBYTE)pBuffer, 1, dwNumberOfBytesToWrite, fWriteStream); | |
8616 | fflush(fWriteStream); | |
8617 | } | |
8618 | ||
8619 | return result; | |
8620 | } | |
8621 | ||
8622 | int httpSendRequestCount = 0; | |
8623 | ||
8624 | BOOL NetDll_XHttpSendRequestHook(DWORD reg3, | |
8625 | HINTERNET hRequest, | |
8626 | const CHAR *pcszHeaders, | |
8627 | DWORD dwHeadersLength, | |
8628 | const VOID *lpOptional, | |
8629 | DWORD dwOptionalLength, | |
8630 | DWORD dwTotalLength, | |
8631 | DWORD_PTR dwContext | |
8632 | ) { | |
8633 | ||
8634 | //printf("[R*] - NetDll_XHttpSendRequestHook - headers = %s\n", pcszHeaders); | |
8635 | ||
8636 | //if (lpOptional) { | |
8637 | // CHAR filePath[MAX_PATH]; | |
8638 | // sprintf_s(filePath, "Hdd:\\XHttpSendRequestOptional\\%d.bin", httpSendRequestCount++); | |
8639 | ||
8640 | // MountPath("Hdd:", "\\Device\\Harddisk0\\Partition1", FALSE); | |
8641 | ||
8642 | // //printf("[R*] - NetDll_XHttpSendRequestHook - Dumping extra data %d\n", httpSendRequestCount); | |
8643 | ||
8644 | // DumpFile(filePath, (PBYTE)lpOptional, dwOptionalLength); | |
8645 | //} | |
8646 | ||
8647 | return XHttpSendRequest(hRequest, pcszHeaders, dwHeadersLength, lpOptional, dwOptionalLength, dwTotalLength, dwContext); | |
8648 | } | |
8649 | ||
8650 | //HRESULT XAuthGetToken( | |
8651 | // DWORD UserIndex, | |
8652 | // const CHAR *pUrn, | |
8653 | // DWORD UrnLength, | |
8654 | // RELYING_PARTY_TOKEN **pToken, | |
8655 | // XOVERLAPPED *pXOverlapped | |
8656 | //) | |
8657 | ||
8658 | /*typedef struct _RELYING_PARTY_TOKEN { | |
8659 | DWORD Reserved; | |
8660 | DWORD Length; | |
8661 | PBYTE pToken; | |
8662 | } RELYING_PARTY_TOKEN, *PRELYING_PARTY_TOKEN;*/ | |
8663 | ||
8664 | ||
8665 | HRESULT XAuthGetTokenHook( | |
8666 | DWORD UserIndex, | |
8667 | const CHAR *pUrn, | |
8668 | DWORD UrnLength, | |
8669 | RELYING_PARTY_TOKEN **pToken, | |
8670 | XOVERLAPPED *pXOverlapped | |
8671 | ) { | |
8672 | ||
8673 | printf("[R*] - XAuthGetTokenHook - %s\n", pUrn); | |
8674 | ||
8675 | PBYTE gamerData = (PBYTE)0x81AA2C70; | |
8676 | ||
8677 | QWORD oldXUID = *(QWORD*)(gamerData + 0x3C); | |
8678 | ||
8679 | //*(QWORD*)(gamerData + 0x3C) = 2533275020856061; | |
8680 | ||
8681 | HRESULT hr = XAuthGetToken(UserIndex, pUrn, UrnLength, pToken, pXOverlapped); | |
8682 | ||
8683 | //*(QWORD*)(gamerData + 0x3C) = oldXUID; | |
8684 | ||
8685 | printf("[R*] - XAuthGetTokenHook - HRESULT = %08X\n", hr); | |
8686 | printf("[R*] - XAuthGetTokenHook - pToken = %08X\n", pToken); | |
8687 | ||
8688 | if (pToken) { | |
8689 | RELYING_PARTY_TOKEN *p = *pToken; | |
8690 | ||
8691 | printf("[R*] - XAuthGetTokenHook - p = %08X\n", p); | |
8692 | ||
8693 | if (p) { | |
8694 | printf("[R*] - XAuthGetTokenHook - "); | |
8695 | ||
8696 | for (int i = 0; i < p->Length; i++) { | |
8697 | printf("%02X ", p->pToken[i]); | |
8698 | } | |
8699 | ||
8700 | printf("\n"); | |
8701 | } | |
8702 | } | |
8703 | ||
8704 | return hr; | |
8705 | } | |
8706 | ||
8707 | //.rdata:8162AC40 CXamTokenAdapter:.long ___ECXamLiveHiveAdapter | |
8708 | //.rdata:8162AC40 # DATA XREF: sub_818F1268:loc_818F139Co | |
8709 | //.rdata:8162AC44 .long _XamGetToken_CXamTokenAdapter | |
8710 | //.rdata:8162AC48 .long _XamRequestToken_CXamTokenAdapter | |
8711 | //.rdata:8162AC4C .long _XamGetAppliesTo_CXamTokenAdapter | |
8712 | //.rdata:8162AC50 .long _XamFreeToken_CXamTokenAdapter | |
8713 | ||
8714 | extern "C" DWORD XamGetToken(unsigned long reg3, char const * reg4, unsigned long reg5, struct _XAM_RELYING_PARTY_TOKEN * * reg6, struct _XOVERLAPPED * reg7); | |
8715 | extern "C" DWORD XamRequestToken(unsigned long reg3, unsigned long reg4, char const * reg5, unsigned long reg6, struct _XAM_RELYING_PARTY_TOKEN * * reg7, struct _XOVERLAPPED * reg8); | |
8716 | extern "C" DWORD XamGetAppliesTo(char const * reg3, unsigned long reg4, struct _XAM_RELYING_PARTY_TOKEN * * reg5); | |
8717 | ||
8718 | DWORD XamGetToken_CXamTokenAdapter(unsigned long reg3, unsigned long reg4, char const * reg5, unsigned long reg6, struct _XAM_RELYING_PARTY_TOKEN * * reg7, struct _XOVERLAPPED * reg8) { | |
8719 | DWORD link = 0; | |
8720 | __asm mflr link; | |
8721 | printf("%08X - XamGetToken_CXamTokenAdapter - %s\n", link, reg5); | |
8722 | return XamGetToken(reg4, reg5, reg6, reg7, reg8); | |
8723 | } | |
8724 | ||
8725 | DWORD XamRequestToken_CXamTokenAdapter(unsigned long reg3, unsigned long reg4, unsigned long reg5, char const * reg6, unsigned long reg7, struct _XAM_RELYING_PARTY_TOKEN * * reg8, struct _XOVERLAPPED * reg9) { | |
8726 | DWORD link = 0; | |
8727 | __asm mflr link; | |
8728 | printf("%08X - XamRequestToken_CXamTokenAdapter - %s\n", link, reg6); | |
8729 | return XamRequestToken(reg4, reg5, reg6, reg7, reg8, reg9); | |
8730 | } | |
8731 | ||
8732 | DWORD XamGetAppliesTo_CXamTokenAdapter(unsigned long reg3, char const * reg4, unsigned long reg5, struct _XAM_RELYING_PARTY_TOKEN * * reg6) { | |
8733 | DWORD link = 0; | |
8734 | __asm mflr link; | |
8735 | printf("%08X - XamGetAppliesTo_CXamTokenAdapter - %s\n", link, reg4); | |
8736 | return XamGetAppliesTo(reg4, reg5, reg6); | |
8737 | } | |
8738 | ||
8739 | void HookXamTokenVTable() { | |
8740 | DWORD* CXamTokenAdapter = (DWORD*)0x8162AC40; | |
8741 | ||
8742 | PatchInJump((PDWORD)CXamTokenAdapter[1], (DWORD)XamGetToken_CXamTokenAdapter, FALSE); | |
8743 | PatchInJump((PDWORD)CXamTokenAdapter[2], (DWORD)XamRequestToken_CXamTokenAdapter, FALSE); | |
8744 | PatchInJump((PDWORD)CXamTokenAdapter[3], (DWORD)XamGetAppliesTo_CXamTokenAdapter, FALSE); | |
8745 | ||
8746 | PBYTE gamerData = (PBYTE)0x81AA2C70; | |
8747 | ||
8748 | //wcscpy((wchar_t*)(gamerData + 0x1C), L"Borat Is Black"); | |
8749 | *(QWORD*)(gamerData + 0x3C) = 2533275020856061; // XUID here | |
8750 | } | |
8751 | ||
8752 | //.text:816BF97C lis r4, 2 # 0x2F001 | |
8753 | //.text:816BF980 li r8, 0 | |
8754 | //.text:816BF984 li r7, 0x428 | |
8755 | //.text:816BF988 addi r6, r1, 0x4F0+var_470 | |
8756 | //.text:816BF98C mr r5, r27 | |
8757 | //.text:816BF990 ori r4, r4, 0xF001 # 0x2F001 | |
8758 | //.text:816BF994 li r3, 0xFE | |
8759 | //.text:816BF998 bl XMsgStartIORequestEx | |
8760 | ||
8761 | //typedef struct _XOVERLAPPED { | |
8762 | // ULONG_PTR InternalLow; | |
8763 | // ULONG_PTR InternalHigh; | |
8764 | // ULONG_PTR InternalContext; | |
8765 | // HANDLE hEvent; | |
8766 | // PXOVERLAPPED_COMPLETION_ROUTINE pCompletionRoutine; | |
8767 | // DWORD_PTR dwCompletionContext; | |
8768 | // DWORD dwExtendedError; | |
8769 | //} XOVERLAPPED, *PXOVERLAPPED; | |
8770 | ||
8771 | HRESULT XamRequestTokenMidFunctionHook( | |
8772 | IN HXAMAPP hxamapp, | |
8773 | IN DWORD dwMessage, | |
8774 | IN PXOVERLAPPED pOverlapped, | |
8775 | IN OUT PVOID pUserBuffer, | |
8776 | IN DWORD cbUserBuffer, | |
8777 | IN PVOID pTaskAttribs | |
8778 | ) { | |
8779 | ||
8780 | PXOVERLAPPED pOver = nullptr; | |
8781 | ||
8782 | __asm { | |
8783 | mr pOver, r27 | |
8784 | } | |
8785 | ||
8786 | /*if (pOver) { | |
8787 | printf("XamRequestTokenMidFunctionHook *****\n"); | |
8788 | printf("InternalLow - %08X\n", pOver->InternalLow); | |
8789 | printf("InternalHigh - %08X\n", pOver->InternalHigh); | |
8790 | printf("InternalContext - %08X\n", pOver->InternalContext); | |
8791 | printf("hEvent - %08X\n", pOver->hEvent); | |
8792 | printf("pCompletionRoutine - %08X\n", pOver->pCompletionRoutine); | |
8793 | printf("dwCompletionContext - %08X\n", pOver->dwCompletionContext); | |
8794 | printf("dwExtendedError - %08X\n", pOver->dwExtendedError); | |
8795 | printf("End XamRequestTokenMidFunctionHook *****\n"); | |
8796 | }*/ | |
8797 | ||
8798 | QWORD xuidSpoof = 2533275020856061; | |
8799 | memcpy((PBYTE)pUserBuffer + 0x418, &xuidSpoof, 8); | |
8800 | ||
8801 | HRESULT hr = XMsgStartIORequestEx((HXAMAPP)0xFE, 0x2F001, pOver, pUserBuffer, cbUserBuffer, pTaskAttribs); | |
8802 | ||
8803 | /*if (pOver) { | |
8804 | printf("XamRequestTokenMidFunctionHook *****\n"); | |
8805 | printf("InternalLow - %08X\n", pOver->InternalLow); | |
8806 | printf("InternalHigh - %08X\n", pOver->InternalHigh); | |
8807 | printf("InternalContext - %08X\n", pOver->InternalContext); | |
8808 | printf("hEvent - %08X\n", pOver->hEvent); | |
8809 | printf("pCompletionRoutine - %08X\n", pOver->pCompletionRoutine); | |
8810 | printf("dwCompletionContext - %08X\n", pOver->dwCompletionContext); | |
8811 | printf("dwExtendedError - %08X\n", pOver->dwExtendedError); | |
8812 | printf("End XamRequestTokenMidFunctionHook *****\n"); | |
8813 | }*/ | |
8814 | ||
8815 | return hr; | |
8816 | } | |
8817 | ||
8818 | HRESULT InnerXamUserGetXUIDHook(DWORD dwUserIndex, DWORD unk, PXUID onlineOut) { | |
8819 | DWORD link = 0; | |
8820 | __asm mflr link; | |
8821 | ||
8822 | HRESULT (__cdecl *func)(DWORD reg3, DWORD reg4, PXUID reg5, DWORD reg6) = (HRESULT (__cdecl *)(DWORD reg3, DWORD reg4, PXUID reg5, DWORD reg6))0x816D79C8; | |
8823 | ||
8824 | /*printf("Test ****\n"); | |
8825 | ||
8826 | for (DWORD i = 0; i < 10; i++) { | |
8827 | *onlineOut = 0; | |
8828 | func(dwUserIndex, i, onlineOut, 0x81AA2C70); | |
8829 | printf("flag %d = %016llX\n", i, *onlineOut); | |
8830 | } | |
8831 | ||
8832 | printf("Test *****\n");*/ | |
8833 | ||
8834 | HRESULT hr = func(dwUserIndex, unk, onlineOut, 0x81AA2C70); | |
8835 | ||
8836 | printf("XamUserGetXUID - lr = %08X hr = %08X user index - %08X flags - %08X xuidptr - %08X xuid - %016llX\n", link, hr, dwUserIndex, unk, onlineOut, *onlineOut); | |
8837 | ||
8838 | if (link == 0x816BF914) { | |
8839 | printf("Changing xuid HRESULT %08X current one is %016llX\n", hr, *onlineOut); | |
8840 | //*onlineOut = 0x00090000093F5911; // XUID here | |
8841 | } | |
8842 | ||
8843 | return hr; | |
8844 | } | |
8845 | ||
8846 | void UpdateMenu() { | |
8847 | if (XamGetCurrentTitleId() != 0x545408A7) | |
8848 | return; | |
8849 | ||
8850 | ShowMessageUpdate(); | |
8851 | ||
8852 | if (teleportingPlayer) { | |
8853 | TeleportPlayerProcess(); | |
8854 | } | |
8855 | if (Delete) { | |
8856 | DeleteProcess(); | |
8857 | } | |
8858 | ||
8859 | if (KickinggPlayer) { | |
8860 | LMAOProccess(); | |
8861 | } | |
8862 | ||
8863 | if (paintingPlayersCar) { | |
8864 | PaintOnlinePlayersCarProcess(); | |
8865 | } | |
8866 | ||
8867 | if (explodingPlayersCar) { | |
8868 | ExplodeOnlinePlayerVehicleProcess(); | |
8869 | } | |
8870 | ||
8871 | if (launchingPlayersCar) { | |
8872 | SendPlayersCarToSpaceProcess(); | |
8873 | } | |
8874 | ||
8875 | if (towTruckCar) { | |
8876 | TowTruckProcess(); | |
8877 | } | |
8878 | ||
8879 | if (detachTowTruckCar) { | |
8880 | DetachTowTruckProcess(); | |
8881 | } | |
8882 | ||
8883 | if (rcCar) { | |
8884 | RcCarProcess(); | |
8885 | } | |
8886 | ||
8887 | if (lockPlayersCar) { | |
8888 | LockPlayersDoorsProcess(); | |
8889 | } | |
8890 | if (fixPlayersCar){ | |
8891 | FixVehicleOnlineProcess(); | |
8892 | } | |
8893 | if (paintingPlayersCarChrome){ | |
8894 | PaintOnlinePlayersCarChromeProcess(); | |
8895 | } | |
8896 | if (pinkPlayersCar) { | |
8897 | PinkOnlinePlayerVehicleProcess(); | |
8898 | } | |
8899 | ||
8900 | if(rainbow) | |
8901 | rainbow_car(); | |
8902 | if(superjump) | |
8903 | super_jump(); | |
8904 | if(superruncheck) | |
8905 | super_run(); | |
8906 | if(lowered) | |
8907 | lowerloop(); | |
8908 | if (wanted) | |
8909 | wantedloop(); | |
8910 | if (field) | |
8911 | fieldloop(); | |
8912 | if (activenos) | |
8913 | nosloop(); | |
8914 | if (rocket) | |
8915 | rocketloop(); | |
8916 | if(deagle) | |
8917 | UltimateDeagleLoop(); | |
8918 | if (fwrocket) | |
8919 | fwrocketloop(); | |
8920 | if (mg) | |
8921 | mgloop(); | |
8922 | if (Mini) | |
8923 | miniloop(); | |
8924 | if (invincibeloop) | |
8925 | invinciblecarloop(); | |
8926 | if(TeleportToWaypoint) | |
8927 | Waypointloop(); | |
8928 | if (aimbot) { | |
8929 | aimbotloop(aimbotClient); | |
8930 | aimbotrelease(); | |
8931 | aimbotClient += 1; | |
8932 | if(aimbotClient >= 16) | |
8933 | aimbotClient = 0; | |
8934 | } | |
8935 | if (dw) | |
8936 | drive_water(); | |
8937 | if (da) | |
8938 | drive_water(); | |
8939 | if (neons) | |
8940 | neonloop(); | |
8941 | if (handdrift) | |
8942 | slideyloop(); | |
8943 | if (rocket_gun) | |
8944 | rocketgun(); | |
8945 | if (custom_per) | |
8946 | supercar(); | |
8947 | if (Create) | |
8948 | create_loop(); | |
8949 | if (speedo) | |
8950 | speed(); | |
8951 | if (cam_mode) | |
8952 | cam_loop(); | |
8953 | if (super_check) | |
8954 | super_loop(); | |
8955 | if (fly_car) | |
8956 | fly_car_loop(); | |
8957 | if (rapid_fire) | |
8958 | rocketgun2(); | |
8959 | if (firework_gun) | |
8960 | fwgun(); | |
8961 | if (col_loop) | |
8962 | fw_col_loop(); | |
8963 | #ifdef PRIVATE | |
8964 | if (analog_loop) | |
8965 | analog_speedo(); | |
8966 | #endif | |
8967 | #ifdef PRIVATE | |
8968 | if (Peg_Global) | |
8969 | pegasusloop(); | |
8970 | #endif | |
8971 | #ifdef personal | |
8972 | if (drop) | |
8973 | cashloop(); | |
8974 | #endif | |
8975 | secure_check(); | |
8976 | ||
8977 | // Update our input | |
8978 | menuInputHandler->UpdateInput(); | |
8979 | ||
8980 | // Check to see if we activated our menu | |
8981 | if (menuInputHandler->DPadLeftDown() && menuInputHandler->XButtonDown() && !inputButtonsPressed) { | |
8982 | enableMenu = !enableMenu; | |
8983 | printf("Menu %s\n", enableMenu ? "opened" : "closed"); | |
8984 | inputButtonsPressed = true; | |
8985 | } | |
8986 | else if (!menuInputHandler->DPadLeftDown() && !menuInputHandler->XButtonDown()) { | |
8987 | inputButtonsPressed = false; | |
8988 | ||
8989 | } | |
8990 | ||
8991 | // Display our menu if we must | |
8992 | if (enableMenu) { | |
8993 | // update players list if the menu is open | |
8994 | for (int i = 0; i < 16; i++) { | |
8995 | GTAVMenuItem *menuItem = &onlinePlayers->menuItems->operator[](i); | |
8996 | ||
8997 | // Get player name | |
8998 | char *playerName = GetPlayerName(i); | |
8999 | ||
9000 | // clear out the name | |
9001 | memset(menuItem->itemText, 0, 32); | |
9002 | ||
9003 | // Copy the name into the struct | |
9004 | strcpy_s(menuItem->itemText, 32, playerName); | |
9005 | } | |
9006 | ||
9007 | mainMenu->DisplayMenu(); | |
9008 | } | |
9009 | } | |
9010 | ||
9011 | int __declspec(naked) VM_ExecuteStub(...) | |
9012 | { | |
9013 | __asm | |
9014 | { | |
9015 | li r3, 3 | |
9016 | nop | |
9017 | nop | |
9018 | nop | |
9019 | nop | |
9020 | nop | |
9021 | nop | |
9022 | blr | |
9023 | } | |
9024 | } | |
9025 | ||
9026 | __int64 __declspec(naked) create_objectStub(...) | |
9027 | { | |
9028 | __asm | |
9029 | { | |
9030 | li r3, 8 | |
9031 | nop | |
9032 | nop | |
9033 | nop | |
9034 | nop | |
9035 | nop | |
9036 | nop | |
9037 | blr | |
9038 | } | |
9039 | } | |
9040 | ||
9041 | __int64 create_objectHook(int Args) { | |
9042 | printf("create_object Model = %p\n", (*(int *)*(int *)(Args + 8))); | |
9043 | return create_objectStub(Args); | |
9044 | } | |
9045 | ||
9046 | int val1, val2, val3, val4, PlateVal = -1; | |
9047 | int FreeMemoryPointer; | |
9048 | __int64 VM_ExecuteHook(__int64 r3, int r4, __int64 r5, __int64 r6) { | |
9049 | Var_Pointer = r4; | |
9050 | __int64 Return = VM_ExecuteStub(r3, r4, r5, r6); | |
9051 | if (cash2) | |
9052 | { | |
9053 | network_handle_from_player(trollcli, FreeMemoryPointer, 13); | |
9054 | network_send_text_message("~o~ Rockstar ~w~ transferred ~g~ $9999999 ~w~ to your account.", FreeMemoryPointer); | |
9055 | ShowMessageOnScreen("~b~ Gift cash message sent!"); | |
9056 | cash2 = false; | |
9057 | } | |
9058 | if (cash1) | |
9059 | { | |
9060 | network_handle_from_player(trollcli, FreeMemoryPointer, 13); | |
9061 | network_send_text_message("~o~ Rockstar ~r~ deducted ~g~ $9999999 ~w~ from your account.", FreeMemoryPointer); | |
9062 | ShowMessageOnScreen("~b~ Deducted cash message sent!"); | |
9063 | cash1 = false; | |
9064 | } | |
9065 | if (deleted) { | |
9066 | set_entity_as_mission_entity(deletevehicle, 0, 1); | |
9067 | delete_vehicle(deletevehicle); | |
9068 | deleted = false; | |
9069 | } | |
9070 | if (deleted_obj) { | |
9071 | set_entity_as_mission_entity(objecthandle, 0, 1); | |
9072 | delete_object(objecthandle); | |
9073 | deleted_obj = false; | |
9074 | } | |
9075 | if (fan_delete) { | |
9076 | set_entity_as_mission_entity(fan, 0, 1); | |
9077 | delete_object(fan); | |
9078 | fan_delete = false; | |
9079 | } | |
9080 | if (nyloaded) | |
9081 | { | |
9082 | request_ipl( "prologue01" ); | |
9083 | request_ipl( "prologue01c" ); | |
9084 | request_ipl( "prologue01d" ); | |
9085 | request_ipl( "prologue01e" ); | |
9086 | request_ipl( "prologue01f" ); | |
9087 | request_ipl( "prologue01g" ); | |
9088 | request_ipl( "prologue01h" ); | |
9089 | request_ipl( "prologue01i" ); | |
9090 | request_ipl( "prologue01j" ); | |
9091 | request_ipl( "prologue01k" ); | |
9092 | request_ipl( "prologue01z" ); | |
9093 | request_ipl( "prologue02" ); | |
9094 | request_ipl( "prologue03" ); | |
9095 | request_ipl( "prologue03b" ); | |
9096 | request_ipl( "prologue04" ); | |
9097 | request_ipl( "prologue04b" ); | |
9098 | request_ipl( "prologue05" ); | |
9099 | request_ipl( "prologue05b" ); | |
9100 | request_ipl( "prologue06" ); | |
9101 | request_ipl( "prologue06b" ); | |
9102 | request_ipl( "prologuerd" ); | |
9103 | request_ipl( "prologuerdb" ); | |
9104 | request_ipl( "prologue_m2_door" ); | |
9105 | request_ipl( "prologue_LODLights" ); | |
9106 | request_ipl( "prologue_DistantLights" ); | |
9107 | float x,y,z; | |
9108 | ||
9109 | x = 5890.491211, y = -5163.499512, z = 83.209396; | |
9110 | int myhandle = GetPlayerHandle(PlayerId()); | |
9111 | int myvehicle; | |
9112 | if (is_ped_in_any_vehicle(myhandle)) { | |
9113 | myvehicle = GetCarCharIsIn(myhandle, 0); | |
9114 | if (DoesEntityExist(myvehicle) && IsEntityVehicle(myvehicle)) { | |
9115 | set_entity_coords(myvehicle, x, y, z, 0, 0, 0, 1); | |
9116 | } | |
9117 | else { | |
9118 | set_entity_coords(myhandle, x, y, z, 0, 0, 0, 1); | |
9119 | } | |
9120 | } | |
9121 | //set_entity_coords(PlayerPedId(), 3546.27f, -4672.902f, 113.8323f, 1, 0, 0, 1 ); | |
9122 | set_entity_heading(PlayerPedId(), 172.5381f ); | |
9123 | nyloaded = false; | |
9124 | } | |
9125 | if (fwvcheck) | |
9126 | { | |
9127 | if (!unk_0x9ACC6446("scr_indep_fireworks")) | |
9128 | { | |
9129 | unk_0xCFEA19A9("scr_indep_fireworks"); | |
9130 | } | |
9131 | else | |
9132 | { | |
9133 | float f1; | |
9134 | f1 = 1.0; | |
9135 | float r, g, b; | |
9136 | r = 0.1, g = 1.0, b = 0.1; | |
9137 | unk_0x9C720B61( "scr_indep_fireworks" ); | |
9138 | unk_0x7B689E20( r, g, b ); | |
9139 | unk_0x633F8C48(fexp, fcoords[0], fcoords[1], fcoords[2], 0.0f, 0.0f, 0.0f, f1, 0, 0, 0); | |
9140 | fwvcheck = false; | |
9141 | } | |
9142 | } | |
9143 | ||
9144 | if (fw_gun_ready) | |
9145 | { | |
9146 | if (!unk_0x9ACC6446("scr_indep_fireworks")) | |
9147 | { | |
9148 | unk_0xCFEA19A9("scr_indep_fireworks"); | |
9149 | } | |
9150 | else | |
9151 | { | |
9152 | //////float f1; | |
9153 | ////f1 = 1.0; | |
9154 | ///float r, g, b; | |
9155 | // r = 0.1, g = 1.0, b = 0.1; | |
9156 | unk_0x9C720B61( "scr_indep_fireworks" ); | |
9157 | unk_0x7B689E20( fr, fg, fb ); | |
9158 | unk_0x633F8C48(fexp1, fwcoords[0], fwcoords[1], fwcoords[2], 0.0f, 0.0f, 0.0f, fwsize, 0, 0, 0); | |
9159 | fw_gun_ready = false; | |
9160 | } | |
9161 | } | |
9162 | ||
9163 | ||
9164 | #ifdef PRIVATE | |
9165 | if (speed_req) | |
9166 | { | |
9167 | if (!has_streamed_texture_dict_loaded("mpmissmarkers256")) | |
9168 | { | |
9169 | request_streamed_texture_dict("mpmissmarkers256", 0); | |
9170 | } | |
9171 | else { speedo_ready = true; } | |
9172 | speed_req = false; | |
9173 | } | |
9174 | #endif | |
9175 | //get_ped_last_weapon_impact_coord(PlayerPedId(), excoords); | |
9176 | if (cam_load) | |
9177 | { | |
9178 | float x,y,z; | |
9179 | x = 0.1; // 0.1 | |
9180 | y = 0.07; // 0.07 | |
9181 | z = 0.002; | |
9182 | cam = create_cam("DEFAULT_SCRIPTED_CAMERA", 1); | |
9183 | printf("1\n"); | |
9184 | attach_cam_to_ped_bone(cam, PlayerPedId(), 31086, x, y, z, true); | |
9185 | printf("2\n"); | |
9186 | set_cam_active(cam, true); | |
9187 | printf("3\n"); | |
9188 | render_script_cams(1, 0, 3000, 1, 0); | |
9189 | printf("4\n"); | |
9190 | cam_check = true; | |
9191 | cam_load = false; | |
9192 | } | |
9193 | if (movement) | |
9194 | { | |
9195 | request_anim_set(anim1); | |
9196 | //ShowMessageOnScreen("~b~ Requesting Anim"); | |
9197 | if (has_anim_set_loaded(anim1)) | |
9198 | { | |
9199 | unk_0xA817CDEB(PlayerPedId(), anim1, 1048576000 ); | |
9200 | } | |
9201 | movement = false; | |
9202 | } | |
9203 | if (arrest) { | |
9204 | task_arrest_ped(PlayerPedId(), arresthandle); | |
9205 | //task_aim_gun_at_entity(PlayerPedId(), arresthandle, -1, 1); | |
9206 | arrest = false; | |
9207 | } | |
9208 | if (follow) | |
9209 | { | |
9210 | float Pos[3]; | |
9211 | int theirPedHandle = GetPlayerHandle(animid); | |
9212 | int myPedHandle = PlayerPedId(); | |
9213 | GetEntityCoords(myPedHandle, Pos); | |
9214 | task_follow_nav_mesh_to_coord(theirPedHandle, Pos[0], Pos[1], Pos[2], 1.0f, -1, 1048576000, 0, 1193033728); | |
9215 | follow = false; | |
9216 | ShowMessageOnScreen("~b~ The player you selected will be stuck in a loop untill you click stop task!"); | |
9217 | } | |
9218 | if (telefoot_prison) | |
9219 | { | |
9220 | float Pos[3]; | |
9221 | int theirPedHandle = GetPlayerHandle(animid); | |
9222 | //int myPedHandle = PlayerPedId(); | |
9223 | //GetEntityCoords(myPedHandle, Pos); | |
9224 | task_follow_nav_mesh_to_coord(theirPedHandle, 769.252869, -1866.222778, 29.297344, 1.0f, 1000, 1048576000, 0, 1193033728); | |
9225 | telefoot_prison = false; | |
9226 | ShowMessageOnScreen("~b~ In around 5 - 20 seconds the player will teleport to prison!, I suggest starting a ANIM on them so they can't kill themselves"); | |
9227 | } | |
9228 | if (telefoot_way) | |
9229 | { | |
9230 | //float Pos[3]; | |
9231 | int theirPedHandle = GetPlayerHandle(animid); | |
9232 | int waypoint = get_first_blip_info_id(8); | |
9233 | if(does_blip_exist(waypoint)) { | |
9234 | float coords[3]; | |
9235 | get_blip_coords(waypoint, coords); | |
9236 | float gz; | |
9237 | get_ground_z_for_3d_coord(coords[0], coords[1], coords[2], &gz); | |
9238 | task_follow_nav_mesh_to_coord(theirPedHandle, coords[0], coords[1], gz, 1.0f, 1000, 1048576000, 0, 1193033728); | |
9239 | telefoot_way = false; | |
9240 | ShowMessageOnScreen("~b~ In around 5 - 20 seconds the player will teleport to waypoint"); | |
9241 | } | |
9242 | else {ShowMessageOnScreen("~b~ Please set a waypoint first!");} | |
9243 | } | |
9244 | if (telefoot) | |
9245 | { | |
9246 | float Pos[3]; | |
9247 | int theirPedHandle = GetPlayerHandle(animid); | |
9248 | int myPedHandle = PlayerPedId(); | |
9249 | GetEntityCoords(myPedHandle, Pos); | |
9250 | task_follow_nav_mesh_to_coord(theirPedHandle, Pos[0], Pos[1], Pos[2], 1.0f, 1000, 1048576000, 0, 1193033728); | |
9251 | telefoot = false; | |
9252 | ShowMessageOnScreen("~b~ In around 5 - 20 seconds the player will teleport to you!"); | |
9253 | } | |
9254 | if (alltelefoot) | |
9255 | { | |
9256 | int i = 0; | |
9257 | for (i = 0;i<16;i++) | |
9258 | { | |
9259 | if (i == PlayerId()) continue; | |
9260 | int Handle = GetPlayerHandle(i); | |
9261 | if(!DoesEntityExist(Handle)) continue; | |
9262 | float Pos[3]; | |
9263 | int theirPedHandle = GetPlayerHandle(i); | |
9264 | int myPedHandle = PlayerPedId(); | |
9265 | GetEntityCoords(myPedHandle, Pos); | |
9266 | task_follow_nav_mesh_to_coord(theirPedHandle, Pos[0], Pos[1], Pos[2], 1.0f, 1000, 1048576000, 0, 1193033728); | |
9267 | //ShowMessageOnScreen("~b~ In around - 25 seconds the player will teleport to you!"); | |
9268 | } | |
9269 | alltelefoot = false; | |
9270 | } | |
9271 | if (alltelefootway) | |
9272 | { | |
9273 | int i = 0; | |
9274 | for (i = 0;i<16;i++) | |
9275 | { | |
9276 | if (i == PlayerId()) continue; | |
9277 | int Handle = GetPlayerHandle(i); | |
9278 | if(!DoesEntityExist(Handle)) continue; | |
9279 | int theirPedHandle = GetPlayerHandle(i); | |
9280 | int myPedHandle = PlayerPedId(); | |
9281 | int waypoint = get_first_blip_info_id(8); | |
9282 | if(does_blip_exist(waypoint)) { | |
9283 | float coords[3]; | |
9284 | get_blip_coords(waypoint, coords); | |
9285 | float gz; | |
9286 | get_ground_z_for_3d_coord(coords[0], coords[1], coords[2], &gz); | |
9287 | task_follow_nav_mesh_to_coord(theirPedHandle, coords[0], coords[1], gz, 1.0f, 1000, 1048576000, 0, 1193033728); | |
9288 | //ShowMessageOnScreen("~b~ In around - 25 seconds the player will teleport to you!"); | |
9289 | } | |
9290 | else {ShowMessageOnScreen("~b~ Please set waypoint first!");} | |
9291 | } | |
9292 | alltelefootway = false; | |
9293 | } | |
9294 | if (cower) | |
9295 | { | |
9296 | int playerPedHandle = GetPlayerHandle(animid); | |
9297 | task_cower(playerPedHandle, -1); | |
9298 | cower = false; | |
9299 | ShowMessageOnScreen("~b~ The player you selected will be stuck in a loop untill you click stop task!"); | |
9300 | } | |
9301 | if (kidnap) | |
9302 | { | |
9303 | int playerPedHandle = GetPlayerHandle(animid); | |
9304 | task_leave_any_vehicle(playerPedHandle, 0, 0); | |
9305 | kidnap = false; | |
9306 | ShowMessageOnScreen("~b~ The player should now leave their vehicle!"); | |
9307 | } | |
9308 | if (vm_anim) | |
9309 | { | |
9310 | request_anim_dict(animdict); | |
9311 | //ShowMessageOnScreen("~b~ Requesting Anim"); | |
9312 | if (has_anim_dict_loaded(animdict)) | |
9313 | { | |
9314 | //ShowMessageOnScreen("~b~ Loaded Anim"); | |
9315 | int playerPedHandle = GetPlayerHandle(animid); | |
9316 | task_play_anim(playerPedHandle, animdict, anim, 8.0f, 0.0f, -1, 9, 0, 0, 0, 0); | |
9317 | //task_play_anim(playerPedHandle, "missfra1mcs_2_crew_react", "handsup_standing_base", 8.0f, 0.0f, -1, 9, 0, 0, 0, 0); | |
9318 | ShowMessageOnScreen("~b~ The player you selected will be stuck in a loop untill you click stop task!"); | |
9319 | vm_anim = false; | |
9320 | } | |
9321 | } | |
9322 | if (anattack) { | |
9323 | request_anim_dict("creatures@rottweiler@melee@streamed_core@"); | |
9324 | if (has_anim_dict_loaded("creatures@rottweiler@melee@streamed_core@")) | |
9325 | //ShowMessageOnScreen("~b~ When you change to a dog or cougar you can now attack people"); | |
9326 | { | |
9327 | } | |
9328 | request_anim_dict("creatures@cougar@melee@streamed_core@"); | |
9329 | if (has_anim_dict_loaded("creatures@cougar@melee@streamed_core@")) | |
9330 | ShowMessageOnScreen("~b~ When you change to a dog or cougar you can now attack people"); | |
9331 | { | |
9332 | } | |
9333 | anattack = false; | |
9334 | } | |
9335 | if (allanim) | |
9336 | { | |
9337 | int i = 0; | |
9338 | for (i = 0;i<16;i++) | |
9339 | { | |
9340 | if (i == PlayerId()) continue; | |
9341 | int Handle = GetPlayerHandle(i); | |
9342 | if(!DoesEntityExist(Handle)) continue; | |
9343 | float Pos[3]; | |
9344 | request_anim_dict(animdict); | |
9345 | if (has_anim_dict_loaded(animdict)) | |
9346 | { | |
9347 | int playerPedHandle = GetPlayerHandle(i); | |
9348 | task_play_anim(playerPedHandle, animdict, anim, 8.0f, 0.0f, -1, 9, 0, 0, 0, 0); | |
9349 | } | |
9350 | allanim = false; | |
9351 | } | |
9352 | } | |
9353 | if (!requested && rocket){ | |
9354 | request_weapon_asset(get_hash_key("WEAPON_VEHICLE_ROCKET"), 31, 0); | |
9355 | requested = true; | |
9356 | } | |
9357 | /*if(PlateThreadValue != -1) { | |
9358 | if(PlateVal == -1) { | |
9359 | display_onscreen_keyboard(0, "PM_NAME_CHALL", "", "", "", "", 8); | |
9360 | printf("\tdisplay_onscreen_keyboard Called\n"); | |
9361 | PlateVal = 1; | |
9362 | } | |
9363 | if(!is_system_ui_being_displayed()) { | |
9364 | char* result = get_onscreen_keyboard_result(); | |
9365 | if((int)result != 0) { | |
9366 | printf("\tresult = \"%s\"\n", result); | |
9367 | set_number_plate(PlateThreadValue, result); | |
9368 | } | |
9369 | else | |
9370 | printf("\tresult == 0\n"); | |
9371 | PlateThreadValue = -1; | |
9372 | PlateVal = -1; | |
9373 | } | |
9374 | }*/ | |
9375 | if (aimbot_active) | |
9376 | { | |
9377 | if(is_player_free_aiming(PlayerPedId()) || is_player_targetting_anything(PlayerPedId())){ | |
9378 | aiming = true; | |
9379 | } | |
9380 | } | |
9381 | ||
9382 | if(scriptsetModel != -1) { | |
9383 | int achev = 7; | |
9384 | if (!car && !objectspawn){ | |
9385 | if (!IsModelInCdImage(scriptsetModel)){scriptsetModel = -1; ShowMessageOnScreen("~b~ Model does not exist!");} | |
9386 | RequestModel(scriptsetModel); | |
9387 | if (HasModelLoaded(scriptsetModel)) | |
9388 | { | |
9389 | printf("Still hit player model shit\n"); | |
9390 | SetPlayerModel(PlayerId(), scriptsetModel); | |
9391 | if (!alienspawn && !invisiblemodel && !norandomcomps){ | |
9392 | set_ped_random_component_variation(PlayerPedId(), 0); | |
9393 | } | |
9394 | if (slender){ | |
9395 | set_ped_component_variation(PlayerPedId(), 0, 0, 3, 0); | |
9396 | set_ped_component_variation(PlayerPedId(), 0, 3, 3, 0); | |
9397 | slender = false; | |
9398 | } | |
9399 | if (alienspawn){ | |
9400 | alienspawn = false; | |
9401 | } | |
9402 | if (invisiblemodel){ | |
9403 | invisiblemodel = false; | |
9404 | } | |
9405 | if (norandomcomps){ | |
9406 | norandomcomps = false; | |
9407 | } | |
9408 | /*if (stripperspawn) | |
9409 | { | |
9410 | set_ped_component_variation(PlayerPedId(), val1, val2, val3, val4); | |
9411 | stripperspawn = false; | |
9412 | }*/ | |
9413 | //give_achievement_to_player(achev); | |
9414 | ShowMessageOnScreen("~b~ Player Model Set"); | |
9415 | scriptsetModel = -1; | |
9416 | } | |
9417 | } | |
9418 | } | |
9419 | if (car){ | |
9420 | if (!IsModelInCdImage(scriptsetModel)){car = false; ShowMessageOnScreen("~b~ Model does not exist!");} | |
9421 | RequestModel(scriptsetModel); | |
9422 | printf("Model Requested\n"); | |
9423 | if (HasModelLoaded(scriptsetModel)) | |
9424 | { | |
9425 | int netid; | |
9426 | int val1 = 0, val2 = 1; | |
9427 | int spawnvehicle; | |
9428 | printf("Model Loaded\n"); | |
9429 | float Position[3]; | |
9430 | int spawnedcar; | |
9431 | printf("Getting coords\n"); | |
9432 | GetEntityCoords(PlayerPedId(), Position); | |
9433 | ||
9434 | printf("Got coords\n"); | |
9435 | float Pos[3]; | |
9436 | // create_vehicle( Var_0, get_entity_coords( Var_3, 1 ) { Array[3] }, 0.0f, 0, 1 ); | |
9437 | /* Way the game spawns legit cars | |
9438 | create_vehicle, arg 0 = 39DA2754, arg 1 = C3A42D2C, arg 2 = C3486B44, arg 3 = 42162000, arg 4 = 4376099A, arg 5 = 00000001, arg 6 = 00000000, | |
9439 | veh_to_net, arg1 = 00003F04 | |
9440 | set_network_id_exists_on_all_machines, arg1 = 00000001, arg2 = 00000000 | |
9441 | */ //reserve_network_mission_vehicles(1); | |
9442 | //printf("can_register_mission_vehicles = %i\n", can_register_mission_vehicles(1)); | |
9443 | clear_area_of_vehicles(Position, 1.0f, 0, 0, 1, 1, 1); | |
9444 | spawnvehicle = CreateCar(scriptsetModel, Position[0], Position[1], Position[2], 15.0f, 0, 1); // first bool = network handle | |
9445 | netid = veh_to_net(spawnvehicle); | |
9446 | //printf("network_does_network_id_exist = %i\n", network_does_network_id_exist(netid)); | |
9447 | unk_0xD3850671(spawnvehicle, 1); | |
9448 | //set_network_id_exists_on_all_machines(netid, 1); | |
9449 | //printf("Vehicle NetId = %i \n", netid); | |
9450 | //printf("hit spawn\n"); | |
9451 | //unk_0xDB718B21(spawnvehicle, "Veh_Modded_By_Player", 1845134795); | |
9452 | //printf("Hit test 1\n"); | |
9453 | //unk_0xDB718B21(spawnvehicle, "Player_Vehicle", 1845134795); | |
9454 | //printf("Hit test 2\n"); | |
9455 | //unk_0xDB718B21(spawnvehicle, "PV_Slot", 5); | |
9456 | //printf("Hit test 3\n"); | |
9457 | /*GetEntityCoords(PlayerPedId(), Pos); | |
9458 | int vehHandle = get_closest_vehicle(Pos[0], Pos[1], Pos[2], 600.0f, 0, 0); | |
9459 | int model = get_entity_model(vehHandle); | |
9460 | printf("Model = %i \n", model); | |
9461 | float x, y, z; | |
9462 | GetCoordsInfrontOfSelf(&Pos[0], &Pos[1], &Pos[2]); | |
9463 | set_entity_coords(vehHandle, Pos[0], Pos[1], Pos[2], 0, 0, 0, 1); | |
9464 | set_entity_heading(vehHandle, get_entity_heading(PlayerPedId())); | |
9465 | create_model_swap(Pos[0], Pos[1], Pos[2], 1.0f, model, scriptsetModel, 1);*/ | |
9466 | ShowMessageOnScreen("~b~ Vehicle Spawned!, No one else can see this car though :("); | |
9467 | scriptsetModel -1; | |
9468 | car = false; | |
9469 | } | |
9470 | } | |
9471 | if (dodgemvehicle) { | |
9472 | //if (!IsModelInCdImage(model)){objectspawn = false; ShowMessageOnScreen("~b~ Model does not exist!");} | |
9473 | float Position[3]; | |
9474 | GetEntityCoords(PlayerPedId(), Position); | |
9475 | float h; | |
9476 | int dodgem; | |
9477 | model = -77393630; // dodgem car object | |
9478 | RequestModel(model); | |
9479 | if (HasModelLoaded(model)) | |
9480 | { | |
9481 | x10 = - 0.3, y10 = 0.2, z10 = 0, x20 = 0, y20 = 0, z20 = 180; | |
9482 | dodgem = create_object(model, Position[0], Position[1], Position[2]); | |
9483 | attach_entity_to_entity(dodgem, GetCarCharIsIn(PlayerPedId(), 0), -1, x10, y10, z10, x20, y20, z20);// end | |
9484 | } | |
9485 | ||
9486 | model = 232216084; // dodgem car engine | |
9487 | RequestModel(model); | |
9488 | if (HasModelLoaded(model)) | |
9489 | { | |
9490 | x10 = - 0.2, y10 = - 1.2, z10 = -0.4, x20 = 0, y20 = 0, z20 = 180; | |
9491 | dodgem = create_object(model, Position[0], Position[1], Position[2]); | |
9492 | attach_entity_to_entity(dodgem, GetCarCharIsIn(PlayerPedId(), 0), -1, x10, y10, z10, x20, y20, z20);// end | |
9493 | } | |
9494 | model = 1382419899; // dodgem seat | |
9495 | RequestModel(model); | |
9496 | if (HasModelLoaded(model)) | |
9497 | { | |
9498 | x10 = - 0.4, y10 = - 0.2, z10 = -0.3, x20 = 0, y20 = 0, z20 = 180; | |
9499 | dodgem = create_object(model, Position[0], Position[1], Position[2]); | |
9500 | attach_entity_to_entity(dodgem, GetCarCharIsIn(PlayerPedId(), 0), -1, x10, y10, z10, x20, y20, z20); // end | |
9501 | } | |
9502 | dodgemvehicle = false; | |
9503 | } | |
9504 | if (pedobject) { | |
9505 | //if (!IsModelInCdImage(model)){objectspawn = false; ShowMessageOnScreen("~b~ Model does not exist!");} | |
9506 | float Position[3]; | |
9507 | GetEntityCoords(GetPlayerHandle(animid), Position); | |
9508 | float h; | |
9509 | int attachobj; | |
9510 | model = spawnedobject; // dodgem car object | |
9511 | RequestModel(model); | |
9512 | if (HasModelLoaded(model)) | |
9513 | { | |
9514 | x10 = 0, y10 = 0, x20 = 0, y20 = 0, z20 = 0; | |
9515 | attachobj = create_object(model, Position[0], Position[1], Position[2]); | |
9516 | attach_entity_to_entity(attachobj, GetPlayerHandle(animid), -1, x10, y10, z10, x20, y20, z20);// end | |
9517 | } | |
9518 | pedobject = false; | |
9519 | } | |
9520 | if (spawn_egg) { | |
9521 | //if (!IsModelInCdImage(model)){objectspawn = false; ShowMessageOnScreen("~b~ Model does not exist!");} | |
9522 | float Position[3]; | |
9523 | GetEntityCoords(GetPlayerHandle(animid), Position); | |
9524 | float h; | |
9525 | int attachobj; | |
9526 | model = spawnedobject; // dodgem car object | |
9527 | RequestModel(model); | |
9528 | int head = get_ped_bone_index(GetPlayerHandle(animid), 31086); | |
9529 | if (HasModelLoaded(model)) | |
9530 | { | |
9531 | x10 = 0.2, y10 = 0, z10 = 0, x20 = 0, y20 = 90.0, z20 = 0; | |
9532 | attachobj = create_object(model, Position[0], Position[1], Position[2]); | |
9533 | attach_entity_to_entity(attachobj, GetPlayerHandle(animid), head, x10, y10, z10, x20, y20, z20);// end | |
9534 | } | |
9535 | spawn_egg = false; | |
9536 | } | |
9537 | if (spawn_cone) { | |
9538 | //if (!IsModelInCdImage(model)){objectspawn = false; ShowMessageOnScreen("~b~ Model does not exist!");} | |
9539 | float Position[3]; | |
9540 | GetEntityCoords(GetPlayerHandle(animid), Position); | |
9541 | float h; | |
9542 | int attachobj; | |
9543 | model = spawnedobject; // dodgem car object | |
9544 | RequestModel(model); | |
9545 | int head = get_ped_bone_index(GetPlayerHandle(animid), 31086); | |
9546 | if (HasModelLoaded(model)) | |
9547 | { | |
9548 | x10 = 0.1, y10 = 0.02, z10 = 0, x20 = 0, y20 = 90.0, z20 = 0; | |
9549 | attachobj = create_object(model, Position[0], Position[1], Position[2]); | |
9550 | attach_entity_to_entity(attachobj, GetPlayerHandle(animid), head, x10, y10, z10, x20, y20, z20);// end | |
9551 | } | |
9552 | spawn_cone = false; | |
9553 | } | |
9554 | if (creator_obj) { | |
9555 | //if (!IsModelInCdImage(model)){objectspawn = false; ShowMessageOnScreen("~b~ Model does not exist!");} | |
9556 | float Position[3]; | |
9557 | GetEntityCoords(GetPlayerHandle(animid), Position); | |
9558 | float h; | |
9559 | //int head = get_ped_bone_index(GetPlayerHandle(animid), 31086); | |
9560 | x10 = 0.1, y10 = 0.02, z10 = 0, x20 = 0, y20 = 90.0, z20 = 0; | |
9561 | attach_entity_to_entity(objecthandle, GetPlayerHandle(animid), -1, 0, 0, 0, 0, 0, 0);// end | |
9562 | creator_obj = false; | |
9563 | } | |
9564 | if (spawn_glove) { | |
9565 | //if (!IsModelInCdImage(model)){objectspawn = false; ShowMessageOnScreen("~b~ Model does not exist!");} | |
9566 | float Position[3]; | |
9567 | GetEntityCoords(GetPlayerHandle(PlayerId()), Position); | |
9568 | float h; | |
9569 | int attachobj; | |
9570 | model = spawnedobject; // dodgem car object | |
9571 | RequestModel(model); | |
9572 | int head = get_ped_bone_index(GetPlayerHandle(PlayerId()), 28422); | |
9573 | if (HasModelLoaded(model)) | |
9574 | { | |
9575 | x10 = 0.013, y10 = 0.0, z10 = -0.04, x20 = 90, y20 = 180, z20 = -90; | |
9576 | attachobj = create_object(model, Position[0], Position[1], Position[2]); | |
9577 | attach_entity_to_entity(attachobj, GetPlayerHandle(PlayerId()), head, x10, y10, z10, x20, y20, z20);// end | |
9578 | } | |
9579 | spawn_glove = false; | |
9580 | } | |
9581 | if (spawn_sword) { | |
9582 | //if (!IsModelInCdImage(model)){objectspawn = false; ShowMessageOnScreen("~b~ Model does not exist!");} | |
9583 | float Position[3]; | |
9584 | GetEntityCoords(GetPlayerHandle(PlayerId()), Position); | |
9585 | float h; | |
9586 | int attachobj; | |
9587 | model = spawnedobject; // dodgem car object | |
9588 | RequestModel(model); | |
9589 | int head = get_ped_bone_index(GetPlayerHandle(PlayerId()), 28422); | |
9590 | if (HasModelLoaded(model)) | |
9591 | { | |
9592 | x10 = 0.056, y10 = 0.05, z10 = -0.01, x20 = -77, y20 = 10.6, z20 = 0.0; | |
9593 | attachobj = create_object(model, Position[0], Position[1], Position[2]); | |
9594 | attach_entity_to_entity(attachobj, GetPlayerHandle(PlayerId()), head, x10, y10, z10, x20, y20, z20);// end | |
9595 | } | |
9596 | spawn_sword = false; | |
9597 | } | |
9598 | if (objectspawn) { | |
9599 | int ufo; //0xB467C540 | |
9600 | int attach; | |
9601 | // bin 0xD8F7692D // flashing light 0x97C3281B // roller car 0x563313B7 | |
9602 | if (!IsModelInCdImage(model)){objectspawn = false; ShowMessageOnScreen("~b~ Model does not exist!");} | |
9603 | RequestModel(model); | |
9604 | if (HasModelLoaded(model)) | |
9605 | { | |
9606 | float Position[3], dim_min[3], dim_max[3]; | |
9607 | get_model_dimensions(get_entity_model(PlayerPedId()), dim_min, dim_max); | |
9608 | get_offset_from_entity_in_world_coords(PlayerPedId(), dim_min[0], dim_min[1] + 4.0f, 0.0f, Position); | |
9609 | ||
9610 | get_ground_z_for_3d_coord(Position[0], Position[1], Position[2], &Position[2]); | |
9611 | printf("Got ground z\n"); | |
9612 | //GetEntityCoords(PlayerPedId(), Position); | |
9613 | //printf("Pos = { %f, %f, %f }\n", Position[0], Position[1], Position[2]); | |
9614 | if (ufomode){ | |
9615 | float h; | |
9616 | h = get_entity_heading(PlayerPedId()); | |
9617 | ufo = create_object(model, Position[0], Position[1], Position[2]); //= -0.4 | |
9618 | set_entity_heading(ufo, h); // x = -0.3, y = -0.2, z = -0.3 | |
9619 | attach_entity_to_entity(ufo, GetCarCharIsIn(PlayerPedId(), 0), -1, x10, y10, z10, x20, y20, z20); // z = 0 yaw = 0, yaw = 180 // x1 = -0.3, y1 = 0.2, z = 0, z2 = 180 | |
9620 | //ShowMessageOnScreen("~b~ Object spawned and attached!"); | |
9621 | ufomode = false; | |
9622 | } | |
9623 | if (normalspawn){ | |
9624 | float z; | |
9625 | float h; | |
9626 | int object; | |
9627 | ||
9628 | ||
9629 | h = get_entity_heading(PlayerPedId()); | |
9630 | printf("Got my heading\n"); | |
9631 | object = create_object(model, Position[0], Position[1], Position[2]); | |
9632 | objectcoordx = Position[0], objectcoordy = Position[1], objectcoordz = Position[2], objecthandle = object, objectheading = h; | |
9633 | objectpitch = 0, objectroll = 0, objectyaw = 0; | |
9634 | //printf("Created object, Object handle = %i \n", object); | |
9635 | set_entity_rotation(objecthandle,0,0,h,2,1); | |
9636 | //set_entity_heading(object, h); | |
9637 | freeze_entity_position(object, true); | |
9638 | ShowMessageOnScreen("~b~ Object spawned"); | |
9639 | normalspawn = false; | |
9640 | } | |
9641 | if (garagefun){ | |
9642 | float z; | |
9643 | float h; | |
9644 | int object; | |
9645 | ||
9646 | h = get_entity_heading(PlayerPedId()); | |
9647 | printf("Got my heading\n"); | |
9648 | fan = create_object(model, 229.67, -1026.3, -101.600); | |
9649 | //objectcoordx = Position[0], objectcoordy = Position[1], objectcoordz = Position[2], objecthandle = object, objectheading = h; | |
9650 | //objectpitch = 0, objectroll = 0, objectyaw = 0; | |
9651 | set_entity_visible(fan, false); | |
9652 | //printf("Created object, Object handle = %i \n", object); | |
9653 | set_entity_rotation(fan,-90,0,h,2,1); | |
9654 | //set_entity_heading(object, h); | |
9655 | freeze_entity_position(fan, true); | |
9656 | //ShowMessageOnScreen("~b~ Object spawned"); | |
9657 | garagefun = false; | |
9658 | } | |
9659 | if (objectcopy){ | |
9660 | float z; | |
9661 | float h; | |
9662 | int object; | |
9663 | h = get_entity_heading(objecthandle); | |
9664 | printf("Got my heading\n"); | |
9665 | float coppos[3]; | |
9666 | GetEntityCoords(objecthandle, coppos); | |
9667 | object = create_object(model, coppos[0], coppos[1], coppos[2]); | |
9668 | objectcoordx = coppos[0], objectcoordy = coppos[1], objectcoordz = coppos[2], objecthandle = object, objectheading = h; | |
9669 | objectpitch = 0, objectroll = 0, objectyaw = 0; | |
9670 | // printf("Created object, Object handle = %i \n", object); | |
9671 | set_entity_rotation(objecthandle,0,0,h,2,1); | |
9672 | //set_entity_heading(object, h); | |
9673 | freeze_entity_position(object, true); | |
9674 | objectcopy = false; | |
9675 | } | |
9676 | ||
9677 | if (derby){ | |
9678 | float z; | |
9679 | float h; | |
9680 | int object; | |
9681 | h = get_entity_heading(PlayerPedId()); | |
9682 | printf("Got my heading\n"); | |
9683 | object = create_object(model, Position[0], Position[1], Position[2]); | |
9684 | set_entity_coords(object, -1938.795410, -995.770630, 14.479980, 1, 0, 0, 1); | |
9685 | set_entity_rotation(object,180,90,180,2,1); | |
9686 | freeze_entity_position(object, true); | |
9687 | ShowMessageOnScreen("~b~ Derby spawned"); | |
9688 | derby = false; | |
9689 | } | |
9690 | if (waterwheel){ | |
9691 | float z; | |
9692 | float h; | |
9693 | int object; | |
9694 | h = get_entity_heading(PlayerPedId()); | |
9695 | printf("Got my heading\n"); | |
9696 | waterobj = create_object(model, Position[0], Position[1], Position[2]); | |
9697 | set_entity_coords(waterobj, -1938.795410, -995.770630, 14.479980, 1, 0, 0, 1); | |
9698 | set_entity_rotation(waterobj,180,90,180,2,1); | |
9699 | freeze_entity_position(waterobj, true); | |
9700 | ShowMessageOnScreen("~b~ Wheel spawned"); | |
9701 | waterwheel = false; | |
9702 | } | |
9703 | if (attachspawn) { | |
9704 | printf("Hit attachspawn/n"); | |
9705 | int Handle = GetPlayerHandle(AttachPedHandle); | |
9706 | printf("Hit Handle/n"); | |
9707 | attach = create_object(model, Position[0], Position[1], Position[2]); | |
9708 | printf("Hit Froze./n"); | |
9709 | attach_entity_to_entity(Handle, attach, 0, 0, 0, 0, 0, 0, 0); | |
9710 | ShowMessageOnScreen("~b~ Attached to player!"); | |
9711 | attachspawn = false; | |
9712 | } | |
9713 | objectspawn = false; | |
9714 | scriptsetModel -1; | |
9715 | } | |
9716 | } | |
9717 | if (comps){ | |
9718 | set_ped_random_component_variation(PlayerPedId(), 0); | |
9719 | comps = false; | |
9720 | } | |
9721 | /* | |
9722 | ||
9723 | */ | |
9724 | if (warp){ | |
9725 | int Handle = GetPlayerHandle(CarPed); | |
9726 | printf("Got vehicle handle\n"); | |
9727 | int myhandle = GetPlayerHandle(PlayerId()); | |
9728 | printf("Got my handle\n"); | |
9729 | int myvehicle; | |
9730 | int tick = 0; | |
9731 | if (is_ped_in_any_vehicle(Handle)) { | |
9732 | printf("Player is in vehicle\n"); | |
9733 | myvehicle = GetCarCharIsIn(Handle, 0); | |
9734 | printf("GetCarCharIsIn\n"); | |
9735 | if (DoesEntityExist(myvehicle) && IsEntityVehicle(myvehicle)) { | |
9736 | printf("Vehicle exists\n"); | |
9737 | int var4 = -1; | |
9738 | int pasnmax; | |
9739 | pasnmax = get_vehicle_max_number_of_passengers(myvehicle); | |
9740 | printf("Got max seats\n"); | |
9741 | while (var4 < pasnmax) { | |
9742 | if (is_vehicle_seat_free(myvehicle, var4)) { | |
9743 | printf("Found seat\n"); | |
9744 | set_ped_into_vehicle(myhandle, myvehicle, var4); | |
9745 | ShowMessageOnScreen("~b~ Teleported to free seat!"); | |
9746 | break; | |
9747 | } | |
9748 | else | |
9749 | { | |
9750 | var4++; | |
9751 | } | |
9752 | } | |
9753 | if (var4 > pasnmax){ | |
9754 | ShowMessageOnScreen("~b~ Failed, Player may not be in any vehicle or vehicle has no available seat"); | |
9755 | } | |
9756 | } | |
9757 | } | |
9758 | warp = false; | |
9759 | } | |
9760 | if (nap){ | |
9761 | int myhandle = GetPlayerHandle(PlayerId()); | |
9762 | printf("Got my handle\n"); | |
9763 | int myvehicle; | |
9764 | int theirPedHandle = GetPlayerHandle(animid); | |
9765 | int tick = 0; | |
9766 | if (is_ped_in_any_vehicle(myhandle)) { | |
9767 | printf("Player is in vehicle\n"); | |
9768 | myvehicle = GetCarCharIsIn(myhandle, 0); | |
9769 | //printf("GetCarCharIsIn\n"); | |
9770 | if (DoesEntityExist(myvehicle) && IsEntityVehicle(myvehicle)) { | |
9771 | printf("Vehicle exists\n"); | |
9772 | int var4 = -1; | |
9773 | int pasnmax; | |
9774 | pasnmax = get_vehicle_max_number_of_passengers(myvehicle); | |
9775 | printf("Got max seats\n"); | |
9776 | while (var4 < pasnmax) { | |
9777 | if (is_vehicle_seat_free(myvehicle, var4)) { | |
9778 | printf("Found seat\n"); | |
9779 | //task_enter_vehicle( player_ped_id(), get_vehicle_ped_is_in( *param_0[unk_0x907498B0() * 129].Imm[2], 0 ), -1, 0, 2.0f, 16, 0 ); | |
9780 | ShowMessageOnScreen("~b~ Player should now enter your vehicle"); | |
9781 | task_enter_vehicle(theirPedHandle, myvehicle, -1, var4, 5.0f, 1, 0); | |
9782 | break; | |
9783 | } | |
9784 | else | |
9785 | { | |
9786 | var4++; | |
9787 | } | |
9788 | } | |
9789 | if (var4 > pasnmax){ | |
9790 | ShowMessageOnScreen("~b~ Failed, Seats full!"); | |
9791 | } | |
9792 | } | |
9793 | } | |
9794 | nap = false; | |
9795 | } | |
9796 | if (bguard){ | |
9797 | int ped = 0x14EC17EA; | |
9798 | //int ped = -1920001264; swat | |
9799 | int group; | |
9800 | int netid; | |
9801 | if (!IsModelInCdImage(ped)){objectspawn = false; ShowMessageOnScreen("~b~ Model does not exist!");} | |
9802 | RequestModel(ped); | |
9803 | if (HasModelLoaded(ped)) | |
9804 | { | |
9805 | float Position[3]; | |
9806 | GetEntityCoords(PlayerPedId(), Position); | |
9807 | printf("Got coords\n"); | |
9808 | chop = create_ped(0x1A, ped, Position[0], Position[1], Position[2], 204.8112f, 0, 0); | |
9809 | netid = network_get_network_id_from_entity(chop); | |
9810 | set_network_id_exists_on_all_machines(netid, 0); | |
9811 | set_ped_random_component_variation(chop, 0); | |
9812 | //printf("Chop NetId = %i \n", netid); | |
9813 | //printf("Chop handle = %i \n", chop); | |
9814 | ShowMessageOnScreen("~b~ Chop spawned"); | |
9815 | group = get_player_group(PlayerId()); | |
9816 | //printf("Group = %i \n", group); | |
9817 | if (does_group_exist(group)){ | |
9818 | //printf("Group exists\n"); | |
9819 | set_ped_as_group_member(chop, group); | |
9820 | //printf("Set as group member\n"); | |
9821 | ||
9822 | } | |
9823 | bguard = false; | |
9824 | ShowMessageOnScreen("~b~ Chop has been spawned he will defend you and follow you!, No one else can see him."); | |
9825 | } | |
9826 | } | |
9827 | scriptsetModel = -1; | |
9828 | return Return; | |
9829 | scriptsetModel = -1; | |
9830 | } | |
9831 | ||
9832 | // In game hook, hooked after all other scripts get executed | |
9833 | void __declspec(naked) InGameHookDest() { | |
9834 | __asm { | |
9835 | // Call our menu handler | |
9836 | bl UpdateMenu | |
9837 | ||
9838 | // this is the stuff we copied over so we need to restore it | |
9839 | mr r3, r26 | |
9840 | addi r1, r1, 0x90 | |
9841 | ld r26, -0x38(r1) | |
9842 | ld r27, -0x30(r1) | |
9843 | ld r28, -0x28(r1) | |
9844 | ld r29, -0x20(r1) | |
9845 | ld r30, -0x18(r1) | |
9846 | ld r31, -0x10(r1) | |
9847 | lwz r12, -0x8(r1) | |
9848 | mtspr LR, r12 | |
9849 | blr | |
9850 | } | |
9851 | } | |
9852 | ||
9853 | ||
9854 | ||
9855 | //__declspec(naked) void WINAPI D3DDevice_SwapHook(D3DDevice *pDevice, D3DBaseTexture* pFrontBuffer, CONST D3DVIDEO_SCALER_PARAMETERS* pParameters) { | |
9856 | // D3DDevice *pGameD3DDevice; | |
9857 | // D3DBaseTexture* pGameFrontBuffer; | |
9858 | // D3DVIDEO_SCALER_PARAMETERS* pGameParameters; | |
9859 | // | |
9860 | // __asm { | |
9861 | // mr pGameD3DDevice, r3 | |
9862 | // mr pGameFrontBuffer, r4 | |
9863 | // mr pGameParameters, r5 | |
9864 | // | |
9865 | // stwu r1, -0x1E0(r1) | |
9866 | // mr r31, pGameD3DDevice | |
9867 | // mr r28, pGameFrontBuffer | |
9868 | // mr r21, pGameParameters | |
9869 | // | |
9870 | // lis r11, 0x8376 | |
9871 | // ori r11, r11, 0x1810 | |
9872 | // mtctr r11 | |
9873 | // bctr r11 | |
9874 | // } | |
9875 | //} | |
9876 | ||
9877 | HANDLE updateRpfHandle; | |
9878 | int cacheFileNum = 0; | |
9879 | ||
9880 | WINBASEAPI | |
9881 | __out | |
9882 | HANDLE | |
9883 | WINAPI | |
9884 | CreateFileAHook( | |
9885 | __in LPCSTR lpFileName, | |
9886 | __in DWORD dwDesiredAccess, | |
9887 | __in DWORD dwShareMode, | |
9888 | __in_opt LPSECURITY_ATTRIBUTES lpSecurityAttributes, | |
9889 | __in DWORD dwCreationDisposition, | |
9890 | __in DWORD dwFlagsAndAttributes, | |
9891 | __in_opt HANDLE hTemplateFile | |
9892 | ) { | |
9893 | DWORD LinkerRegister; | |
9894 | ||
9895 | __asm mflr LinkerRegister; | |
9896 | ||
9897 | if (strcmp(lpFileName, "update:\\update.rpf") == 0) { | |
9898 | MountPath("Hdd:", "\\Device\\Harddisk0\\Partition1", FALSE); | |
9899 | printf("[R*] - CreateFileAHook - Call from %08X Opening File Hdd:\\update.rpf\n", LinkerRegister, lpFileName); | |
9900 | ||
9901 | updateRpfHandle = CreateFile("Hdd:\\update.rpf", dwDesiredAccess, dwShareMode, lpSecurityAttributes, dwCreationDisposition, dwFlagsAndAttributes, hTemplateFile); | |
9902 | ||
9903 | if (updateRpfHandle != INVALID_HANDLE_VALUE) { | |
9904 | printf("[R*] - CreateFileAHook - Successfully redirected update.rpf updateRpfHandle = %08X!\n", updateRpfHandle); | |
9905 | return updateRpfHandle; | |
9906 | } else { | |
9907 | printf("[R*] - CreateFileAHook - Failed to open update.rpf off of HDD!\n"); | |
9908 | } | |
9909 | } | |
9910 | ||
9911 | /*if (memcmp(lpFileName, "cache:\\cloud_", 13) == 0) { | |
9912 | printf("Dumping cloud data\n"); | |
9913 | MountPath("Hdd:", "\\Device\\Harddisk0\\Partition1", FALSE); | |
9914 | ||
9915 | HANDLE hand = CreateFile(lpFileName, dwDesiredAccess, dwShareMode, lpSecurityAttributes, dwCreationDisposition, dwFlagsAndAttributes, hTemplateFile); | |
9916 | ||
9917 | if (hand != INVALID_HANDLE_VALUE) { | |
9918 | ||
9919 | DWORD size = GetFileSize(hand, NULL); | |
9920 | ||
9921 | BYTE *buf = (BYTE*)malloc(size); | |
9922 | DWORD bytesRead; | |
9923 | ||
9924 | ReadFile(hand, buf, size, &bytesRead, NULL); | |
9925 | ||
9926 | char fmt[512]; | |
9927 | sprintf(fmt, "Hdd:\\cloud\\%s", lpFileName + 13); | |
9928 | ||
9929 | DumpFile(fmt, buf, size); | |
9930 | ||
9931 | free(buf); | |
9932 | ||
9933 | return hand; | |
9934 | } | |
9935 | }*/ | |
9936 | ||
9937 | //printf("Opening File %s\n", lpFileName); | |
9938 | ||
9939 | return CreateFile(lpFileName, dwDesiredAccess, dwShareMode, lpSecurityAttributes, dwCreationDisposition, dwFlagsAndAttributes, hTemplateFile); | |
9940 | } | |
9941 | ||
9942 | HRESULT HvPeekBytes(QWORD Address, PVOID Buffer, DWORD Size); | |
9943 | #define hookFunctionStart(Address, SaveStubAddress, Destination) hookFunctionStartEx(Address, SaveStubAddress, Destination) | |
9944 | DWORD WINAPI MainThread(LPVOID) { | |
9945 | FreeMemoryPointer = ResolveFunction("xam.xex", 2601) + 0x8000; | |
9946 | string PD("Error!, ("); | |
9947 | DWORD TitleID, tempTileID, | |
9948 | GTAID = 0x545408A7, | |
9949 | entryAddress = (int)HvPeekBytes, | |
9950 | Addvalue = *(int *)&EntryAdd, | |
9951 | Data = 0x38600000; | |
9952 | bool isValid; | |
9953 | GTAID = 0x545408A7; | |
9954 | int FID = 0x4D530910; | |
9955 | for(;;) { | |
9956 | tempTileID = XamGetCurrentTitleId(); | |
9957 | if(tempTileID == FID) | |
9958 | { | |
9959 | //printf("Forza Loaded"); | |
9960 | PatchInJump((PDWORD)0x82D4AEF4, (DWORD)XamUserGetSigninStateHook, FALSE); // forza | |
9961 | PatchInJump((PDWORD)0x82D4AB34, (DWORD)XamUserGetMembershipTierFromXUIDHook, FALSE); // forza | |
9962 | PatchInJump((PDWORD)0x82D4A494, (DWORD)XamUserGetXUIDHook, FALSE); // forza | |
9963 | PatchInJump((PDWORD)0x82D4B824, (DWORD)XamUserGetSigninInfoHook, FALSE); //gamertag spoof // forza | |
9964 | PatchInJump((PDWORD)0x82D4AEE4, (DWORD)XamUserGetNameHook, FALSE); //gamertag spoof // forza | |
9965 | XINPUT_STATE xstate; | |
9966 | if (XInputGetState(0, &xstate) == ERROR_SUCCESS) | |
9967 | { | |
9968 | if(xstate.Gamepad.wButtons == (XINPUT_GAMEPAD_LEFT_THUMB)) | |
9969 | { | |
9970 | WCHAR wGT[16]; | |
9971 | XOVERLAPPED XOver; | |
9972 | XShowKeyboardUI(0, VKBD_LATIN_GAMERTAG | VKBD_HIGHLIGHT_TEXT, 0, L"Spoof XUID", L"Please type in the Gamertag you want to spoof", wGT, 16, &XOver); | |
9973 | while(!XHasOverlappedIoCompleted((&XOver))) | |
9974 | Sleep(10); | |
9975 | FIND_USER_INFO fInfo; | |
9976 | fInfo.qwUserId = 0; | |
9977 | wcstombs(fInfo.szGamerTag, wGT, 16); | |
9978 | XUID Xuid; | |
9979 | XUserGetXUID(0, &Xuid); | |
9980 | FIND_USERS_RESPONSE Resp; | |
9981 | XOnlineStartup(); | |
9982 | if(!XUserFindUsers(Xuid, 1, &fInfo, XUserFindUsersResponseSize(1), &Resp, 0)) | |
9983 | { | |
9984 | if(Resp.pUsers->qwUserId) { | |
9985 | printf("(%s)'s XUID = %016llX\n", Resp.pUsers->szGamerTag, Resp.pUsers->qwUserId); | |
9986 | } | |
9987 | } | |
9988 | } | |
9989 | } | |
9990 | } | |
9991 | start: | |
9992 | if(tempTileID == GTAID && TitleID != GTAID) {//game just loaded | |
9993 | ||
9994 | #ifdef DEVKIT | |
9995 | DmGetMemory((PVOID)0x822211C4, 4, &Data, NULL); | |
9996 | #else | |
9997 | memcpy(&Data, (PBYTE)0x822211C4, 4); | |
9998 | #endif | |
9999 | ||
10000 | //if(Data != 0x396B000F)//wrong TU (just update the value if there is a new update) | |
10001 | //continue; | |
10002 | ||
10003 | //Sleep(250); // 1400 for XDK // 500 for JTAG / RGH | |
10004 | ||
10005 | /*while(*(int *)0x826DA1B0 != 0x817F0000) { | |
10006 | if(XamGetCurrentTitleId() != GTAID) | |
10007 | goto start; | |
10008 | }*/ | |
10009 | ||
10010 | //printf("GTAV Menu Loading...\n"); | |
10011 | Data = 0x60000000; | |
10012 | ||
10013 | #ifdef DEVKIT | |
10014 | printf("DmStop\n"); | |
10015 | DmStop(); | |
10016 | #else | |
10017 | //*(int *)0x829A7870 = Data; | |
10018 | *(int *)0x827ADDF0 = Data; | |
10019 | #endif | |
10020 | ||
10021 | //printf("Removed breakpoint\n"); | |
10022 | ||
10023 | // TU13 | |
10024 | ||
10025 | #ifdef DEVKIT | |
10026 | DmSetMemory((PVOID)0x829A6120, 4, &Data, NULL); | |
10027 | DmSetMemory((PVOID)0x823864B0, 4, &Data, NULL); | |
10028 | DmSetMemory((PVOID)0x81ab9440, 4, &Data, NULL); | |
10029 | DmSetMemory((PVOID)0x829a6120, 4, &Data, NULL); | |
10030 | DmSetMemory((PVOID)0x819d76bc, 4, &Data, NULL); | |
10031 | DmSetMemory((PVOID)0x819d78f4, 4, &Data, NULL); | |
10032 | DmSetMemory((PVOID)0x829A7870, 4, &Data, NULL); // | |
10033 | DmSetMemory((PVOID)0x829C2730, 4, &Data, NULL); // test nopped | |
10034 | printf("Removed all fucking XAM! XAM! XAM! XAM! Breakpoints!"); | |
10035 | #endif | |
10036 | ||
10037 | #ifdef Auth | |
10038 | while(IsFalseAuthed); | |
10039 | #endif | |
10040 | ||
10041 | //printf("Setting up menu\n"); | |
10042 | SetupMenu(); | |
10043 | ||
10044 | //printf("Initalizing native hook\n"); | |
10045 | InitNativeHook(); | |
10046 | ||
10047 | //printf("Hooking game\n"); | |
10048 | ||
10049 | // setup the menu auth variable | |
10050 | extern EncryptedDWORD *menuAuthedSuccess; | |
10051 | menuAuthedSuccess = new EncryptedDWORD; | |
10052 | menuAuthedSuccess->SetValue(0); | |
10053 | ||
10054 | #ifdef MENUISAUTHED | |
10055 | //do the auth here | |
10056 | MenuSecurityInit(); | |
10057 | ServerConnectionInit(); | |
10058 | ||
10059 | extern EncryptedDWORD *XNotifyEnc; | |
10060 | ||
10061 | PWCHAR message = new WCHAR[40]; | |
10062 | DWORD notifyType = 0; | |
10063 | ||
10064 | if (menuAuthedSuccess->GetValue() == 1) { | |
10065 | message[0] = ~'C'; | |
10066 | message[1] = ~'x'; | |
10067 | message[2] = ~'M'; | |
10068 | message[3] = ~' '; | |
10069 | message[4] = ~'G'; | |
10070 | message[5] = ~'T'; | |
10071 | message[6] = ~'A'; | |
10072 | message[7] = ~' '; | |
10073 | message[8] = ~'V'; | |
10074 | message[9] = ~' '; | |
10075 | message[10] = ~'M'; | |
10076 | message[11] = ~'e'; | |
10077 | message[12] = ~'n'; | |
10078 | message[13] = ~'u'; | |
10079 | message[14] = ~' '; | |
10080 | message[15] = ~'A'; | |
10081 | message[16] = ~'u'; | |
10082 | message[17] = ~'t'; | |
10083 | message[18] = ~'h'; | |
10084 | message[19] = ~' '; | |
10085 | message[20] = ~'S'; | |
10086 | message[21] = ~'u'; | |
10087 | message[22] = ~'c'; | |
10088 | message[23] = ~'c'; | |
10089 | message[24] = ~'e'; | |
10090 | message[25] = ~'s'; | |
10091 | message[26] = ~'s'; | |
10092 | message[27] = ~'!'; | |
10093 | message[28] = ~0; | |
10094 | notifyType = 14; | |
10095 | ((void(*)(PWCHAR, DWORD))XNotifyEnc->GetValue())(message, notifyType); | |
10096 | } | |
10097 | else if (menuAuthedSuccess->GetValue() == -1) { | |
10098 | message[0] = ~'G'; | |
10099 | message[1] = ~'T'; | |
10100 | message[2] = ~'A'; | |
10101 | message[3] = ~' '; | |
10102 | message[4] = ~'V'; | |
10103 | message[5] = ~' '; | |
10104 | message[6] = ~'M'; | |
10105 | message[7] = ~'e'; | |
10106 | message[8] = ~'n'; | |
10107 | message[9] = ~'u'; | |
10108 | message[10] = ~' '; | |
10109 | message[11] = ~'U'; | |
10110 | message[12] = ~'p'; | |
10111 | message[13] = ~'d'; | |
10112 | message[14] = ~'a'; | |
10113 | message[15] = ~'t'; | |
10114 | message[16] = ~'e'; | |
10115 | message[17] = ~'d'; | |
10116 | message[18] = ~' '; | |
10117 | message[19] = ~'R'; | |
10118 | message[20] = ~'e'; | |
10119 | message[21] = ~'b'; | |
10120 | message[22] = ~'o'; | |
10121 | message[23] = ~'o'; | |
10122 | message[24] = ~'t'; | |
10123 | message[25] = ~' '; | |
10124 | message[26] = ~'T'; | |
10125 | message[27] = ~'o'; | |
10126 | message[28] = ~' '; | |
10127 | message[29] = ~'C'; | |
10128 | message[30] = ~'o'; | |
10129 | message[31] = ~'m'; | |
10130 | message[32] = ~'p'; | |
10131 | message[33] = ~'l'; | |
10132 | message[34] = ~'e'; | |
10133 | message[35] = ~'t'; | |
10134 | message[36] = ~'e'; | |
10135 | message[37] = ~'!'; | |
10136 | message[38] = ~0; | |
10137 | notifyType = 14; | |
10138 | ||
10139 | ((void(*)(PWCHAR, DWORD))XNotifyEnc->GetValue())(message, notifyType); | |
10140 | ||
10141 | CreateThread(NULL, NULL, MessageBoxThread, NULL, NULL, NULL); | |
10142 | } | |
10143 | else { | |
10144 | message[0] = ~'C'; | |
10145 | message[1] = ~'x'; | |
10146 | message[2] = ~'M'; | |
10147 | message[3] = ~' '; | |
10148 | message[4] = ~'G'; | |
10149 | message[5] = ~'T'; | |
10150 | message[6] = ~'A'; | |
10151 | message[7] = ~' '; | |
10152 | message[8] = ~'V'; | |
10153 | message[9] = ~' '; | |
10154 | message[10] = ~'M'; | |
10155 | message[11] = ~'e'; | |
10156 | message[12] = ~'n'; | |
10157 | message[13] = ~'u'; | |
10158 | message[14] = ~' '; | |
10159 | message[15] = ~'A'; | |
10160 | message[16] = ~'u'; | |
10161 | message[17] = ~'t'; | |
10162 | message[18] = ~'h'; | |
10163 | message[19] = ~' '; | |
10164 | message[20] = ~'F'; | |
10165 | message[21] = ~'a'; | |
10166 | message[22] = ~'i'; | |
10167 | message[23] = ~'l'; | |
10168 | message[24] = ~'e'; | |
10169 | message[25] = ~'d'; | |
10170 | message[26] = ~'!'; | |
10171 | message[27] = ~0; | |
10172 | notifyType = 14; | |
10173 | ((void(*)(PWCHAR, DWORD))XNotifyEnc->GetValue())(message, notifyType); | |
10174 | } | |
10175 | #else | |
10176 | hook1 = new EncryptedDWORD; | |
10177 | hook2 = new EncryptedDWORD; | |
10178 | hook3 = new EncryptedDWORD; | |
10179 | nativeHook = new EncryptedDWORD; | |
10180 | printToScreen = new EncryptedDWORD; | |
10181 | customGetPedLastWeap = new EncryptedDWORD; | |
10182 | customGetModelDim = new EncryptedDWORD; | |
10183 | ||
10184 | hook1->SetValue(0x8348A740); | |
10185 | hook2->SetValue(0x8348A668); | |
10186 | hook3->SetValue(0x8348B150); | |
10187 | nativeHook->SetValue(0x83489C68); | |
10188 | printToScreen->SetValue(0x828ECC28); | |
10189 | customGetPedLastWeap->SetValue(0x8348FA58); | |
10190 | customGetModelDim->SetValue(0x834C4D28); | |
10191 | menuAuthedSuccess->SetValue(1); | |
10192 | // Set all offsets here | |
10193 | //strcpy((char*)0x8208E118, "game:/script.rpf"); | |
10194 | //PatchInJump((PDWORD)0x836EFC10, (DWORD)CreateFileAHook, FALSE); | |
10195 | #endif | |
10196 | ||
10197 | // TU13 | |
10198 | #ifdef DEVKIT | |
10199 | PatchInJumpDev(*(int *)&Hook[0], (DWORD)GtavNativeLoadHook, FALSE);//0x834C0558 | |
10200 | PatchInJumpDev(*(int *)&Hook[1], (DWORD)InGameHookDest, FALSE);//0x823B0FF8 | |
10201 | #else | |
10202 | if (menuAuthedSuccess->GetValue() == 1) { | |
10203 | #ifdef personal | |
10204 | *(int *)0x82C9215C = 0x39400001; // dev check | |
10205 | *(int *)0x82C40728 = 0x39400001; // melee in interior check | |
10206 | ||
10207 | //PatchInJump((PDWORD)0x837FDBCC, (DWORD)XamUserGetSigninStateHook, FALSE); | |
10208 | //PatchInJump((PDWORD)0x837FE90C, (DWORD)XamUserGetMembershipTierFromXUIDHook, FALSE); | |
10209 | PatchInJump((PDWORD)0x837FDC1C, (DWORD)XamUserGetXUIDHook, FALSE); // XUID | |
10210 | ||
10211 | PatchInJump((PDWORD)0x837FDE2C, (DWORD)XamUserGetSigninInfoHook, FALSE); //gamertag spoof | |
10212 | PatchInJump((PDWORD)0x837FDBBC, (DWORD)XamUserGetNameHook, FALSE); //gamertag spoof | |
10213 | ||
10214 | PatchInJump((PDWORD)0x837FEC2C, (DWORD)NetDll_XHttpConnectHook, FALSE); | |
10215 | PatchInJump((PDWORD)0x837FEC0C, (DWORD)NetDll_XHttpOpenHook, FALSE); | |
10216 | //PatchInJump((PDWORD)0x8223E0A8, (DWORD)sub_8223E0A8_Hook, FALSE); | |
10217 | PatchInJump((PDWORD)0x837FEC8C, (DWORD)NetDll_XHttpReadDataHook, FALSE); | |
10218 | PatchInJump((PDWORD)0x837FEC9C, (DWORD)NetDll_XHttpWriteDataHook, FALSE); | |
10219 | PatchInJump((PDWORD)0x837FEC5C, (DWORD)NetDll_XHttpSendRequestHook, FALSE); | |
10220 | PatchInJump((PDWORD)0x83788708, (DWORD)XAuthGetTokenHook, FALSE); | |
10221 | PatchInJump((PDWORD)0x816BF98C, (DWORD)XamRequestTokenMidFunctionHook, TRUE); | |
10222 | ||
10223 | //HookXamTokenVTable(); | |
10224 | ||
10225 | //PatchInJump((PDWORD)0x816D7A48, (DWORD)InnerXamUserGetXUIDHook, FALSE); | |
10226 | ||
10227 | #endif | |
10228 | #ifdef PRIVATE | |
10229 | PatchInJump((PDWORD)0x836EFC10, (DWORD)CreateFileAHook, FALSE); | |
10230 | strcpy((char*)0x8208E118, "game:/script.rpf"); | |
10231 | //printf("hooked\n"); | |
10232 | #endif | |
10233 | PatchInJump((PDWORD)hook1->GetValue(), (DWORD)GtavNativeLoadHook, FALSE);//0x834C0558 | |
10234 | PatchInJump((PDWORD)hook2->GetValue(), (DWORD)InGameHookDest, FALSE);//0x823B0FF8 | |
10235 | hookFunctionStart(hook3->GetValue(), VM_ExecuteStub, VM_ExecuteHook);//0x82538F60 | |
10236 | } | |
10237 | #endif | |
10238 | ||
10239 | ||
10240 | #ifdef DEVKIT | |
10241 | printf("DmGo\n"); | |
10242 | DmGo(); | |
10243 | #endif | |
10244 | ||
10245 | } else if(tempTileID != GTAID && TitleID == GTAID) {//game just un-loaded | |
10246 | ||
10247 | if (updateRpfHandle != INVALID_HANDLE_VALUE) { | |
10248 | CloseHandle(updateRpfHandle); | |
10249 | } | |
10250 | ||
10251 | inputButtonsPressed = false; | |
10252 | enableMenu = false; | |
10253 | ||
10254 | ||
10255 | playerInvincibilityActive = false; | |
10256 | buttonpressed = false; | |
10257 | rainbow = false; | |
10258 | invisible = false; | |
10259 | superjump = false; | |
10260 | superruncheck = false; | |
10261 | deagle = false; | |
10262 | carvisible = false; | |
10263 | playervisible = false; | |
10264 | myplayerped = 0; | |
10265 | rainbowcar = 0; | |
10266 | invisiblecar = 0; | |
10267 | ||
10268 | showingMessageOnScreen = false; | |
10269 | fadingMessage = false; | |
10270 | messageFade = 0; | |
10271 | showingMessageTimer = 0; | |
10272 | showingMessageTimerStart = 0; | |
10273 | ||
10274 | paintingPlayersCarChrome = false; | |
10275 | paintingPlayersCarChromeIndex = 0; | |
10276 | paintingPlayersCarChromeTimeout = 310; | |
10277 | paintingPlayersCarChromeTimeoutCounter = 0; | |
10278 | paintingPlayersCar = false; | |
10279 | paintingPlayersCarIndex = 0; | |
10280 | paintingPlayersCarTimeout = 310; | |
10281 | paintingPlayersCarTimeoutCounter = 0; | |
10282 | explodingPlayersCar = false; | |
10283 | explodingPlayersCarIndex = 0; | |
10284 | explodingPlayersCarTimeout = 310; | |
10285 | explodingPlayersCarTimeoutCounter = 0; | |
10286 | pinkPlayersCar = false; | |
10287 | pinkPlayersCarIndex = 0; | |
10288 | pinkPlayersCarTimeout = 310; | |
10289 | pinkPlayersCarTimeoutCounter = 0; | |
10290 | launchingPlayersCar = false; | |
10291 | launchingPlayersCarIndex = 0; | |
10292 | launchingPlayersCarTimeout = 310; | |
10293 | launchingPlayersCarTimeoutCounter = 0; | |
10294 | detachTowTruckCar = false; | |
10295 | detachTowTruckIndex = 0; | |
10296 | detachTowTruckTimeout = 310; | |
10297 | detachTowTruckTimeoutCounter = 0; | |
10298 | towTruckCar = false; | |
10299 | towTruckCarIndex = 0; | |
10300 | towTruckCarTimeout = 310; | |
10301 | towTruckCarTimeoutCounter = 0; | |
10302 | rcCar = false; | |
10303 | rcCarIndex = 0; | |
10304 | rcCarTimeout = 310; | |
10305 | rcCarTimeoutCounter = 0; | |
10306 | lockPlayersCar = false; | |
10307 | lockPlayersCarIndex = 0; | |
10308 | lockPlayersCarTimeout = 310; | |
10309 | lockPlayersCarTimeoutCounter = 0; | |
10310 | teleportingPlayer = false; | |
10311 | teleportingPlayerIndex = 0; | |
10312 | teleportingPlayerTimeout = 310; | |
10313 | teleportingPlayerTimeoutCounter = 0; | |
10314 | fixPlayersCar = false; | |
10315 | fixPlayersCarIndex = 0; | |
10316 | fixPlayersCarTimeout = 310; | |
10317 | fixPlayersCarTimeoutCounter = 0; | |
10318 | fixPlayersCar = false; | |
10319 | fixPlayersCarIndex = 0; | |
10320 | fixPlayersCarTimeout = 310; | |
10321 | fixPlayersCarTimeoutCounter = 0; | |
10322 | superJumping = false; | |
10323 | scriptsetModel = -1; | |
10324 | car = false; | |
10325 | lowered = false; | |
10326 | lower = 0; | |
10327 | CarPed = 0; | |
10328 | warp = false; | |
10329 | } | |
10330 | TitleID = tempTileID; | |
10331 | Sleep(60); | |
10332 | } | |
10333 | } | |
10334 | /* | |
10335 | Jtag.SetMemory(0x82C71ED8, new byte[] { 0x3c, 0x60, 0x7f, 0x00 });//CASH TU9 | |
10336 | Jtag.SetMemory(0x82C71EDC, new byte[] { 0x38, 0x63, 0xff, 0xff }); | |
10337 | */ | |
10338 | ||
10339 | #ifndef personal | |
10340 | // functions for initalizing the xex, have to do this stuff or it crashes. | |
10341 | extern "C" int XapiInitProcess(); | |
10342 | extern "C" int XapiCallThreadNotifyRoutines(int); | |
10343 | extern "C" int XapiPAL50Incompatible(); | |
10344 | extern "C" int XamTerminateTitle(); | |
10345 | extern "C" int _mtinit(); | |
10346 | extern "C" int _rtinit(); | |
10347 | extern "C" int _cinit(int); | |
10348 | extern "C" int _cexit(int); | |
10349 | extern "C" int _CRT_INIT(...); | |
10350 | extern "C" int __CppXcptFilter(...); | |
10351 | ||
10352 | extern "C" static int __proc_attached; | |
10353 | ||
10354 | // This function is for flushing the instruction cache. If we dont do this the cpu runs the breakpoints | |
10355 | extern "C" VOID KeSweepIcacheRange(PVOID Address, DWORD cbBytes); | |
10356 | ||
10357 | BOOL APIENTRY DllMain(HANDLE hModule, DWORD dwReason, LPVOID lpReserved); | |
10358 | ||
10359 | unsigned char branchReplaceData[1024 * 1024] = {'b', 'r', 'a', 'n', 'c', 'h', '6', '6', '6'}; | |
10360 | //unsigned char branchReplaceData[1024 * 1024]; //if I don't want to use the security uncomment this. | |
10361 | ||
10362 | // This stuff is done all in its own section so it can unobfuscate the text section. | |
10363 | #pragma code_seg(push, r1, ".ptext") | |
10364 | ||
10365 | // ripped off microsofts dllcrt0.c for this | |
10366 | __declspec(noinline) BOOL __cdecl realEntryPoint( | |
10367 | HANDLE hDllHandle, | |
10368 | DWORD dwReason, | |
10369 | LPVOID lpreserved | |
10370 | ) | |
10371 | { | |
10372 | BOOL retcode = TRUE; | |
10373 | ||
10374 | // location of the patch data | |
10375 | DWORD procPatchData = (DWORD)branchReplaceData; | |
10376 | ||
10377 | while (true) { | |
10378 | DWORD patchOffset = *(DWORD*)procPatchData; // patch offset | |
10379 | DWORD patchValue = *(DWORD*)(procPatchData + 4); // patch data | |
10380 | ||
10381 | // if we are at the end of the patches break out | |
10382 | if (patchOffset == 0) { | |
10383 | break; | |
10384 | } | |
10385 | ||
10386 | // Set the data | |
10387 | *(DWORD*)patchOffset = patchValue; | |
10388 | ||
10389 | // flush the instruction cache so the cpu fetches the data again | |
10390 | __dcbst(0, (void*)patchOffset); | |
10391 | __sync(); | |
10392 | ||
10393 | KeSweepIcacheRange((PVOID)patchOffset, 4); | |
10394 | ||
10395 | // increment the patch data pointer | |
10396 | procPatchData += 8; | |
10397 | } | |
10398 | ||
10399 | /* | |
10400 | * If this is a process detach notification, check that there has | |
10401 | * has been a prior process attach notification. | |
10402 | */ | |
10403 | if ( (dwReason == DLL_PROCESS_DETACH) && (__proc_attached == 0) ) | |
10404 | /* | |
10405 | * no prior process attach notification. just return | |
10406 | * without doing anything. | |
10407 | */ | |
10408 | return FALSE; | |
10409 | ||
10410 | __try { | |
10411 | if ( dwReason == DLL_PROCESS_ATTACH || dwReason == DLL_THREAD_ATTACH ) | |
10412 | { | |
10413 | retcode = _CRT_INIT(hDllHandle, dwReason, lpreserved); | |
10414 | ||
10415 | if ( !retcode ) | |
10416 | return FALSE; | |
10417 | } | |
10418 | ||
10419 | retcode = DllMain(hDllHandle, dwReason, lpreserved); | |
10420 | ||
10421 | if ( (dwReason == DLL_PROCESS_ATTACH) && !retcode ) | |
10422 | { | |
10423 | /* | |
10424 | * The user's DllMain routine returned failure, the C runtime | |
10425 | * needs to be cleaned up. Do this by calling _CRT_INIT again, | |
10426 | * this time imitating DLL_PROCESS_DETACH. Note this will also | |
10427 | * clear the __proc_attached flag so the cleanup will not be | |
10428 | * repeated upon receiving the real process detach notification. | |
10429 | */ | |
10430 | DllMain(hDllHandle, DLL_PROCESS_DETACH, lpreserved); | |
10431 | _CRT_INIT(hDllHandle, DLL_PROCESS_DETACH, lpreserved); | |
10432 | } | |
10433 | ||
10434 | if ( (dwReason == DLL_PROCESS_DETACH) || | |
10435 | (dwReason == DLL_THREAD_DETACH) ) | |
10436 | { | |
10437 | if ( _CRT_INIT(hDllHandle, dwReason, lpreserved) == FALSE ) | |
10438 | retcode = FALSE ; | |
10439 | ||
10440 | } | |
10441 | } __except ( __CppXcptFilter(GetExceptionCode(), GetExceptionInformation()) ) { | |
10442 | return FALSE; | |
10443 | } | |
10444 | ||
10445 | return retcode ; | |
10446 | } | |
10447 | ||
10448 | // end of this section. everything else you want protected should be in the text section. | |
10449 | #pragma code_seg(pop, r1) | |
10450 | ||
10451 | #endif | |
10452 | ||
10453 | BOOL APIENTRY DllMain( HANDLE hModule, DWORD dwReason, LPVOID lpReserved) {//C8EEC4AAF8F7842313313E39DCDCABDC | |
10454 | if (dwReason == DLL_PROCESS_ATTACH) { | |
10455 | HANDLE hThread; | |
10456 | DWORD dwThreadId; | |
10457 | ExCreateThread(&hThread, 0, &dwThreadId, (PVOID)XapiThreadStartup, MainThread, 0, 2); | |
10458 | //printf("ExRegisterThreadNotification\n"); | |
10459 | //ExRegisterThreadNotification(&threadRegistration, TRUE); | |
10460 | ||
10461 | //SetUnhandledExceptionFilter(Exception); | |
10462 | } | |
10463 | ||
10464 | return TRUE; | |
10465 | } |