2023-11-03 18:51:53 +08:00
|
|
|
|
|
|
|
#include <windows.h>
|
|
|
|
#include <stdio.h>
|
2023-12-01 18:31:52 +08:00
|
|
|
#include "../main.h"
|
|
|
|
#include <sys/stat.h>
|
2023-11-03 18:51:53 +08:00
|
|
|
|
2024-02-15 21:56:14 +08:00
|
|
|
DWORD dwPlayerPedPtrs[PLAYER_PED_SLOTS];
|
|
|
|
|
|
|
|
struct struc_96
|
|
|
|
{
|
|
|
|
char _gap0[16];
|
|
|
|
};
|
|
|
|
struc_96 unnamed_1026C258[PLAYER_PED_SLOTS];
|
|
|
|
|
2023-11-03 18:51:53 +08:00
|
|
|
#define NUM_RADAR_COLORS 1000
|
|
|
|
|
|
|
|
DWORD dwHudColors[NUM_RADAR_COLORS] = {
|
|
|
|
0xFF8C13FF, // dark orange
|
|
|
|
0xC715FFFF, // Medium violet red
|
|
|
|
0x20B2AAFF, // sea green
|
|
|
|
0xDC143CFF, // crimson
|
|
|
|
0x6495EDFF, // cornflower blue
|
|
|
|
0xf0e68cFF, // khaki
|
|
|
|
0x778899FF, // light slate grey
|
|
|
|
0xFF1493FF, // deeppink
|
|
|
|
0xF4A460FF, // sandy
|
|
|
|
0xEE82EEFF, // violet
|
|
|
|
0xFFD720FF, // gold
|
|
|
|
0x8b4513FF, // chocolate
|
|
|
|
0x4949A0FF, // midnight blue
|
|
|
|
0x148b8bFF, // dark cyan
|
|
|
|
0x14ff7fFF, // spring green
|
|
|
|
0x556b2fFF, // olive green
|
|
|
|
0x0FD9FAFF,
|
|
|
|
0x10DC29FF,
|
|
|
|
0x534081FF,
|
|
|
|
0x0495CDFF,
|
|
|
|
0xEF6CE8FF,
|
|
|
|
0xBD34DAFF,
|
|
|
|
0x247C1BFF,
|
|
|
|
0x0C8E5DFF,
|
|
|
|
0x635B03FF,
|
|
|
|
0xCB7ED3FF,
|
|
|
|
0x65ADEBFF,
|
|
|
|
0x5C1ACCFF,
|
|
|
|
0xF2F853FF,
|
|
|
|
0x11F891FF,
|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F,
|
|
|
|
0xCE76BEFF,
|
|
|
|
0xA04E0AFF,
|
|
|
|
0x9F945CFF,
|
|
|
|
0xDCDE3DFF,
|
|
|
|
0x10C9C5FF,
|
|
|
|
0x70524DFF,
|
|
|
|
0x0BE472FF,
|
|
|
|
0x8A2CD7FF,
|
|
|
|
0x6152C2FF,
|
|
|
|
0xCF72A9FF,
|
|
|
|
0xE59338FF,
|
|
|
|
0xEEDC2DFF,
|
|
|
|
0xD8C762FF,
|
|
|
|
0x3FE65CFF, // (100)
|
|
|
|
0xFF8C13FF, // dark orange
|
|
|
|
0xC715FFFF, // Medium violet red
|
|
|
|
0x20B2AAFF, // sea green
|
|
|
|
0xDC143CFF, // crimson
|
|
|
|
0x6495EDFF, // cornflower blue
|
|
|
|
0xf0e68cFF, // khaki
|
|
|
|
0x778899FF, // light slate grey
|
|
|
|
0xFF1493FF, // deeppink
|
|
|
|
0xF4A460FF, // sandy
|
|
|
|
0xEE82EEFF, // violet
|
|
|
|
0xFFD720FF, // gold
|
|
|
|
0x8b4513FF, // chocolate
|
|
|
|
0x4949A0FF, // midnight blue
|
|
|
|
0x148b8bFF, // dark cyan
|
|
|
|
0x14ff7fFF, // spring green
|
|
|
|
0x556b2fFF, // olive green
|
|
|
|
0x0FD9FAFF,
|
|
|
|
0x10DC29FF,
|
|
|
|
0x534081FF,
|
|
|
|
0x0495CDFF,
|
|
|
|
0xEF6CE8FF,
|
|
|
|
0xBD34DAFF,
|
|
|
|
0x247C1BFF,
|
|
|
|
0x0C8E5DFF,
|
|
|
|
0x635B03FF,
|
|
|
|
0xCB7ED3FF,
|
|
|
|
0x65ADEBFF,
|
|
|
|
0x5C1ACCFF,
|
|
|
|
0xF2F853FF,
|
|
|
|
0x11F891FF,
|
|
|
|
0x7B39AAFF,
|
|
|
|
0x53EB10FF,
|
|
|
|
0x54137DFF,
|
|
|
|
0x275222FF,
|
|
|
|
0xF09F5BFF,
|
|
|
|
0x3D0A4FFF,
|
|
|
|
0x22F767FF,
|
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E472FF,
|
|
|
|
0x8A2CD7FF,
|
|
|
|
0x6152C2FF,
|
|
|
|
0xCF72A9FF,
|
|
|
|
0xE59338FF,
|
|
|
|
0xEEDC2DFF,
|
|
|
|
0xD8C762FF,
|
|
|
|
0x3FE65CFF, // (200)
|
|
|
|
0xFF8C13FF, // dark orange
|
|
|
|
0xC715FFFF, // Medium violet red
|
|
|
|
0x20B2AAFF, // sea green
|
|
|
|
0xDC143CFF, // crimson
|
|
|
|
0x6495EDFF, // cornflower blue
|
|
|
|
0xf0e68cFF, // khaki
|
|
|
|
0x778899FF, // light slate grey
|
|
|
|
0xFF1493FF, // deeppink
|
|
|
|
0xF4A460FF, // sandy
|
|
|
|
0xEE82EEFF, // violet
|
|
|
|
0xFFD720FF, // gold
|
|
|
|
0x8b4513FF, // chocolate
|
|
|
|
0x4949A0FF, // midnight blue
|
|
|
|
0x148b8bFF, // dark cyan
|
|
|
|
0x14ff7fFF, // spring green
|
|
|
|
0x556b2fFF, // olive green
|
|
|
|
0x0FD9FAFF,
|
|
|
|
0x10DC29FF,
|
|
|
|
0x534081FF,
|
|
|
|
0x0495CDFF,
|
|
|
|
0xEF6CE8FF,
|
|
|
|
0xBD34DAFF,
|
|
|
|
0x247C1BFF,
|
|
|
|
0x0C8E5DFF,
|
|
|
|
0x635B03FF,
|
|
|
|
0xCB7ED3FF,
|
|
|
|
0x65ADEBFF,
|
|
|
|
0x5C1ACCFF,
|
|
|
|
0xF2F853FF,
|
|
|
|
0x11F891FF,
|
|
|
|
0x7B39AAFF,
|
|
|
|
0x53EB10FF,
|
|
|
|
0x54137DFF,
|
|
|
|
0x275222FF,
|
|
|
|
0xF09F5BFF,
|
|
|
|
0x3D0A4FFF,
|
|
|
|
0x22F767FF,
|
|
|
|
0xD63034FF,
|
|
|
|
0x9A6980FF,
|
|
|
|
0xDFB935FF,
|
|
|
|
0x3793FAFF,
|
|
|
|
0x90239DFF,
|
|
|
|
0xE9AB2FFF,
|
|
|
|
0xAF2FF3FF,
|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x3FE65CFF, // (300)
|
|
|
|
0xFF8C13FF, // dark orange
|
|
|
|
0xC715FFFF, // Medium violet red
|
|
|
|
0x20B2AAFF, // sea green
|
|
|
|
0xDC143CFF, // crimson
|
|
|
|
0x6495EDFF, // cornflower blue
|
|
|
|
0xf0e68cFF, // khaki
|
|
|
|
0x778899FF, // light slate grey
|
|
|
|
0xFF1493FF, // deeppink
|
|
|
|
0xF4A460FF, // sandy
|
|
|
|
0xEE82EEFF, // violet
|
|
|
|
0xFFD720FF, // gold
|
|
|
|
0x8b4513FF, // chocolate
|
|
|
|
0x4949A0FF, // midnight blue
|
|
|
|
0x148b8bFF, // dark cyan
|
|
|
|
0x14ff7fFF, // spring green
|
|
|
|
0x556b2fFF, // olive green
|
|
|
|
0x0FD9FAFF,
|
|
|
|
0x10DC29FF,
|
|
|
|
0x534081FF,
|
|
|
|
0x0495CDFF,
|
|
|
|
0xEF6CE8FF,
|
|
|
|
0xBD34DAFF,
|
|
|
|
0x247C1BFF,
|
|
|
|
0x0C8E5DFF,
|
|
|
|
0x635B03FF,
|
|
|
|
0xCB7ED3FF,
|
|
|
|
0x65ADEBFF,
|
|
|
|
0x5C1ACCFF,
|
|
|
|
0xF2F853FF,
|
|
|
|
0x11F891FF,
|
|
|
|
0x7B39AAFF,
|
|
|
|
0x53EB10FF,
|
|
|
|
0x54137DFF,
|
|
|
|
0x275222FF,
|
|
|
|
0xF09F5BFF,
|
|
|
|
0x3D0A4FFF,
|
|
|
|
0x22F767FF,
|
|
|
|
0xD63034FF,
|
|
|
|
0x9A6980FF,
|
|
|
|
0xDFB935FF,
|
|
|
|
0x3793FAFF,
|
|
|
|
0x90239DFF,
|
|
|
|
0xE9AB2FFF,
|
|
|
|
0xAF2FF3FF,
|
|
|
|
0x057F94FF,
|
|
|
|
0xB98519FF,
|
|
|
|
0x388EEAFF,
|
|
|
|
0x028151FF,
|
|
|
|
0xA55043FF,
|
|
|
|
0x0DE018FF,
|
|
|
|
0x93AB1CFF,
|
|
|
|
0x95BAF0FF,
|
|
|
|
0x369976FF,
|
|
|
|
0x18F71FFF,
|
|
|
|
0x4B8987FF,
|
|
|
|
0x491B9EFF,
|
|
|
|
0x829DC7FF,
|
|
|
|
0xBCE635FF,
|
|
|
|
0xCEA6DFFF,
|
|
|
|
0x20D4ADFF,
|
|
|
|
0x2D74FDFF,
|
|
|
|
0x3C1C0DFF,
|
|
|
|
0x12D6D4FF,
|
|
|
|
0x48C000FF,
|
|
|
|
0x2A51E2FF,
|
|
|
|
0xE3AC12FF,
|
|
|
|
0xFC42A8FF,
|
|
|
|
0x2FC827FF,
|
|
|
|
0x1A30BFFF,
|
|
|
|
0xB740C2FF,
|
|
|
|
0x42ACF5FF,
|
|
|
|
0x2FD9DEFF,
|
|
|
|
0xFAFB71FF,
|
|
|
|
0x05D1CDFF,
|
|
|
|
0xC471BDFF,
|
|
|
|
0x94436EFF,
|
|
|
|
0xC1F7ECFF,
|
|
|
|
0xCE79EEFF,
|
|
|
|
0xBD1EF2FF,
|
|
|
|
0x93B7E4FF,
|
|
|
|
0x3214AAFF,
|
|
|
|
0x184D3BFF,
|
|
|
|
0xAE4B99FF,
|
|
|
|
0x7E49D7FF,
|
|
|
|
0x4C436EFF,
|
|
|
|
0xFA24CCFF,
|
|
|
|
0xCE76BEFF,
|
|
|
|
0xA04E0AFF,
|
|
|
|
0x9F945CFF,
|
|
|
|
0xDCDE3DFF,
|
|
|
|
0x10C9C5FF,
|
|
|
|
0x70524DFF,
|
|
|
|
0x0BE472FF,
|
|
|
|
0x8A2CD7FF,
|
|
|
|
0x6152C2FF,
|
|
|
|
0xCF72A9FF,
|
|
|
|
0xE59338FF,
|
|
|
|
0xEEDC2DFF,
|
|
|
|
0xD8C762FF,
|
|
|
|
0x3FE65CFF, // (400)
|
|
|
|
0xFF8C13FF, // dark orange
|
|
|
|
0xC715FFFF, // Medium violet red
|
|
|
|
0x20B2AAFF, // sea green
|
|
|
|
0xDC143CFF, // crimson
|
|
|
|
0x6495EDFF, // cornflower blue
|
|
|
|
0xf0e68cFF, // khaki
|
|
|
|
0x778899FF, // light slate grey
|
|
|
|
0xFF1493FF, // deeppink
|
|
|
|
0xF4A460FF, // sandy
|
|
|
|
0xEE82EEFF, // violet
|
|
|
|
0xFFD720FF, // gold
|
|
|
|
0x8b4513FF, // chocolate
|
|
|
|
0x4949A0FF, // midnight blue
|
|
|
|
0x148b8bFF, // dark cyan
|
|
|
|
0x14ff7fFF, // spring green
|
|
|
|
0x556b2fFF, // olive green
|
|
|
|
0x0FD9FAFF,
|
|
|
|
0x10DC29FF,
|
|
|
|
0x534081FF,
|
|
|
|
0x0495CDFF,
|
|
|
|
0xEF6CE8FF,
|
|
|
|
0xBD34DAFF,
|
|
|
|
0x247C1BFF,
|
|
|
|
0x0C8E5DFF,
|
|
|
|
0x635B03FF,
|
|
|
|
0xCB7ED3FF,
|
|
|
|
0x65ADEBFF,
|
|
|
|
0x5C1ACCFF,
|
|
|
|
0xF2F853FF,
|
|
|
|
0x11F891FF,
|
|
|
|
0x7B39AAFF,
|
|
|
|
0x53EB10FF,
|
|
|
|
0x54137DFF,
|
|
|
|
0x275222FF,
|
|
|
|
0xF09F5BFF,
|
|
|
|
0x3D0A4FFF,
|
|
|
|
0x22F767FF,
|
|
|
|
0xD63034FF,
|
|
|
|
0x9A6980FF,
|
|
|
|
0xDFB935FF,
|
|
|
|
0x3793FAFF,
|
|
|
|
0x90239DFF,
|
|
|
|
0xE9AB2FFF,
|
|
|
|
0xAF2FF3FF,
|
|
|
|
0x057F94FF,
|
|
|
|
0xB98519FF,
|
|
|
|
0x388EEAFF,
|
|
|
|
0x028151FF,
|
|
|
|
0xA55043FF,
|
|
|
|
0x0DE018FF,
|
|
|
|
0x93AB1CFF,
|
|
|
|
0x95BAF0FF,
|
|
|
|
0x369976FF,
|
|
|
|
0x18F71FFF,
|
|
|
|
0x4B8987FF,
|
|
|
|
0x491B9EFF,
|
|
|
|
0x829DC7FF,
|
|
|
|
0xBCE635FF,
|
|
|
|
0xCEA6DFFF,
|
|
|
|
0x20D4ADFF,
|
|
|
|
0x2D74FDFF,
|
|
|
|
0x3C1C0DFF,
|
|
|
|
0x12D6D4FF,
|
|
|
|
0x48C000FF,
|
|
|
|
0x2A51E2FF,
|
|
|
|
0xE3AC12FF,
|
|
|
|
0xFC42A8FF,
|
|
|
|
0x2FC827FF,
|
|
|
|
0x1A30BFFF,
|
|
|
|
0xB740C2FF,
|
|
|
|
0x42ACF5FF,
|
|
|
|
0x2FD9DEFF,
|
|
|
|
0xFAFB71FF,
|
|
|
|
0x05D1CDFF,
|
|
|
|
0xC471BDFF,
|
|
|
|
0x94436EFF,
|
|
|
|
0xC1F7ECFF,
|
|
|
|
0xCE79EEFF,
|
|
|
|
0xBD1EF2FF,
|
|
|
|
0x93B7E4FF,
|
|
|
|
0x3214AAFF,
|
|
|
|
0x184D3BFF,
|
|
|
|
0xAE4B99FF,
|
|
|
|
0x7E49D7FF,
|
|
|
|
0x4C436EFF,
|
|
|
|
0xFA24CCFF,
|
|
|
|
0xCE76BEFF,
|
|
|
|
0xA04E0AFF,
|
|
|
|
0x9F945CFF,
|
|
|
|
0xDCDE3DFF,
|
|
|
|
0x10C9C5FF,
|
|
|
|
0x70524DFF,
|
|
|
|
0x0BE472FF,
|
|
|
|
0x8A2CD7FF,
|
|
|
|
0x6152C2FF,
|
|
|
|
0xCF72A9FF,
|
|
|
|
0xE59338FF,
|
|
|
|
0xEEDC2DFF,
|
|
|
|
0xD8C762FF,
|
|
|
|
0x3FE65CFF, // (500)
|
|
|
|
0xFF8C13FF, // dark orange
|
|
|
|
0xC715FFFF, // Medium violet red
|
|
|
|
0x20B2AAFF, // sea green
|
|
|
|
0xDC143CFF, // crimson
|
|
|
|
0x6495EDFF, // cornflower blue
|
|
|
|
0xf0e68cFF, // khaki
|
|
|
|
0x778899FF, // light slate grey
|
|
|
|
0xFF1493FF, // deeppink
|
|
|
|
0xF4A460FF, // sandy
|
|
|
|
0xEE82EEFF, // violet
|
|
|
|
0xFFD720FF, // gold
|
|
|
|
0x8b4513FF, // chocolate
|
|
|
|
0x4949A0FF, // midnight blue
|
|
|
|
0x148b8bFF, // dark cyan
|
|
|
|
0x14ff7fFF, // spring green
|
|
|
|
0x556b2fFF, // olive green
|
|
|
|
0x0FD9FAFF,
|
|
|
|
0x10DC29FF,
|
|
|
|
0x534081FF,
|
|
|
|
0x0495CDFF,
|
|
|
|
0xEF6CE8FF,
|
|
|
|
0xBD34DAFF,
|
|
|
|
0x247C1BFF,
|
|
|
|
0x0C8E5DFF,
|
|
|
|
0x635B03FF,
|
|
|
|
0xCB7ED3FF,
|
|
|
|
0x65ADEBFF,
|
|
|
|
0x5C1ACCFF,
|
|
|
|
0xF2F853FF,
|
|
|
|
0x11F891FF,
|
|
|
|
0x7B39AAFF,
|
|
|
|
0x53EB10FF,
|
|
|
|
0x54137DFF,
|
|
|
|
0x275222FF,
|
|
|
|
0xF09F5BFF,
|
|
|
|
0x3D0A4FFF,
|
|
|
|
0x22F767FF,
|
|
|
|
0xD63034FF,
|
|
|
|
0x9A6980FF,
|
|
|
|
0xDFB935FF,
|
|
|
|
0x3793FAFF,
|
|
|
|
0x90239DFF,
|
|
|
|
0xE9AB2FFF,
|
|
|
|
0xAF2FF3FF,
|
|
|
|
0x057F94FF,
|
|
|
|
0xB98519FF,
|
|
|
|
0x388EEAFF,
|
|
|
|
0x028151FF,
|
|
|
|
0xA55043FF,
|
|
|
|
0x0DE018FF,
|
|
|
|
0x93AB1CFF,
|
|
|
|
0x95BAF0FF,
|
|
|
|
0x369976FF,
|
|
|
|
0x18F71FFF,
|
|
|
|
0x4B8987FF,
|
|
|
|
0x491B9EFF,
|
|
|
|
0x829DC7FF,
|
|
|
|
0xBCE635FF,
|
|
|
|
0xCEA6DFFF,
|
|
|
|
0x20D4ADFF,
|
|
|
|
0x2D74FDFF,
|
|
|
|
0x3C1C0DFF,
|
|
|
|
0x12D6D4FF,
|
|
|
|
0x48C000FF,
|
|
|
|
0x2A51E2FF,
|
|
|
|
0xE3AC12FF,
|
|
|
|
0xFC42A8FF,
|
|
|
|
0x2FC827FF,
|
|
|
|
0x1A30BFFF,
|
|
|
|
0xB740C2FF,
|
|
|
|
0x42ACF5FF,
|
|
|
|
0x2FD9DEFF,
|
|
|
|
0xFAFB71FF,
|
|
|
|
0x05D1CDFF,
|
|
|
|
0xC471BDFF,
|
|
|
|
0x94436EFF,
|
|
|
|
0xC1F7ECFF,
|
|
|
|
0xCE79EEFF,
|
|
|
|
0xBD1EF2FF,
|
|
|
|
0x93B7E4FF,
|
|
|
|
0x3214AAFF,
|
|
|
|
0x184D3BFF,
|
|
|
|
0xAE4B99FF,
|
|
|
|
0x7E49D7FF,
|
|
|
|
0x4C436EFF,
|
|
|
|
0xFA24CCFF,
|
|
|
|
0xCE76BEFF,
|
|
|
|
0xA04E0AFF,
|
|
|
|
0x9F945CFF,
|
|
|
|
0xDCDE3DFF,
|
|
|
|
0x10C9C5FF,
|
|
|
|
0x70524DFF,
|
|
|
|
0x0BE472FF,
|
|
|
|
0x8A2CD7FF,
|
|
|
|
0x6152C2FF,
|
|
|
|
0xCF72A9FF,
|
|
|
|
0xE59338FF,
|
|
|
|
0xEEDC2DFF,
|
|
|
|
0xD8C762FF,
|
|
|
|
0x3FE65CFF, // (600)
|
|
|
|
0xFF8C13FF, // dark orange
|
|
|
|
0xC715FFFF, // Medium violet red
|
|
|
|
0x20B2AAFF, // sea green
|
|
|
|
0xDC143CFF, // crimson
|
|
|
|
0x6495EDFF, // cornflower blue
|
|
|
|
0xf0e68cFF, // khaki
|
|
|
|
0x778899FF, // light slate grey
|
|
|
|
0xFF1493FF, // deeppink
|
|
|
|
0xF4A460FF, // sandy
|
|
|
|
0xEE82EEFF, // violet
|
|
|
|
0xFFD720FF, // gold
|
|
|
|
0x8b4513FF, // chocolate
|
|
|
|
0x4949A0FF, // midnight blue
|
|
|
|
0x148b8bFF, // dark cyan
|
|
|
|
0x14ff7fFF, // spring green
|
|
|
|
0x556b2fFF, // olive green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F,
|
|
|
|
0xFAFB71FF,
|
|
|
|
0x05D1CDFF,
|
|
|
|
0xC471BDFF,
|
|
|
|
0x94436EFF,
|
|
|
|
0xC1F7ECFF,
|
|
|
|
0xCE79EEFF,
|
|
|
|
0xBD1EF2FF,
|
|
|
|
0x93B7E4FF,
|
|
|
|
0x3214AAFF,
|
|
|
|
0x184D3BFF,
|
|
|
|
0xAE4B99FF,
|
|
|
|
0x7E49D7FF,
|
|
|
|
0x4C436EFF,
|
|
|
|
0xFA24CCFF,
|
|
|
|
0xCE76BEFF,
|
|
|
|
0xA04E0AFF,
|
|
|
|
0x9F945CFF,
|
|
|
|
0xDCDE3DFF,
|
|
|
|
0x10C9C5FF,
|
|
|
|
0x70524DFF,
|
|
|
|
0x0BE472FF,
|
|
|
|
0x8A2CD7FF,
|
|
|
|
0x6152C2FF,
|
|
|
|
0xCF72A9FF,
|
|
|
|
0xE59338FF,
|
|
|
|
0xEEDC2DFF,
|
|
|
|
0xD8C762FF,
|
|
|
|
0x3FE65CFF, // (700)
|
|
|
|
0xFF8C13FF, // dark orange
|
|
|
|
0xC715FFFF, // Medium violet red
|
|
|
|
0x20B2AAFF, // sea green
|
|
|
|
0xDC143CFF, // crimson
|
|
|
|
0x6495EDFF, // cornflower blue
|
|
|
|
0xf0e68cFF, // khaki
|
|
|
|
0x778899FF, // light slate grey
|
|
|
|
0xFF1493FF, // deeppink
|
|
|
|
0xF4A460FF, // sandy
|
|
|
|
0xEE82EEFF, // violet
|
|
|
|
0xFFD720FF, // gold
|
|
|
|
0x8b4513FF, // chocolate
|
|
|
|
0x4949A0FF, // midnight blue
|
|
|
|
0x148b8bFF, // dark cyan
|
|
|
|
0x14ff7fFF, // spring green
|
|
|
|
0x556b2fFF, // olive green
|
|
|
|
0x0FD9FAFF,
|
|
|
|
0x10DC29FF,
|
|
|
|
0x534081FF,
|
|
|
|
0x0495CDFF,
|
|
|
|
0xEF6CE8FF,
|
|
|
|
0xBD34DAFF,
|
|
|
|
0x247C1BF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1EF2FF,
|
|
|
|
0x93B7E4FF,
|
|
|
|
0x3214AAFF,
|
|
|
|
0x184D3BFF,
|
|
|
|
0xAE4B99FF,
|
|
|
|
0x7E49D7FF,
|
|
|
|
0x4C436EFF,
|
|
|
|
0xFA24CCFF,
|
|
|
|
0xCE76BEFF,
|
|
|
|
0xA04E0AFF,
|
|
|
|
0x9F945CFF,
|
|
|
|
0xDCDE3DFF,
|
|
|
|
0x10C9C5FF,
|
|
|
|
0x70524DFF,
|
|
|
|
0x0BE472FF,
|
|
|
|
0x8A2CD7FF,
|
|
|
|
0x6152C2FF,
|
|
|
|
0xCF72A9FF,
|
|
|
|
0xE59338FF,
|
|
|
|
0xEEDC2DFF,
|
|
|
|
0xD8C762FF,
|
|
|
|
0x3FE65CFF, // (800)
|
|
|
|
0xFF8C13FF, // dark orange
|
|
|
|
0xC715FFFF, // Medium violet red
|
|
|
|
0x20B2AAFF, // sea green
|
|
|
|
0xDC143CFF, // crimson
|
|
|
|
0x6495EDFF, // cornflower blue
|
|
|
|
0xf0e68cFF, // khaki
|
|
|
|
0x778899FF, // light slate grey
|
|
|
|
0xFF1493FF, // deeppink
|
|
|
|
0xF4A460FF, // sandy
|
|
|
|
0xEE82EEFF, // violet
|
|
|
|
0xFFD720FF, // gold
|
|
|
|
0x8b4513FF, // chocolate
|
|
|
|
0x4949A0FF, // midnight blue
|
|
|
|
0x148b8bFF, // dark cyan
|
|
|
|
0x14ff7fFF, // spring green
|
|
|
|
0x556b2fFF, // olive green
|
|
|
|
0x0FD9FAFF,
|
|
|
|
0x10DC29FF,
|
|
|
|
0x534081FF,
|
|
|
|
0x0495CDFF,
|
|
|
|
0xEF6CE8FF,
|
|
|
|
0xBD34DAFF,
|
|
|
|
0x247C1BFF,
|
|
|
|
0x0C8E5DFF,
|
|
|
|
0x635B03FF,
|
|
|
|
0xCB7ED3FF,
|
|
|
|
0x65ADEBFF,
|
|
|
|
0x5C1ACCFF,
|
|
|
|
0xF2F853FF,
|
|
|
|
0x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0xFA24CCFF,
|
|
|
|
0xCE76BEFF,
|
|
|
|
0xA04E0AFF,
|
|
|
|
0x9F945CFF,
|
|
|
|
0xDCDE3DFF,
|
|
|
|
0x10C9C5FF,
|
|
|
|
0x70524DFF,
|
|
|
|
0x0BE472FF,
|
|
|
|
0x8A2CD7FF,
|
|
|
|
0x6152C2FF,
|
|
|
|
0xCF72A9FF,
|
|
|
|
0xE59338FF,
|
|
|
|
0xEEDC2DFF,
|
|
|
|
0xD8C762FF,
|
|
|
|
0x3FE65CFF, // (900)
|
|
|
|
0xFF8C13FF, // dark orange
|
|
|
|
0xC715FFFF, // Medium violet red
|
|
|
|
0x20B2AAFF, // sea green
|
|
|
|
0xDC143CFF, // crimson
|
|
|
|
0x6495EDFF, // cornflower blue
|
|
|
|
0xf0e68cFF, // khaki
|
|
|
|
0x778899FF, // light slate grey
|
|
|
|
0xFF1493FF, // deeppink
|
|
|
|
0xF4A460FF, // sandy
|
|
|
|
0xEE82EEFF, // violet
|
|
|
|
0xFFD720FF, // gold
|
|
|
|
0x8b4513FF, // chocolate
|
|
|
|
0x4949A0FF, // midnight blue
|
|
|
|
0x148b8bFF, // dark cyan
|
|
|
|
0x14ff7fFF, // spring green
|
|
|
|
0x556b2fFF, // olive green
|
|
|
|
0x0FD9FAFF,
|
|
|
|
0x10DC29FF,
|
|
|
|
0x534081FF,
|
|
|
|
0x0495CDFF,
|
|
|
|
0xEF6CE8FF,
|
|
|
|
0xBD34DAFF,
|
|
|
|
0x247C1BFF,
|
|
|
|
0x0C8E5DFF,
|
|
|
|
0x635B03FF,
|
|
|
|
0xCB7ED3FF,
|
|
|
|
0x65ADEBFF,
|
|
|
|
0x5C1ACCFF,
|
|
|
|
0xF2F853FF,
|
|
|
|
0x11F891FF,
|
|
|
|
0x7B39AAFF,
|
|
|
|
0x53EB10FF,
|
|
|
|
0x54137DFF,
|
|
|
|
0x275222FF,
|
|
|
|
0xF09F5BFF,
|
|
|
|
0x3D0A4FFF,
|
|
|
|
0x22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|
|
0x0BE472FF,
|
|
|
|
0x8A2CD7FF,
|
|
|
|
0x6152C2FF,
|
|
|
|
0xCF72A9FF,
|
|
|
|
0xE59338FF,
|
|
|
|
0xEEDC2DFF,
|
|
|
|
0xD8C762FF,
|
|
|
|
0x3FE65CFF
|
|
|
|
};
|
|
|
|
|
|
|
|
DWORD dwUseHudColors[NUM_RADAR_COLORS];
|
|
|
|
|
2024-02-15 21:41:26 +08:00
|
|
|
//-----------------------------------------------------------
|
2024-02-21 19:18:21 +08:00
|
|
|
|
|
|
|
void ProcessLineOfSight(VECTOR *vecOrigin, VECTOR *vecLine, VECTOR *colPoint,
|
|
|
|
DWORD *pHitEntity, int bCheckBuildings, int bCheckVehicles, int bCheckPeds,
|
|
|
|
int bCheckObjects, int bCheckDummies, int bSeeThroughStuff,
|
|
|
|
int bIgnoreSomeObjectsForCamera, int bUnk1)
|
|
|
|
{
|
|
|
|
_asm mov eax, 0x56BA00
|
|
|
|
_asm jmp eax
|
|
|
|
}
|
|
|
|
|
|
|
|
//-----------------------------------------------------------
|
2024-02-15 21:41:26 +08:00
|
|
|
// Return the PED_TYPE * of the local player actor.
|
|
|
|
|
|
|
|
PED_TYPE * __stdcall GamePool_FindPlayerPed()
|
|
|
|
{
|
|
|
|
return *(PED_TYPE **)(0xB7CD98);
|
|
|
|
}
|
|
|
|
|
2023-11-03 18:51:53 +08:00
|
|
|
void __stdcall SetRadarColor(int nIndex,DWORD dwColor)
|
|
|
|
{
|
|
|
|
if(nIndex < sizeof(dwUseHudColors)) {
|
|
|
|
dwUseHudColors[nIndex] = dwColor;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
DWORD __stdcall TranslateColorCodeToRGBA(int iCode)
|
|
|
|
{
|
|
|
|
// Special internal colors
|
|
|
|
if(iCode == 1004) return 0x89A4C440;
|
|
|
|
if(iCode == 1005) return 0xAA0000FF;
|
|
|
|
if(iCode == 1006) return 0xE2C063FF;
|
|
|
|
|
|
|
|
if(iCode < sizeof(dwUseHudColors)) {
|
|
|
|
return dwUseHudColors[iCode];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void GameResetRadarColors()
|
|
|
|
{
|
|
|
|
memcpy(&dwUseHudColors[0],&dwHudColors[0],sizeof(DWORD)*NUM_RADAR_COLORS);
|
2024-01-04 23:16:46 +08:00
|
|
|
}
|
2023-12-01 18:31:52 +08:00
|
|
|
|
|
|
|
|
2024-02-15 21:56:14 +08:00
|
|
|
//-----------------------------------------------------------
|
|
|
|
|
|
|
|
void __stdcall InitPlayerPedPtrRecords()
|
|
|
|
{
|
|
|
|
memset(&dwPlayerPedPtrs[0],0,sizeof(DWORD) * PLAYER_PED_SLOTS);
|
|
|
|
memset(unnamed_1026C258, 0, sizeof(struc_96) * PLAYER_PED_SLOTS);
|
|
|
|
}
|
|
|
|
|
|
|
|
//-----------------------------------------------------------
|
|
|
|
|
|
|
|
void __stdcall SetPlayerPedPtrRecord(BYTE bytePlayer, DWORD dwPedPtr)
|
|
|
|
{
|
|
|
|
dwPlayerPedPtrs[bytePlayer] = dwPedPtr;
|
|
|
|
|
|
|
|
memset(&unnamed_1026C258[bytePlayer], 0, sizeof(struc_96));
|
|
|
|
}
|
|
|
|
|
|
|
|
//-----------------------------------------------------------
|
|
|
|
|
|
|
|
DWORD __stdcall GetPlayerPedPtrRecord(BYTE bytePlayer)
|
|
|
|
{
|
|
|
|
return dwPlayerPedPtrs[bytePlayer];
|
|
|
|
}
|
|
|
|
|
|
|
|
//-----------------------------------------------------------
|
|
|
|
|
|
|
|
BYTE __stdcall FindPlayerNumFromPedPtr(DWORD dwPedPtr)
|
|
|
|
{
|
|
|
|
BYTE x = 0;
|
|
|
|
while(x != PLAYER_PED_SLOTS)
|
|
|
|
{
|
|
|
|
if(dwPlayerPedPtrs[x] == dwPedPtr) return x;
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
2023-12-01 18:31:52 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-01-31 23:59:28 +08:00
|
|
|
//----------------------------------------------------
|
|
|
|
|
|
|
|
bool IsNumeric(char * szString)
|
|
|
|
{
|
|
|
|
while(*szString) {
|
|
|
|
if(*szString < '0' || *szString > '9') {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
szString++;
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2023-12-01 18:31:52 +08:00
|
|
|
//----------------------------------------------------
|
|
|
|
|
2024-02-01 00:00:47 +08:00
|
|
|
DWORD CamFrameBuffer=0;
|
|
|
|
DWORD FrameBufferTexture=0;
|
|
|
|
|
|
|
|
extern CChatWindow * pChatWindow;
|
|
|
|
|
|
|
|
void _VehicleEnvMappingFromScreen()
|
|
|
|
{
|
|
|
|
/*
|
|
|
|
if(FrameBufferTexture) {
|
|
|
|
_asm push FrameBufferTexture
|
|
|
|
_asm mov edx, 0x7F3820
|
|
|
|
_asm call edx
|
|
|
|
_asm pop edx
|
|
|
|
FrameBufferTexture = 0;
|
|
|
|
}*/
|
|
|
|
|
|
|
|
// get the frame buffer from the main RwCamera
|
|
|
|
_asm mov eax, 0xC402D8
|
|
|
|
_asm mov ebx, [eax]
|
|
|
|
_asm mov CamFrameBuffer, ebx
|
|
|
|
|
|
|
|
_asm push CamFrameBuffer
|
|
|
|
_asm mov edx, 0x7F37C0 // RwTextureCreate
|
|
|
|
_asm call edx
|
|
|
|
_asm pop edx
|
|
|
|
_asm mov FrameBufferTexture, eax
|
|
|
|
|
|
|
|
if(!FrameBufferTexture) {
|
|
|
|
pChatWindow->AddDebugMessage("No texture!");
|
|
|
|
}
|
|
|
|
|
|
|
|
*(DWORD *)0xB4E690 = FrameBufferTexture;
|
|
|
|
*(DWORD *)0xB4E68C = FrameBufferTexture;
|
|
|
|
*(DWORD *)0xB4E47C = FrameBufferTexture;
|
|
|
|
*(DWORD *)0xB4E3EC = FrameBufferTexture;
|
|
|
|
*(float *)0x8A7780 = 2.0f;
|
|
|
|
}
|
|
|
|
|
2024-02-19 21:13:45 +08:00
|
|
|
//----------------------------------------------------
|
|
|
|
|
|
|
|
int Width,Height,Depth;
|
|
|
|
DWORD dwRwImage;
|
|
|
|
|
|
|
|
void WriteRwRasterToFile(DWORD raster,char *filename)
|
|
|
|
{
|
|
|
|
// RwImageCreate(width,height,depth)
|
|
|
|
_asm push Depth
|
|
|
|
_asm push Height
|
|
|
|
_asm push Width
|
|
|
|
_asm mov edx, 0x8026E0
|
|
|
|
_asm call edx
|
|
|
|
_asm mov dwRwImage, eax
|
|
|
|
_asm pop edx
|
|
|
|
_asm pop edx
|
|
|
|
_asm pop edx
|
|
|
|
|
|
|
|
// RwImageAllocatePixels
|
|
|
|
_asm push dwRwImage
|
|
|
|
_asm mov edx, 0x8027A0
|
|
|
|
_asm call edx
|
|
|
|
_asm pop edx
|
|
|
|
|
|
|
|
// RwImageSetFromRaster
|
|
|
|
_asm push raster
|
|
|
|
_asm push dwRwImage
|
|
|
|
_asm mov edx, 0x804250
|
|
|
|
_asm call edx
|
|
|
|
_asm pop edx
|
|
|
|
_asm pop edx
|
|
|
|
|
|
|
|
// RtBmpImageWrite
|
|
|
|
_asm push filename
|
|
|
|
_asm push dwRwImage
|
|
|
|
_asm mov edx, 0x7CE990
|
|
|
|
_asm call edx
|
|
|
|
_asm pop edx
|
|
|
|
_asm pop edx
|
|
|
|
|
|
|
|
// RwImageDestroy
|
|
|
|
_asm push dwRwImage
|
|
|
|
_asm mov edx, 0x802740
|
|
|
|
_asm call edx
|
|
|
|
_asm pop edx
|
|
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------------------
|
|
|
|
|
2023-12-01 18:31:52 +08:00
|
|
|
BOOL IsFileOrDirectoryExists(char * szPath)
|
|
|
|
{
|
|
|
|
struct _stat buf;
|
|
|
|
|
|
|
|
return _stat(szPath, &buf) == 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------------------
|
|
|
|
|
|
|
|
|
2024-02-19 21:32:38 +08:00
|
|
|
DWORD unnamed_100B6100(char *szString, int nMaxLen)
|
|
|
|
{
|
|
|
|
char tmp_buf[2049];
|
|
|
|
memset(tmp_buf, 0, sizeof(tmp_buf));
|
|
|
|
|
|
|
|
if(szString &&
|
|
|
|
strlen(szString) < 400 &&
|
|
|
|
strstr(szString, "~k~") != NULL)
|
|
|
|
{
|
|
|
|
strcpy(tmp_buf, szString);
|
|
|
|
|
|
|
|
_asm lea edx, tmp_buf
|
|
|
|
_asm push edx
|
|
|
|
_asm mov edx, 0x69E160
|
|
|
|
_asm call edx
|
|
|
|
_asm pop edx
|
|
|
|
|
|
|
|
if((int)strlen(tmp_buf) > nMaxLen) return 0;
|
|
|
|
|
|
|
|
strcpy(szString, tmp_buf);
|
|
|
|
return strlen(tmp_buf);
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
2023-12-01 18:31:52 +08:00
|
|
|
|
|
|
|
|
|
|
|
|