|
| 1 | +/* |
| 2 | + This is a SAMP (0.3.DL-1) API project file. |
| 3 | + Developers: LUCHARE <[email protected]>, ARMOR |
| 4 | + |
| 5 | + See more here https://github.com/LUCHARE/SAMP-API |
| 6 | + |
| 7 | + Copyright (c) 2018 BlastHack Team <BlastHack.Net>. All rights reserved. |
| 8 | +*/ |
| 9 | + |
| 10 | +#include "sampapi/0.3.DL-1/CCustomModels.h" |
| 11 | + |
| 12 | +SAMPAPI_BEGIN_V03DL_1 |
| 13 | + |
| 14 | +SAMPAPI_VAR CCustomModels*& RefCustomModels() { |
| 15 | + return *(CCustomModels**)GetAddress(0x2ACA28); |
| 16 | +} |
| 17 | + |
| 18 | +CCustomModels::CCustomModels(IDirect3DDevice9* pDevice) { |
| 19 | + ((void(__thiscall*)(CCustomModels*, IDirect3DDevice9*))GetAddress(0xD890))(this, pDevice); |
| 20 | +} |
| 21 | + |
| 22 | +CCustomModels::~CCustomModels() {} |
| 23 | + |
| 24 | +bool CCustomModels::InitDirectory() { |
| 25 | + return ((bool(__thiscall*)(CCustomModels*))GetAddress(0xBA40))(this); |
| 26 | +} |
| 27 | + |
| 28 | +bool CCustomModels::DoesDffExist(unsigned int nDffIndex) { |
| 29 | + return ((bool(__thiscall*)(CCustomModels*, unsigned int))GetAddress(0xBB10))(this, nDffIndex); |
| 30 | +} |
| 31 | + |
| 32 | +bool CCustomModels::DoesTxdExist(unsigned int nTxdIndex) { |
| 33 | + return ((bool(__thiscall*)(CCustomModels*, unsigned int))GetAddress(0xBBA0))(this, nTxdIndex); |
| 34 | +} |
| 35 | + |
| 36 | +bool CCustomModels::DeleteDff(unsigned int nDffIndex) { |
| 37 | + return ((bool(__thiscall*)(CCustomModels*, unsigned int))GetAddress(0xC100))(this, nDffIndex); |
| 38 | +} |
| 39 | + |
| 40 | +bool CCustomModels::DeleteTxd(unsigned int nTxdIndex) { |
| 41 | + return ((bool(__thiscall*)(CCustomModels*, unsigned int))GetAddress(0xC140))(this, nTxdIndex); |
| 42 | +} |
| 43 | + |
| 44 | +bool CCustomModels::DeleteTempFile(const char* szFileName) { |
| 45 | + return ((bool(__thiscall*)(CCustomModels*, const char*))GetAddress(0xC180))(this, szFileName); |
| 46 | +} |
| 47 | + |
| 48 | +bool CCustomModels::LoadModel(unsigned int nStandartModelId, unsigned int nCustomModelId, unsigned int nDffIndex, unsigned int nTxdIndex) { |
| 49 | + return ((bool(__thiscall*)(CCustomModels*, unsigned int, unsigned int, unsigned int, unsigned int))GetAddress(0xC1C0))(this, nStandartModelId, nCustomModelId, nDffIndex, nTxdIndex); |
| 50 | +} |
| 51 | + |
| 52 | +CCustomModelInfo* CCustomModels::GetModelInfo(unsigned int nId) { |
| 53 | + return ((CCustomModelInfo*(__thiscall*)(CCustomModels*, unsigned int))GetAddress(0xC410))(this, nId); |
| 54 | +} |
| 55 | + |
| 56 | +int CCustomModels::GetCount() { |
| 57 | + return ((int(__thiscall*)(CCustomModels*))GetAddress(0xC430))(this); |
| 58 | +} |
| 59 | + |
| 60 | +bool CCustomModels::ResizePool(unsigned int nId) { |
| 61 | + return ((bool(__thiscall*)(CCustomModels*, unsigned int))GetAddress(0xC4E0))(this, nId); |
| 62 | +} |
| 63 | + |
| 64 | +bool CCustomModels::DoesExist(unsigned int nId) { |
| 65 | + return ((bool(__thiscall*)(CCustomModels*, unsigned int))GetAddress(0xCE30))(this, nId); |
| 66 | +} |
| 67 | + |
| 68 | +void CCustomModels::PushBack(unsigned int nId, CCustomModelInfo* pModelInfo) { |
| 69 | + ((void(__thiscall*)(CCustomModels*, unsigned int, CCustomModelInfo*))GetAddress(0xCFF0))(this, nId, pModelInfo); |
| 70 | +} |
| 71 | + |
| 72 | +void CCustomModels::SetModelInfo(unsigned int nId, CCustomModelInfo* pModelInfo) { |
| 73 | + ((void(__thiscall*)(CCustomModels*, unsigned int, CCustomModelInfo*))GetAddress(0xD550))(this, nId, pModelInfo); |
| 74 | +} |
| 75 | + |
| 76 | +SAMPAPI_END |
0 commit comments