2023-10-31 21:15:51 +08:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2024-02-06 21:37:52 +08:00
|
|
|
#include <windows.h>
|
|
|
|
|
2024-02-06 22:20:05 +08:00
|
|
|
#define MAX_PLAYERS 1004
|
2024-02-12 20:12:15 +08:00
|
|
|
#define MAX_ACTORS 1000
|
2024-02-06 22:08:24 +08:00
|
|
|
#define MAX_VEHICLES 2000
|
2024-02-12 20:10:26 +08:00
|
|
|
#define MAX_OBJECTS 1000
|
2024-02-12 20:22:51 +08:00
|
|
|
#define MAX_MENUS 128
|
2024-02-12 20:16:37 +08:00
|
|
|
#define MAX_LABELS 2048
|
2023-10-31 21:15:51 +08:00
|
|
|
#define PLAYER_PED_SLOTS 210
|
|
|
|
|
2024-02-06 22:08:24 +08:00
|
|
|
//-----------------------------------------------------------
|
|
|
|
|
|
|
|
typedef unsigned short VEHICLEID;
|
2024-02-12 20:12:15 +08:00
|
|
|
typedef unsigned short ACTORID;
|
2024-02-06 22:20:05 +08:00
|
|
|
typedef unsigned short PLAYERID;
|
2024-02-06 22:08:24 +08:00
|
|
|
|
2024-02-06 21:37:52 +08:00
|
|
|
typedef struct _VECTOR {
|
|
|
|
float X,Y,Z;
|
|
|
|
} VECTOR, *PVECTOR;
|
2023-10-31 21:15:51 +08:00
|
|
|
|
2024-02-06 21:37:52 +08:00
|
|
|
typedef struct _MATRIX4X4 {
|
|
|
|
VECTOR right;
|
|
|
|
DWORD flags;
|
|
|
|
VECTOR up;
|
|
|
|
float pad_u;
|
|
|
|
VECTOR at;
|
|
|
|
float pad_a;
|
|
|
|
VECTOR pos;
|
|
|
|
float pad_p;
|
|
|
|
} MATRIX4X4, *PMATRIX4X4;
|
2024-02-10 22:48:48 +08:00
|
|
|
|
|
|
|
//-----------------------------------------------------------
|
|
|
|
#pragma pack(1)
|
|
|
|
typedef struct _ENTITY_TYPE
|
|
|
|
{
|
|
|
|
// ENTITY STUFF
|
|
|
|
DWORD vtable; // 0-4
|
|
|
|
|
|
|
|
char _pad4[16];
|
|
|
|
|
|
|
|
MATRIX4X4 *mat; // 20-24
|
2024-02-16 22:27:57 +08:00
|
|
|
DWORD *pdwRenderWare; // 24-28
|
2024-02-10 22:48:48 +08:00
|
|
|
|
|
|
|
} ENTITY_TYPE;
|
|
|
|
|
|
|
|
//-----------------------------------------------------------
|
2024-02-15 21:41:26 +08:00
|
|
|
#pragma pack(1)
|
|
|
|
typedef struct _PED_TYPE
|
|
|
|
{
|
|
|
|
ENTITY_TYPE entity;
|
|
|
|
|
|
|
|
} PED_TYPE;
|
|
|
|
|
|
|
|
//-----------------------------------------------------------
|
|
|
|
|