├── .clang-format ├── .gitignore ├── CMakeLists.txt ├── LICENSE ├── include └── sampapi │ ├── 0.3.7-R1 │ ├── AimStuff.h │ ├── Animation.h │ ├── CActor.h │ ├── CActorPool.h │ ├── CAudio.h │ ├── CAudioStream.h │ ├── CCamera.h │ ├── CChat.h │ ├── CChatBubble.h │ ├── CConfig.h │ ├── CDeathWindow.h │ ├── CDialog.h │ ├── CEntity.h │ ├── CFonts.h │ ├── CGame.h │ ├── CGangZonePool.h │ ├── CHelpDialog.h │ ├── CHttpClient.h │ ├── CInput.h │ ├── CLabel.h │ ├── CLabelPool.h │ ├── CLicensePlate.h │ ├── CLocalPlayer.h │ ├── CMakeLists.txt │ ├── CMenu.h │ ├── CMenuPool.h │ ├── CNetGame.h │ ├── CNetStats.h │ ├── CObject.h │ ├── CObjectEdit.h │ ├── CObjectMaterialText.h │ ├── CObjectPool.h │ ├── CObjectSelection.h │ ├── CPed.h │ ├── CPickupPool.h │ ├── CPlayerInfo.h │ ├── CPlayerPool.h │ ├── CPlayerTags.h │ ├── CRemotePlayer.h │ ├── CScoreboard.h │ ├── CSpawnScreen.h │ ├── CSrvNetStats.h │ ├── CTextDraw.h │ ├── CTextDrawPool.h │ ├── CTextDrawSelection.h │ ├── CVehicle.h │ ├── CVehiclePool.h │ ├── Commands.h │ ├── ControllerState.h │ ├── Debug.h │ ├── DebugScript.h │ ├── Exception.h │ ├── GUI.h │ ├── InputHandler.h │ ├── KeyStuff.h │ ├── RPC.h │ ├── Scripting.h │ ├── Settings.h │ ├── SpecialAction.h │ ├── Synchronization.h │ └── VehicleSelection.h │ ├── 0.3.7-R3-1 │ ├── AimStuff.h │ ├── Animation.h │ ├── CActor.h │ ├── CActorPool.h │ ├── CAudio.h │ ├── CAudioStream.h │ ├── CCamera.h │ ├── CChat.h │ ├── CChatBubble.h │ ├── CConfig.h │ ├── CDeathWindow.h │ ├── CDialog.h │ ├── CEntity.h │ ├── CFont.h │ ├── CFonts.h │ ├── CGame.h │ ├── CGangZonePool.h │ ├── CHelpDialog.h │ ├── CHttpClient.h │ ├── CInput.h │ ├── CLabel.h │ ├── CLabelPool.h │ ├── CLicensePlate.h │ ├── CLocalPlayer.h │ ├── CMakeLists.txt │ ├── CMenu.h │ ├── CMenuPool.h │ ├── CNetGame.h │ ├── CNetStats.h │ ├── CObject.h │ ├── CObjectEdit.h │ ├── CObjectMaterialText.h │ ├── CObjectPool.h │ ├── CObjectSelection.h │ ├── CPed.h │ ├── CPickupPool.h │ ├── CPlayerInfo.h │ ├── CPlayerPool.h │ ├── CPlayerTags.h │ ├── CRemotePlayer.h │ ├── CScoreboard.h │ ├── CSpawnScreen.h │ ├── CSrvNetStats.h │ ├── CTextDraw.h │ ├── CTextDrawPool.h │ ├── CTextDrawSelection.h │ ├── CVehicle.h │ ├── CVehiclePool.h │ ├── Commands.h │ ├── ControllerState.h │ ├── DebugScript.h │ ├── Exception.h │ ├── GUI.h │ ├── InputHandler.h │ ├── KeyStuff.h │ ├── RPCHandlers.h │ ├── Scripting.h │ ├── Settings.h │ ├── SpecialAction.h │ └── Synchronization.h │ ├── 0.3.7-R5-1 │ ├── AimStuff.h │ ├── Animation.h │ ├── CActor.h │ ├── CActorPool.h │ ├── CAudio.h │ ├── CAudioStream.h │ ├── CCamera.h │ ├── CChat.h │ ├── CChatBubble.h │ ├── CConfig.h │ ├── CDeathWindow.h │ ├── CDialog.h │ ├── CEntity.h │ ├── CFont.h │ ├── CFonts.h │ ├── CGame.h │ ├── CGangZonePool.h │ ├── CHelpDialog.h │ ├── CHttpClient.h │ ├── CInput.h │ ├── CLabel.h │ ├── CLabelPool.h │ ├── CLicensePlate.h │ ├── CLocalPlayer.h │ ├── CMakeLists.txt │ ├── CMenu.h │ ├── CMenuPool.h │ ├── CNetGame.h │ ├── CNetStats.h │ ├── CObject.h │ ├── CObjectEdit.h │ ├── CObjectMaterialText.h │ ├── CObjectPool.h │ ├── CObjectSelection.h │ ├── CPed.h │ ├── CPickupPool.h │ ├── CPlayerInfo.h │ ├── CPlayerPool.h │ ├── CPlayerTags.h │ ├── CRemotePlayer.h │ ├── CScoreboard.h │ ├── CSpawnScreen.h │ ├── CSrvNetStats.h │ ├── CTextDraw.h │ ├── CTextDrawPool.h │ ├── CTextDrawSelection.h │ ├── CVehicle.h │ ├── CVehiclePool.h │ ├── Commands.h │ ├── ControllerState.h │ ├── DebugScript.h │ ├── Exception.h │ ├── GUI.h │ ├── InputHandler.h │ ├── KeyStuff.h │ ├── RPCHandlers.h │ ├── Scripting.h │ ├── Settings.h │ ├── SpecialAction.h │ └── Synchronization.h │ ├── 0.3.DL-1 │ ├── AimStuff.h │ ├── Animation.h │ ├── CActor.h │ ├── CActorPool.h │ ├── CAudio.h │ ├── CAudioStream.h │ ├── CCamera.h │ ├── CChat.h │ ├── CChatBubble.h │ ├── CConfig.h │ ├── CCustomModels.h │ ├── CCustomModelsPool.h │ ├── CDeathWindow.h │ ├── CDialog.h │ ├── CDownloadWindow.h │ ├── CDownloadedFilesPool.h │ ├── CEntity.h │ ├── CFont.h │ ├── CFonts.h │ ├── CGame.h │ ├── CGangZonePool.h │ ├── CHelpDialog.h │ ├── CHttpClient.h │ ├── CInput.h │ ├── CLabel.h │ ├── CLabelPool.h │ ├── CLicensePlate.h │ ├── CLocalPlayer.h │ ├── CMakeLists.txt │ ├── CMenu.h │ ├── CMenuPool.h │ ├── CNetGame.h │ ├── CNetStats.h │ ├── CObject.h │ ├── CObjectEdit.h │ ├── CObjectMaterialText.h │ ├── CObjectPool.h │ ├── CObjectSelection.h │ ├── CPed.h │ ├── CPickupPool.h │ ├── CPlayerInfo.h │ ├── CPlayerPool.h │ ├── CPlayerTags.h │ ├── CRemotePlayer.h │ ├── CScoreboard.h │ ├── CSpawnScreen.h │ ├── CSrvNetStats.h │ ├── CTextDraw.h │ ├── CTextDrawPool.h │ ├── CTextDrawSelection.h │ ├── CVehicle.h │ ├── CVehiclePool.h │ ├── Commands.h │ ├── ControllerState.h │ ├── DebugScript.h │ ├── Exception.h │ ├── GUI.h │ ├── InputHandler.h │ ├── KeyStuff.h │ ├── RPCHandlers.h │ ├── Scripting.h │ ├── Settings.h │ ├── SpecialAction.h │ └── Synchronization.h │ ├── AimStuff.h │ ├── Animation.h │ ├── CActor.h │ ├── CActorPool.h │ ├── CAudio.h │ ├── CAudioStream.h │ ├── CCamera.h │ ├── CChat.h │ ├── CChatBubble.h │ ├── CConfig.h │ ├── CCustomModels.h │ ├── CCustomModelsPool.h │ ├── CDeathWindow.h │ ├── CDialog.h │ ├── CDownloadWindow.h │ ├── CDownloadedFilesPool.h │ ├── CEntity.h │ ├── CFont.h │ ├── CFonts.h │ ├── CGame.h │ ├── CGangZonePool.h │ ├── CHelpDialog.h │ ├── CHttpClient.h │ ├── CInput.h │ ├── CLabel.h │ ├── CLabelPool.h │ ├── CLicensePlate.h │ ├── CLocalPlayer.h │ ├── CMakeLists.txt │ ├── CMatrix.h │ ├── CMenu.h │ ├── CMenuPool.h │ ├── CNetGame.h │ ├── CNetStats.h │ ├── CObject.h │ ├── CObjectEdit.h │ ├── CObjectMaterialText.h │ ├── CObjectPool.h │ ├── CObjectSelection.h │ ├── CPed.h │ ├── CPickupPool.h │ ├── CPlayerInfo.h │ ├── CPlayerPool.h │ ├── CPlayerTags.h │ ├── CPoint.h │ ├── CRect.h │ ├── CRemotePlayer.h │ ├── CScoreboard.h │ ├── CSpawnScreen.h │ ├── CSrvNetStats.h │ ├── CTextDraw.h │ ├── CTextDrawPool.h │ ├── CTextDrawSelection.h │ ├── CVector.h │ ├── CVehicle.h │ ├── CVehiclePool.h │ ├── Commands.h │ ├── ControllerState.h │ ├── Debug.h │ ├── DebugScript.h │ ├── Exception.h │ ├── GUI.h │ ├── InputHandler.h │ ├── KeyStuff.h │ ├── RPC.h │ ├── RPCHandlers.h │ ├── Scripting.h │ ├── Settings.h │ ├── SpecialAction.h │ ├── Synchronization.h │ ├── VehicleSelection.h │ └── sampapi.h ├── src └── sampapi │ ├── 0.3.7-R1 │ ├── AimStuff.cpp │ ├── CActor.cpp │ ├── CActorPool.cpp │ ├── CAudio.cpp │ ├── CAudioStream.cpp │ ├── CCamera.cpp │ ├── CChat.cpp │ ├── CChatBubble.cpp │ ├── CConfig.cpp │ ├── CDeathWindow.cpp │ ├── CDialog.cpp │ ├── CEntity.cpp │ ├── CFonts.cpp │ ├── CGame.cpp │ ├── CGangZonePool.cpp │ ├── CHelpDialog.cpp │ ├── CHttpClient.cpp │ ├── CInput.cpp │ ├── CLabel.cpp │ ├── CLabelPool.cpp │ ├── CLicensePlate.cpp │ ├── CLocalPlayer.cpp │ ├── CMakeLists.txt │ ├── CMenu.cpp │ ├── CMenuPool.cpp │ ├── CNetGame.cpp │ ├── CNetStats.cpp │ ├── CObject.cpp │ ├── CObjectEdit.cpp │ ├── CObjectMaterialText.cpp │ ├── CObjectPool.cpp │ ├── CObjectSelection.cpp │ ├── CPed.cpp │ ├── CPickupPool.cpp │ ├── CPlayerInfo.cpp │ ├── CPlayerPool.cpp │ ├── CPlayerTags.cpp │ ├── CRemotePlayer.cpp │ ├── CScoreboard.cpp │ ├── CSpawnScreen.cpp │ ├── CSrvNetStats.cpp │ ├── CTextDraw.cpp │ ├── CTextDrawPool.cpp │ ├── CTextDrawSelection.cpp │ ├── CVehicle.cpp │ ├── CVehiclePool.cpp │ ├── Commands.cpp │ ├── Debug.cpp │ ├── DebugScript.cpp │ ├── Exception.cpp │ ├── GUI.cpp │ ├── InputHandler.cpp │ ├── KeyStuff.cpp │ ├── RPC.cpp │ ├── Scripting.cpp │ ├── Settings.cpp │ └── VehicleSelection.cpp │ ├── 0.3.7-R3-1 │ ├── AimStuff.cpp │ ├── CActor.cpp │ ├── CActorPool.cpp │ ├── CAudio.cpp │ ├── CAudioStream.cpp │ ├── CCamera.cpp │ ├── CChat.cpp │ ├── CChatBubble.cpp │ ├── CConfig.cpp │ ├── CDeathWindow.cpp │ ├── CDialog.cpp │ ├── CEntity.cpp │ ├── CFont.cpp │ ├── CFonts.cpp │ ├── CGame.cpp │ ├── CGangZonePool.cpp │ ├── CHelpDialog.cpp │ ├── CHttpClient.cpp │ ├── CInput.cpp │ ├── CLabel.cpp │ ├── CLabelPool.cpp │ ├── CLicensePlate.cpp │ ├── CLocalPlayer.cpp │ ├── CMakeLists.txt │ ├── CMenu.cpp │ ├── CMenuPool.cpp │ ├── CNetGame.cpp │ ├── CNetStats.cpp │ ├── CObject.cpp │ ├── CObjectEdit.cpp │ ├── CObjectMaterialText.cpp │ ├── CObjectPool.cpp │ ├── CObjectSelection.cpp │ ├── CPed.cpp │ ├── CPickupPool.cpp │ ├── CPlayerInfo.cpp │ ├── CPlayerPool.cpp │ ├── CPlayerTags.cpp │ ├── CRemotePlayer.cpp │ ├── CScoreboard.cpp │ ├── CSpawnScreen.cpp │ ├── CSrvNetStats.cpp │ ├── CTextDraw.cpp │ ├── CTextDrawPool.cpp │ ├── CTextDrawSelection.cpp │ ├── CVehicle.cpp │ ├── CVehiclePool.cpp │ ├── Commands.cpp │ ├── DebugScript.cpp │ ├── Exception.cpp │ ├── GUI.cpp │ ├── InputHandler.cpp │ ├── KeyStuff.cpp │ ├── RPCHandlers.cpp │ ├── Scripting.cpp │ └── Settings.cpp │ ├── 0.3.7-R5-1 │ ├── AimStuff.cpp │ ├── CActor.cpp │ ├── CActorPool.cpp │ ├── CAudio.cpp │ ├── CAudioStream.cpp │ ├── CCamera.cpp │ ├── CChat.cpp │ ├── CChatBubble.cpp │ ├── CConfig.cpp │ ├── CDeathWindow.cpp │ ├── CDialog.cpp │ ├── CEntity.cpp │ ├── CFont.cpp │ ├── CFonts.cpp │ ├── CGame.cpp │ ├── CGangZonePool.cpp │ ├── CHelpDialog.cpp │ ├── CHttpClient.cpp │ ├── CInput.cpp │ ├── CLabel.cpp │ ├── CLabelPool.cpp │ ├── CLicensePlate.cpp │ ├── CLocalPlayer.cpp │ ├── CMakeLists.txt │ ├── CMenu.cpp │ ├── CMenuPool.cpp │ ├── CNetGame.cpp │ ├── CNetStats.cpp │ ├── CObject.cpp │ ├── CObjectEdit.cpp │ ├── CObjectMaterialText.cpp │ ├── CObjectPool.cpp │ ├── CObjectSelection.cpp │ ├── CPed.cpp │ ├── CPickupPool.cpp │ ├── CPlayerInfo.cpp │ ├── CPlayerPool.cpp │ ├── CPlayerTags.cpp │ ├── CRemotePlayer.cpp │ ├── CScoreboard.cpp │ ├── CSpawnScreen.cpp │ ├── CSrvNetStats.cpp │ ├── CTextDraw.cpp │ ├── CTextDrawPool.cpp │ ├── CTextDrawSelection.cpp │ ├── CVehicle.cpp │ ├── CVehiclePool.cpp │ ├── Commands.cpp │ ├── DebugScript.cpp │ ├── Exception.cpp │ ├── GUI.cpp │ ├── InputHandler.cpp │ ├── KeyStuff.cpp │ ├── RPCHandlers.cpp │ ├── Scripting.cpp │ └── Settings.cpp │ ├── 0.3.DL-1 │ ├── AimStuff.cpp │ ├── CActor.cpp │ ├── CActorPool.cpp │ ├── CAudio.cpp │ ├── CAudioStream.cpp │ ├── CCamera.cpp │ ├── CChat.cpp │ ├── CChatBubble.cpp │ ├── CConfig.cpp │ ├── CCustomModels.cpp │ ├── CDeathWindow.cpp │ ├── CDialog.cpp │ ├── CDownloadWindow.cpp │ ├── CEntity.cpp │ ├── CFont.cpp │ ├── CFonts.cpp │ ├── CGame.cpp │ ├── CGangZonePool.cpp │ ├── CHelpDialog.cpp │ ├── CHttpClient.cpp │ ├── CInput.cpp │ ├── CLabel.cpp │ ├── CLabelPool.cpp │ ├── CLicensePlate.cpp │ ├── CLocalPlayer.cpp │ ├── CMakeLists.txt │ ├── CMenu.cpp │ ├── CMenuPool.cpp │ ├── CNetGame.cpp │ ├── CNetStats.cpp │ ├── CObject.cpp │ ├── CObjectEdit.cpp │ ├── CObjectMaterialText.cpp │ ├── CObjectPool.cpp │ ├── CObjectSelection.cpp │ ├── CPed.cpp │ ├── CPickupPool.cpp │ ├── CPlayerInfo.cpp │ ├── CPlayerPool.cpp │ ├── CPlayerTags.cpp │ ├── CRemotePlayer.cpp │ ├── CScoreboard.cpp │ ├── CSpawnScreen.cpp │ ├── CSrvNetStats.cpp │ ├── CTextDraw.cpp │ ├── CTextDrawPool.cpp │ ├── CTextDrawSelection.cpp │ ├── CVehicle.cpp │ ├── CVehiclePool.cpp │ ├── Commands.cpp │ ├── DebugScript.cpp │ ├── Exception.cpp │ ├── GUI.cpp │ ├── InputHandler.cpp │ ├── KeyStuff.cpp │ ├── RPCHandlers.cpp │ ├── Scripting.cpp │ └── Settings.cpp │ ├── CMakeLists.txt │ ├── CPoint.cpp │ ├── CRect.cpp │ ├── CVector.cpp │ └── sampapi.cpp └── tools └── make_headers.py /.clang-format: -------------------------------------------------------------------------------- 1 | --- 2 | BasedOnStyle: LLVM 3 | AccessModifierOffset: '-4' 4 | AlignConsecutiveMacros: 'true' 5 | AlignConsecutiveDeclarations: 'true' 6 | AlignEscapedNewlines: DontAlign 7 | AlignOperands: 'false' 8 | AlignTrailingComments: 'true' 9 | AllowAllConstructorInitializersOnNextLine: 'false' 10 | AllowAllParametersOfDeclarationOnNextLine: 'false' 11 | AllowShortBlocksOnASingleLine: 'false' 12 | AllowShortCaseLabelsOnASingleLine: 'true' 13 | AllowShortFunctionsOnASingleLine: None 14 | AllowShortIfStatementsOnASingleLine: Never 15 | AlwaysBreakTemplateDeclarations: 'Yes' 16 | ColumnLimit: '0' 17 | CompactNamespaces: 'false' 18 | ConstructorInitializerAllOnOneLineOrOnePerLine: 'true' 19 | Cpp11BracedListStyle: 'true' 20 | DerivePointerAlignment: 'false' 21 | FixNamespaceComments: 'true' 22 | IndentWidth: '4' 23 | Language: Cpp 24 | MaxEmptyLinesToKeep: '1' 25 | NamespaceIndentation: All 26 | PointerAlignment: Left 27 | SortIncludes: 'false' 28 | SortUsingDeclarations: 'false' 29 | SpaceAfterCStyleCast: 'false' 30 | SpaceAfterTemplateKeyword: 'false' 31 | SpaceBeforeCpp11BracedList: 'false' 32 | Standard: Cpp11 33 | 34 | ... 35 | -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.15) 2 | project(sampapi VERSION 1.2.0 LANGUAGES CXX) 3 | 4 | add_library(sampapi) 5 | add_library(BlastHack::sampapi ALIAS sampapi) 6 | add_subdirectory(src/sampapi) 7 | add_subdirectory(include/sampapi) 8 | 9 | get_target_property(SOURCES sampapi SOURCES) 10 | source_group(TREE "${CMAKE_CURRENT_SOURCE_DIR}" FILES ${SOURCES}) 11 | 12 | target_compile_features(sampapi PRIVATE cxx_std_11) 13 | target_include_directories(sampapi 14 | PUBLIC 15 | $ 16 | $ 17 | PRIVATE 18 | ${CMAKE_CURRENT_SOURCE_DIR}/src 19 | ) 20 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 LUCHARE 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R1/Animation.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R1) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V037R1 15 | 16 | struct SAMPAPI_EXPORT Animation { 17 | union { 18 | struct { 19 | unsigned short m_nId : 16; 20 | unsigned char m_nFramedelta : 8; 21 | unsigned char m_nLoopA : 1; 22 | unsigned char m_nLockX : 1; 23 | unsigned char m_nLockY : 1; 24 | unsigned char m_nLockF : 1; 25 | unsigned char m_nTime : 2; 26 | }; 27 | int m_value; 28 | }; 29 | }; 30 | 31 | SAMPAPI_END_PACKED 32 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R1/CActorPool.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R1) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/0.3.7-R1/CActor.h" 14 | #include "sampapi/CVector.h" 15 | 16 | SAMPAPI_BEGIN_PACKED_V037R1 17 | 18 | struct SAMPAPI_EXPORT ActorInfo { 19 | ID m_nId; 20 | int m_nModel; 21 | CVector m_position; 22 | float m_fRotation; 23 | float m_fHealth; 24 | bool m_bInvulnerable; 25 | }; 26 | 27 | class SAMPAPI_EXPORT CActorPool { 28 | public: 29 | enum { MAX_ACTORS = 1000 }; 30 | 31 | int m_nLargestId; 32 | CActor* m_pObject[MAX_ACTORS]; 33 | BOOL m_bNotEmpty[MAX_ACTORS]; 34 | ::CPed* m_pGameObject[MAX_ACTORS]; 35 | int pad_2ee4[MAX_ACTORS]; 36 | int pad_3e84[MAX_ACTORS]; 37 | 38 | CActorPool(); 39 | ~CActorPool(); 40 | 41 | CActor* Get(ID nId); 42 | BOOL DoesExist(ID nId); 43 | void UpdateLargestId(); 44 | BOOL Delete(ID nId); 45 | BOOL Create(const ActorInfo* pInfo); 46 | ID Find(::CPed* pPed); 47 | }; 48 | 49 | SAMPAPI_END_PACKED 50 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R1/CAudio.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R1) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/CVector.h" 14 | 15 | SAMPAPI_BEGIN_PACKED_V037R1 16 | 17 | class SAMPAPI_EXPORT CAudio { 18 | public: 19 | enum { SOUND_OFF = 0 }; 20 | 21 | BOOL m_bSoundLoaded; 22 | 23 | CAudio() { 24 | m_bSoundLoaded = 0; 25 | } 26 | 27 | ~CAudio() { 28 | Play(SOUND_OFF); 29 | } 30 | 31 | void Play(int nSound, CVector location = {}); 32 | void StartRadio(unsigned char nStation); 33 | float GetRadioVolume(); 34 | }; 35 | 36 | SAMPAPI_END_PACKED 37 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R1/CChatBubble.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R1) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V037R1 15 | 16 | class SAMPAPI_EXPORT CChatBubble { 17 | public: 18 | struct SAMPAPI_EXPORT Player { 19 | BOOL m_bExists; 20 | char m_szText[256]; 21 | int m_creationTick; 22 | int m_lifeSpan; 23 | D3DCOLOR m_color; 24 | float m_fDrawDistance; 25 | int m_nMaxLineLength; 26 | } m_player[1004]; 27 | 28 | CChatBubble(); 29 | 30 | void Add(ID nPlayer, const char* szText, D3DCOLOR color, float fDrawDistance, int lifeSpan); 31 | void Draw(); 32 | }; 33 | 34 | SAMPAPI_EXPORT SAMPAPI_VAR CChatBubble*& RefChatBubble(); 35 | 36 | SAMPAPI_END_PACKED 37 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R1/CGangZonePool.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R1) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V037R1 15 | 16 | struct SAMPAPI_EXPORT GangZone { 17 | struct SAMPAPI_EXPORT { 18 | float left; 19 | float bottom; 20 | float right; 21 | float top; 22 | } m_rect; 23 | D3DCOLOR m_color; 24 | D3DCOLOR m_altColor; 25 | }; 26 | 27 | class SAMPAPI_EXPORT CGangZonePool { 28 | public: 29 | enum { MAX_GANGZONES = 1024 }; 30 | 31 | GangZone* m_pObject[MAX_GANGZONES]; 32 | BOOL m_bNotEmpty[MAX_GANGZONES]; 33 | 34 | CGangZonePool(); 35 | ~CGangZonePool(); 36 | 37 | void Create(ID nId, float left, float top, float right, float bottom, D3DCOLOR color); 38 | void StartFlashing(ID nId, D3DCOLOR color); 39 | void StopFlashing(ID nId); 40 | void Delete(ID nId); 41 | void Draw(); 42 | }; 43 | 44 | SAMPAPI_END_PACKED 45 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R1/CHelpDialog.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R1) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V037R1 15 | 16 | class SAMPAPI_EXPORT CHelpDialog { 17 | public: 18 | IDirect3DDevice9* m_pDevice; 19 | 20 | CHelpDialog(IDirect3DDevice9* pDevice = SAMPAPI_UNUSED); 21 | 22 | void Show(); 23 | }; 24 | 25 | SAMPAPI_EXPORT SAMPAPI_VAR CHelpDialog*& RefHelpDialog(); 26 | 27 | SAMPAPI_END_PACKED 28 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R1/CLabel.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R1) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/CVector.h" 14 | 15 | SAMPAPI_BEGIN_PACKED_V037R1 16 | 17 | class SAMPAPI_EXPORT CLabel { 18 | public: 19 | IDirect3DDevice9* m_pDevice; 20 | ID3DXSprite* m_pSprite; 21 | 22 | CLabel(IDirect3DDevice9* pDevice); 23 | ~CLabel(); 24 | 25 | void OnLostDevice(); 26 | void OnResetDevice(); 27 | BOOL HasNoObstacles(CVector position); 28 | void Begin(); 29 | void End(); 30 | void Draw(CVector* pPosition, const char* szText, D3DCOLOR color, BOOL bShadow, bool bNoObstacles); 31 | }; 32 | 33 | SAMPAPI_EXPORT SAMPAPI_VAR CLabel*& RefLabel(); 34 | 35 | SAMPAPI_END_PACKED 36 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R1/CLabelPool.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R1) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/CVector.h" 14 | 15 | SAMPAPI_BEGIN_PACKED_V037R1 16 | 17 | struct SAMPAPI_EXPORT TextLabel { 18 | char* m_pText; 19 | D3DCOLOR m_color; 20 | CVector m_position; 21 | float m_fDrawDistance; 22 | bool m_bBehindWalls; 23 | ID m_nAttachedToPlayer; 24 | ID m_nAttachedToVehicle; 25 | }; 26 | 27 | class SAMPAPI_EXPORT CLabelPool { 28 | public: 29 | enum { MAX_TEXT_LABELS = 2048 }; 30 | 31 | TextLabel m_object[MAX_TEXT_LABELS]; 32 | BOOL m_bNotEmpty[MAX_TEXT_LABELS]; 33 | 34 | CLabelPool(); 35 | ~CLabelPool(); 36 | 37 | void Create(ID nId, const char* szText, D3DCOLOR color, CVector position, float fDrawDistance, bool bBehindWalls, ID nAttachedToPlayer, ID nAttachedToVehicle); 38 | BOOL Delete(ID nId); 39 | void Draw(); 40 | }; 41 | 42 | SAMPAPI_END_PACKED 43 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R1/CLicensePlate.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R1) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V037R1 15 | 16 | class SAMPAPI_EXPORT CLicensePlate { 17 | public: 18 | static constexpr auto DEFAULT_PLATE_FONT = "Arial"; 19 | static constexpr auto DEFAULT_PLATE_TEXT = "XYZSR998"; 20 | enum { 21 | DEFAULT_PLATE_TEXT_COLOR = 0xEE444470, 22 | DEFAULT_PLATE_BG_COLOR = 0xFFBEB6A8, 23 | }; 24 | 25 | IDirect3DDevice9* m_pDevice; 26 | ID3DXRenderToSurface* m_pRenderer; 27 | IDirect3DTexture9* m_pTexture; 28 | IDirect3DSurface9* m_pSurface; 29 | #ifdef _d3d9TYPES_H_ 30 | D3DDISPLAYMODE m_displayMode; 31 | #else 32 | unsigned int m_displayMode[4]; 33 | #endif 34 | IDirect3DTexture9* m_pDefaultPlate; 35 | 36 | CLicensePlate(IDirect3DDevice9* pDevice); 37 | ~CLicensePlate(); 38 | 39 | void OnLostDevice(); 40 | void OnResetDevice(); 41 | IDirect3DTexture9* Create(const char* szText); 42 | }; 43 | 44 | SAMPAPI_EXPORT SAMPAPI_VAR CLicensePlate*& RefLicensePlateManager(); 45 | 46 | SAMPAPI_END_PACKED 47 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R1/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | target_sources(sampapi 2 | PRIVATE 3 | AimStuff.h 4 | Animation.h 5 | CActor.h 6 | CActorPool.h 7 | CAudio.h 8 | CAudioStream.h 9 | CCamera.h 10 | CChat.h 11 | CConfig.h 12 | CDeathWindow.h 13 | CDialog.h 14 | CEntity.h 15 | CFonts.h 16 | CGame.h 17 | CGangZonePool.h 18 | CHttpClient.h 19 | CInput.h 20 | CLabel.h 21 | CLabelPool.h 22 | CLicensePlate.h 23 | CLocalPlayer.h 24 | CMenu.h 25 | CMenuPool.h 26 | CNetGame.h 27 | CNetStats.h 28 | CObject.h 29 | CObjectPool.h 30 | CObjectSelection.h 31 | Commands.h 32 | ControllerState.h 33 | CPed.h 34 | CPickupPool.h 35 | CPlayerInfo.h 36 | CPlayerPool.h 37 | CPlayerTags.h 38 | CRemotePlayer.h 39 | CScoreboard.h 40 | CSpawnScreen.h 41 | CTextDraw.h 42 | CTextDrawPool.h 43 | CTextDrawSelection.h 44 | CVehicle.h 45 | CVehiclePool.h 46 | Debug.h 47 | DebugScript.h 48 | Exception.h 49 | GUI.h 50 | InputHandler.h 51 | KeyStuff.h 52 | RPC.h 53 | Scripting.h 54 | Settings.h 55 | SpecialAction.h 56 | Synchronization.h 57 | VehicleSelection.h 58 | CChatBubble.h 59 | CHelpDialog.h 60 | CObjectMaterialText.h 61 | CSrvNetStats.h 62 | CObjectEdit.h 63 | ) 64 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R1/CMenuPool.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R1) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/0.3.7-R1/CMenu.h" 14 | 15 | SAMPAPI_BEGIN_PACKED_V037R1 16 | 17 | class SAMPAPI_EXPORT CMenuPool { 18 | public: 19 | enum { MAX_MENUS = 128 }; 20 | 21 | CMenu* m_pObject[MAX_MENUS]; 22 | BOOL m_bNotEmpty[MAX_MENUS]; 23 | unsigned char m_nCurrent; 24 | bool m_bCanceled; 25 | 26 | CMenuPool(); 27 | ~CMenuPool(); 28 | 29 | CMenu* Create(NUMBER nId, const char* szTitle, float fX, float fY, char nColumns, float fFirstColumnWidth, float fSecondColumnWidth, const CMenu::Interaction* pInteraction); 30 | BOOL Delete(NUMBER nId); 31 | void Show(NUMBER nId); 32 | void Hide(NUMBER nId); 33 | char* GetTextPointer(const char* szName); 34 | void Process(); 35 | }; 36 | 37 | SAMPAPI_END_PACKED 38 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R1/CNetStats.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R1) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V037R1 15 | 16 | class SAMPAPI_EXPORT CNetStats { 17 | public: 18 | unsigned long m_dwLastTotalBytesSent; 19 | unsigned long m_dwLastTotalBytesRecv; 20 | unsigned long m_dwLastUpdateTick; 21 | unsigned long m_dwBPSUpload; 22 | unsigned long m_dwBPSDownload; 23 | IDirect3DDevice9* m_pDevice; 24 | 25 | CNetStats(IDirect3DDevice9* pDevice); 26 | 27 | void Draw(); 28 | }; 29 | 30 | SAMPAPI_EXPORT SAMPAPI_VAR CNetStats*& RefNetStats(); 31 | 32 | SAMPAPI_END_PACKED 33 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R1/CObjectMaterialText.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R1) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V037R1 15 | 16 | class SAMPAPI_EXPORT CObjectMaterialText { 17 | public: 18 | IDirect3DDevice9* m_pDevice; 19 | ID3DXSprite* m_pSprite; 20 | ID3DXSprite* m_pSprite_0; // maybe unused 21 | 22 | CObjectMaterialText(IDirect3DDevice9* pDevice); 23 | ~CObjectMaterialText(); 24 | 25 | void OnResetDevice(); 26 | void OnLostDevice(); 27 | IDirect3DTexture9* Create(const char* szText, const char* szFont, char nFontSize, int nBgSizeX, int nBgSizeY, D3DCOLOR fontColor, D3DCOLOR bgColor, bool bBold, char align); 28 | }; 29 | 30 | SAMPAPI_EXPORT SAMPAPI_VAR CObjectMaterialText*& RefObjectMaterialTextManager(); 31 | 32 | SAMPAPI_END_PACKED 33 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R1/CObjectPool.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R1) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/0.3.7-R1/CObject.h" 14 | 15 | class CObject; 16 | 17 | SAMPAPI_BEGIN_PACKED_V037R1 18 | 19 | class SAMPAPI_EXPORT CObjectPool { 20 | public: 21 | enum { MAX_OBJECTS = 1000 }; 22 | 23 | int m_nLargestId; 24 | BOOL m_bNotEmpty[MAX_OBJECTS]; 25 | CObject* m_pObject[MAX_OBJECTS]; 26 | 27 | static SAMPAPI_EXPORT SAMPAPI_VAR TICK& RefLastProcess(); 28 | 29 | CObjectPool(); 30 | ~CObjectPool(); 31 | 32 | void UpdateLargestId(); 33 | int GetCount(); 34 | BOOL Delete(ID nId); 35 | BOOL Create(ID nId, int nModel, CVector position, CVector rotation, float fDrawDistance); 36 | CObject* Find(::CObject* pGameObject); 37 | int GetId(::CObject* pGameObject); 38 | void Process(); 39 | void ConstructMaterials(); 40 | void ShutdownMaterials(); 41 | void Draw(); 42 | void DrawLast(); 43 | CObject* Get(ID nId); 44 | }; 45 | 46 | SAMPAPI_END_PACKED 47 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R1/CObjectSelection.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R1) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V037R1 15 | 16 | class SAMPAPI_EXPORT CObjectSelection { 17 | public: 18 | BOOL m_bIsActive; 19 | ID m_nHoveredObject; 20 | 21 | CObjectSelection(); 22 | 23 | ID DefineObject(); 24 | void DrawLabels(); 25 | void Enable(BOOL bEnable); 26 | void Draw(); 27 | void SendNotification(); 28 | BOOL MsgProc(int uMsg, int wParam, int lParam); 29 | }; 30 | 31 | SAMPAPI_EXPORT SAMPAPI_VAR CObjectSelection*& RefObjectSelection(); 32 | 33 | SAMPAPI_END_PACKED 34 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R1/CPlayerInfo.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R1) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/0.3.7-R1/CRemotePlayer.h" 14 | #include 15 | 16 | SAMPAPI_BEGIN_PACKED_V037R1 17 | 18 | class SAMPAPI_EXPORT CPlayerInfo { 19 | public: 20 | CRemotePlayer* m_pPlayer; 21 | BOOL m_bIsNPC; 22 | #ifndef _DEBUG 23 | private: 24 | unsigned int __align; 25 | 26 | public: 27 | #endif 28 | std::string m_szNick; 29 | int m_nScore; 30 | unsigned int m_nPing; 31 | 32 | CPlayerInfo(const char* szName, BOOL bIsNPC); 33 | ~CPlayerInfo(); 34 | }; 35 | 36 | SAMPAPI_END_PACKED 37 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R1/CPlayerTags.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R1) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/CVector.h" 14 | 15 | SAMPAPI_BEGIN_PACKED_V037R1 16 | 17 | class SAMPAPI_EXPORT CPlayerTags { 18 | public: 19 | IDirect3DDevice9* m_pDevice; 20 | IDirect3DStateBlock9* m_pStates; 21 | ID3DXSprite* m_pSprite; 22 | 23 | CPlayerTags(IDirect3DDevice9* pDevice); 24 | ~CPlayerTags(); 25 | 26 | void EndHealthBar(); 27 | void BeginLabel(); 28 | void EndLabel(); 29 | void DrawLabel(CVector* pPosition, const char* szText, D3DCOLOR color, float fDistanceToCamera, bool bDrawStatus, int nStatus); 30 | void DrawHealthBar(CVector* pPosition, float fHealth, float fArmour, float fDistanceToCamera); 31 | void OnLostDevice(); 32 | void OnResetDevice(); 33 | void BeginHealthBar(); 34 | }; 35 | 36 | SAMPAPI_EXPORT SAMPAPI_VAR CPlayerTags*& RefPlayerTags(); 37 | 38 | SAMPAPI_END_PACKED 39 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R1/CScoreboard.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R1) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/CRect.h" 14 | 15 | SAMPAPI_BEGIN_PACKED_V037R1 16 | 17 | class SAMPAPI_EXPORT CScoreboard { 18 | public: 19 | BOOL m_bIsEnabled; 20 | int m_nPlayerCount; 21 | float m_position[2]; 22 | float m_fScalar; 23 | float m_size[2]; 24 | float pad[5]; 25 | IDirect3DDevice9* m_pDevice; 26 | CDXUTDialog* m_pDialog; 27 | CDXUTListBox* m_pListBox; 28 | int m_nCurrentOffset; 29 | BOOL m_bIsSorted; 30 | 31 | CScoreboard(IDirect3DDevice9* pDevice); 32 | 33 | void Recalc(); 34 | void GetRect(CRect* pRect); 35 | void Close(bool bHideCursor); 36 | void ResetDialogControls(CDXUTDialog* pDialog); 37 | void SendNotification(); 38 | void UpdateList(); 39 | void Draw(); 40 | void Enable(); 41 | }; 42 | 43 | SAMPAPI_EXPORT SAMPAPI_VAR CScoreboard*& RefScoreboard(); 44 | 45 | SAMPAPI_END_PACKED 46 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R1/CSpawnScreen.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R1) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/0.3.7-R1/CFonts.h" 14 | 15 | SAMPAPI_BEGIN_PACKED_V037R1 16 | 17 | class SAMPAPI_EXPORT CSpawnScreen { 18 | public: 19 | BOOL m_bEnabled; 20 | char* m_szSpawnText; 21 | CFonts* m_pFont; 22 | IDirect3DDevice9* m_pDevice; 23 | IDirect3DTexture9* m_pTexture; 24 | IDirect3DStateBlock9* m_pStateBlockSaved; 25 | IDirect3DStateBlock9* m_pStateBlockDraw; 26 | void* m_pSprite; 27 | 28 | CSpawnScreen(IDirect3DDevice9* pDevice); 29 | ~CSpawnScreen(); 30 | 31 | void SetText(const char* szString); 32 | void OnResetDevice(); 33 | void OnLostDevice(); 34 | void Draw(); 35 | }; 36 | 37 | SAMPAPI_EXPORT SAMPAPI_VAR CSpawnScreen*& RefSpawnScreen(); 38 | 39 | SAMPAPI_END_PACKED 40 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R1/CSrvNetStats.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R1) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V037R1 15 | 16 | class SAMPAPI_EXPORT CSrvNetStats { 17 | public: 18 | unsigned long m_dwLastTotalBytesSent; 19 | unsigned long m_dwLastTotalBytesRecv; 20 | unsigned long m_dwLastUpdateTick; 21 | unsigned long m_dwBPSUpload; 22 | unsigned long m_dwBPSDownload; 23 | IDirect3DDevice9* m_pDevice; 24 | 25 | CSrvNetStats(IDirect3DDevice9* pDevice); 26 | 27 | void Draw(); 28 | }; 29 | 30 | SAMPAPI_EXPORT SAMPAPI_VAR CSrvNetStats*& RefServerNetStatistics(); 31 | 32 | SAMPAPI_END_PACKED 33 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R1/CTextDrawPool.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R1) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/0.3.7-R1/CTextDraw.h" 14 | 15 | SAMPAPI_BEGIN_PACKED_V037R1 16 | 17 | class SAMPAPI_EXPORT CTextDrawPool { 18 | public: 19 | enum { 20 | MAX_TEXTDRAWS = 2048, 21 | MAX_LOCAL_TEXTDRAWS = 256, 22 | }; 23 | 24 | BOOL m_bNotEmpty[MAX_TEXTDRAWS + MAX_LOCAL_TEXTDRAWS]; 25 | CTextDraw* m_pObject[MAX_TEXTDRAWS + MAX_LOCAL_TEXTDRAWS]; 26 | 27 | CTextDrawPool(); 28 | ~CTextDrawPool(); 29 | 30 | void Delete(ID nId); 31 | void Draw(); 32 | CTextDraw* Create(int nId, CTextDraw::Transmit* pData, const char* szText); 33 | }; 34 | 35 | SAMPAPI_END_PACKED 36 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R1/CTextDrawSelection.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R1) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V037R1 15 | 16 | class SAMPAPI_EXPORT CTextDrawSelection { 17 | public: 18 | BOOL m_bIsActive; 19 | D3DCOLOR m_hoveredColor; 20 | ID m_nHoveredId; 21 | 22 | CTextDrawSelection() { 23 | m_bIsActive = false; 24 | m_hoveredColor = -1; 25 | m_nHoveredId = -1; 26 | } 27 | 28 | ~CTextDrawSelection() { 29 | if (m_bIsActive) 30 | ResetTextDraws(); 31 | } 32 | 33 | void ResetTextDraws(); 34 | void RawProcess(); 35 | void Process(); 36 | void Enable(D3DCOLOR hoveredColor); 37 | void SendNotification(); 38 | void Disable(); 39 | BOOL MsgProc(int uMsg, int wParam, int lParam); 40 | }; 41 | 42 | SAMPAPI_EXPORT SAMPAPI_VAR CTextDrawSelection*& RefTextDrawSelection(); 43 | 44 | SAMPAPI_END_PACKED 45 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R1/Debug.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R1) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V037R1 15 | 16 | namespace Debug { 17 | enum { DEBUG_MODE_VEHICLE_SELECTION = 10 }; 18 | 19 | SAMPAPI_EXPORT SAMPAPI_VAR int& RefMode(); 20 | SAMPAPI_EXPORT SAMPAPI_VAR void*& RefFirstEntity(); 21 | SAMPAPI_EXPORT SAMPAPI_VAR void*& RefSecondEntity(); 22 | 23 | SAMPAPI_EXPORT void SetProperties(void* pFirstEntity, void* pSecondEntity, int nMode); 24 | SAMPAPI_EXPORT void Disable(); 25 | } // namespace Debug 26 | 27 | SAMPAPI_END_PACKED 28 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R1/Exception.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R1) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V037R1 15 | 16 | namespace Exception { 17 | enum { MAX_EXCEPTIONS = 9 }; 18 | 19 | SAMPAPI_EXPORT SAMPAPI_VAR int& RefCount(); 20 | SAMPAPI_EXPORT SAMPAPI_VAR void*& RefContextRecord(); // PCONTEXT 21 | SAMPAPI_EXPORT SAMPAPI_VAR char* ArrayCrashDialogText(); // [16384] 22 | 23 | SAMPAPI_EXPORT BOOL Print(int nCode, void* pExceptionPointers, const char* szWarning); 24 | SAMPAPI_EXPORT void SendCrashReport(); 25 | SAMPAPI_EXPORT BOOL CrashDialogProc(void* hWnd, unsigned int uMsg, unsigned int wParam, long lParam); 26 | SAMPAPI_EXPORT void ConstructCrashDialogText(BOOL bModules); 27 | SAMPAPI_EXPORT long Handler(void* pExceptionPointers); 28 | } // namespace Exception 29 | 30 | SAMPAPI_END_PACKED 31 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R1/InputHandler.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R1) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_V037R1 15 | 16 | void SwitchWindowedMode(); 17 | 18 | namespace InputHandler { 19 | enum { MAX_ANTICHEAT_DETECT_COUNT = 0xA }; 20 | 21 | SAMPAPI_EXPORT SAMPAPI_VAR void*& RefPrevWindowProc(); 22 | SAMPAPI_EXPORT SAMPAPI_VAR unsigned int& RefAntiCheatDetectCount(); 23 | 24 | SAMPAPI_EXPORT int WindowProc(unsigned int uMsg, unsigned int wParam, long lParam); 25 | SAMPAPI_EXPORT BOOL KeyPressHandler(unsigned int nKey); 26 | SAMPAPI_EXPORT BOOL CharInputHandler(unsigned int nChar); 27 | SAMPAPI_EXPORT BOOL Initialize(); 28 | } // namespace InputHandler 29 | 30 | SAMPAPI_END 31 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R1/Settings.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R1) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V037R1 15 | 16 | struct SAMPAPI_EXPORT Settings { 17 | enum { SETTINGS_STRING_LEN = 256 }; 18 | 19 | BOOL m_bDebugMode; // -d 20 | BOOL m_bOnlineGame; // -c 21 | BOOL m_bWindowedMode; // unused 22 | char m_szPass[SETTINGS_STRING_LEN + 1]; // -z 23 | char m_szHost[SETTINGS_STRING_LEN + 1]; // -h 24 | char m_szPort[SETTINGS_STRING_LEN + 1]; // -p 25 | char m_szNick[SETTINGS_STRING_LEN + 1]; // -n 26 | char m_szDebugScript[SETTINGS_STRING_LEN + 1]; // -l 27 | 28 | static void Initialize(); 29 | static void GetFromCommandLine(const char* szLine, char* szString); 30 | static void GetFromQuotes(const char* szLine, char* szString); 31 | }; 32 | 33 | SAMPAPI_EXPORT SAMPAPI_VAR Settings& RefSettings(); 34 | 35 | SAMPAPI_END_PACKED 36 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R1/SpecialAction.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R1) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_V037R1 15 | 16 | enum SpecialAction { 17 | SPECIAL_ACTION_NONE, 18 | SPECIAL_ACTION_DUCK, 19 | SPECIAL_ACTION_USEJETPACK, 20 | SPECIAL_ACTION_ENTER_VEHICLE, 21 | SPECIAL_ACTION_EXIT_VEHICLE, 22 | SPECIAL_ACTION_DANCE1, 23 | SPECIAL_ACTION_DANCE2, 24 | SPECIAL_ACTION_DANCE3, 25 | SPECIAL_ACTION_DANCE4, 26 | SPECIAL_ACTION_HANDSUP, 27 | SPECIAL_ACTION_USECELLPHONE, 28 | SPECIAL_ACTION_SITTING, 29 | SPECIAL_ACTION_STOPUSECELLPHONE, 30 | SPECIAL_ACTION_DRINK_BEER = 20, 31 | SPECIAL_ACTION_SMOKE_CIGGY, 32 | SPECIAL_ACTION_DRINK_WINE, 33 | SPECIAL_ACTION_DRINK_SPRUNK, 34 | SPECIAL_ACTION_CUFFED, 35 | SPECIAL_ACTION_CARRY, 36 | SPECIAL_ACTION_URINATING = 68 37 | }; 38 | 39 | SAMPAPI_END 40 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R1/VehicleSelection.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R1) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/0.3.7-R1/CVehicle.h" 14 | #include "sampapi/0.3.7-R1/CCamera.h" 15 | #include "sampapi/0.3.7-R1/KeyStuff.h" 16 | 17 | SAMPAPI_BEGIN_PACKED_V037R1 18 | 19 | namespace VehicleSelection { 20 | SAMPAPI_EXPORT SAMPAPI_VAR CCamera*& RefCamera(); 21 | SAMPAPI_EXPORT SAMPAPI_VAR CVehicle*& RefVehicle(); 22 | SAMPAPI_EXPORT SAMPAPI_VAR CPad*& RefControls(); 23 | SAMPAPI_EXPORT SAMPAPI_VAR BOOL& RefInitialized(); 24 | SAMPAPI_EXPORT SAMPAPI_VAR int& RefSelectedModel(); 25 | 26 | SAMPAPI_EXPORT void ResetVehicle(); 27 | SAMPAPI_EXPORT void Process(); 28 | } // namespace VehicleSelection 29 | 30 | SAMPAPI_END_PACKED 31 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R3-1/Animation.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R3) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V037R3_1 15 | 16 | struct SAMPAPI_EXPORT Animation { 17 | union { 18 | struct { 19 | unsigned short m_nId : 16; 20 | unsigned char m_nFramedelta : 8; 21 | unsigned char m_nLoopA : 1; 22 | unsigned char m_nLockX : 1; 23 | unsigned char m_nLockY : 1; 24 | unsigned char m_nLockF : 1; 25 | unsigned char m_nTime : 2; 26 | }; 27 | int m_value; 28 | }; 29 | }; 30 | 31 | SAMPAPI_END_PACKED 32 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R3-1/CActor.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R3) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/0.3.7-R3-1/CEntity.h" 14 | 15 | class CPed; 16 | 17 | SAMPAPI_BEGIN_PACKED_V037R3_1 18 | 19 | class SAMPAPI_EXPORT CActor : public CEntity { 20 | public: 21 | // void **m_lpVtbl = 0xEC298; 22 | ::CPed* m_pGamePed; 23 | GTAREF m_marker; 24 | GTAREF m_arrow; 25 | bool m_bNeedsToCreateMarker; 26 | bool m_bInvulnerable; 27 | 28 | CActor(int nModel, CVector position, float fRotation); 29 | virtual ~CActor() = 0; 30 | 31 | void Destroy(); 32 | void PerformAnimation(const char* szAnim, const char* szIFP, float fFramedelta, int bLockA, int bLockX, int bLockY, int bLockF, int nTime); 33 | void SetRotation(float fAngle); 34 | float GetHealth(); 35 | void SetHealth(float fAngle); 36 | void SetInvulnerable(bool bEnable); 37 | }; 38 | 39 | SAMPAPI_END_PACKED 40 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R3-1/CActorPool.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R3) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/CVector.h" 14 | #include "sampapi/0.3.7-R3-1/CActor.h" 15 | 16 | SAMPAPI_BEGIN_PACKED_V037R3_1 17 | 18 | struct SAMPAPI_EXPORT ActorInfo { 19 | ID m_nId; 20 | int m_nModel; 21 | CVector m_position; 22 | float m_fRotation; 23 | float m_fHealth; 24 | bool m_bInvulnerable; 25 | }; 26 | 27 | class SAMPAPI_EXPORT CActorPool { 28 | public: 29 | enum { MAX_ACTORS = 1000 }; 30 | 31 | int m_nLargestId; 32 | CActor* m_pObject[MAX_ACTORS]; 33 | BOOL m_bNotEmpty[MAX_ACTORS]; 34 | ::CPed* m_pGameObject[MAX_ACTORS]; 35 | int pad_2ee4[MAX_ACTORS]; 36 | int pad_3e84[MAX_ACTORS]; 37 | 38 | CActorPool(); 39 | ~CActorPool(); 40 | 41 | CActor* Get(ID nId); 42 | BOOL DoesExist(ID nId); 43 | void UpdateLargestId(); 44 | BOOL Delete(ID nId); 45 | ID Find(::CPed* pGamePed); 46 | BOOL Create(ActorInfo* pInfo); 47 | }; 48 | 49 | SAMPAPI_END_PACKED 50 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R3-1/CAudio.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R3) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/CVector.h" 14 | 15 | SAMPAPI_BEGIN_PACKED_V037R3_1 16 | 17 | class SAMPAPI_EXPORT CAudio { 18 | public: 19 | enum SoundId { 20 | SOUND_OFF = 0, 21 | SOUND_DISABLE_OUTDOOR_AMBIENCE_TRACK = 1, 22 | }; 23 | 24 | BOOL m_bSoundLoaded; 25 | bool m_bOutdoorAmbienceTrackDisabled; 26 | 27 | CAudio() { 28 | m_bSoundLoaded = false; 29 | m_bOutdoorAmbienceTrackDisabled = false; 30 | } 31 | 32 | ~CAudio() { 33 | Play(SOUND_OFF); 34 | } 35 | 36 | int GetRadioStation(); 37 | void StartRadio(int nStation); 38 | void StopRadio(); 39 | float GetRadioVolume(); 40 | void StopOutdoorAmbienceTrack(); 41 | void SetOutdoorAmbienceTrack(int nSound); 42 | void Play(int nSound, CVector location = {}); 43 | bool IsOutdoorAmbienceTrackDisabled(); 44 | }; 45 | 46 | SAMPAPI_END_PACKED 47 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R3-1/CChatBubble.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R3) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V037R3_1 15 | 16 | class SAMPAPI_EXPORT CChatBubble { 17 | public: 18 | struct SAMPAPI_EXPORT Player { 19 | BOOL m_bExists; 20 | char m_szText[256]; 21 | int m_creationTick; 22 | int m_lifeSpan; 23 | D3DCOLOR m_color; 24 | float m_fDrawDistance; 25 | int m_nMaxLineLength; 26 | } m_player[1004]; 27 | 28 | CChatBubble(); 29 | 30 | void Add(ID nPlayer, const char* szText, D3DCOLOR color, float fDrawDistance, int lifeSpan); 31 | void Draw(); 32 | }; 33 | 34 | SAMPAPI_EXPORT SAMPAPI_VAR CChatBubble*& RefChatBubble(); 35 | 36 | SAMPAPI_END_PACKED 37 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R3-1/CGangZonePool.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R3) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V037R3_1 15 | 16 | struct SAMPAPI_EXPORT GangZone { 17 | struct SAMPAPI_EXPORT { 18 | float left; 19 | float bottom; 20 | float right; 21 | float top; 22 | } m_rect; 23 | D3DCOLOR m_color; 24 | D3DCOLOR m_altColor; 25 | }; 26 | 27 | class SAMPAPI_EXPORT CGangZonePool { 28 | public: 29 | enum { MAX_GANGZONES = 1024 }; 30 | 31 | GangZone* m_pObject[MAX_GANGZONES]; 32 | BOOL m_bNotEmpty[MAX_GANGZONES]; 33 | 34 | CGangZonePool(); 35 | ~CGangZonePool(); 36 | 37 | void Create(ID nId, float left, float top, float right, float bottom, D3DCOLOR color); 38 | void StartFlashing(ID nId, D3DCOLOR color); 39 | void StopFlashing(ID nId); 40 | void Delete(ID nId); 41 | void Draw(); 42 | }; 43 | 44 | SAMPAPI_END_PACKED 45 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R3-1/CHelpDialog.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R3) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V037R3_1 15 | 16 | class SAMPAPI_EXPORT CHelpDialog { 17 | public: 18 | IDirect3DDevice9* m_pDevice; 19 | 20 | CHelpDialog(IDirect3DDevice9* pDevice = SAMPAPI_UNUSED); 21 | 22 | void Show(); 23 | }; 24 | 25 | SAMPAPI_EXPORT SAMPAPI_VAR CHelpDialog*& RefHelpDialog(); 26 | 27 | SAMPAPI_END_PACKED 28 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R3-1/CLabel.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R3) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/CVector.h" 14 | 15 | SAMPAPI_BEGIN_PACKED_V037R3_1 16 | 17 | class SAMPAPI_EXPORT CLabel { 18 | public: 19 | IDirect3DDevice9* m_pDevice; 20 | ID3DXSprite* m_pSprite; 21 | 22 | CLabel(IDirect3DDevice9* pDevice); 23 | ~CLabel(); 24 | 25 | void OnLostDevice(); 26 | void OnResetDevice(); 27 | BOOL HasNoObstacles(CVector position); 28 | void Begin(); 29 | void End(); 30 | void Draw(CVector* pPosition, const char* szText, D3DCOLOR color, BOOL bShadow, bool bNoObstacles); 31 | }; 32 | 33 | SAMPAPI_EXPORT SAMPAPI_VAR CLabel*& RefLabel(); 34 | 35 | SAMPAPI_END_PACKED 36 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R3-1/CLabelPool.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R3) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/CVector.h" 14 | 15 | SAMPAPI_BEGIN_PACKED_V037R3_1 16 | 17 | struct SAMPAPI_EXPORT TextLabel { 18 | char* m_pText; 19 | D3DCOLOR m_color; 20 | CVector m_position; 21 | float m_fDrawDistance; 22 | bool m_bBehindWalls; 23 | ID m_nAttachedToPlayer; 24 | ID m_nAttachedToVehicle; 25 | }; 26 | 27 | class SAMPAPI_EXPORT CLabelPool { 28 | public: 29 | enum { MAX_TEXT_LABELS = 2048 }; 30 | 31 | TextLabel m_object[MAX_TEXT_LABELS]; 32 | BOOL m_bNotEmpty[MAX_TEXT_LABELS]; 33 | 34 | CLabelPool(); 35 | ~CLabelPool(); 36 | 37 | void Create(ID nId, const char* szText, D3DCOLOR color, CVector position, float fDrawDistance, bool bBehindWalls, ID nAttachedToPlayer, ID nAttachedToVehicle); 38 | BOOL Delete(ID nId); 39 | void Draw(); 40 | }; 41 | 42 | SAMPAPI_END_PACKED 43 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R3-1/CLicensePlate.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R3) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V037R3_1 15 | 16 | class SAMPAPI_EXPORT CLicensePlate { 17 | public: 18 | static constexpr auto DEFAULT_PLATE_FONT = "Arial"; 19 | static constexpr auto DEFAULT_PLATE_TEXT = "XYZSR998"; 20 | enum { 21 | DEFAULT_PLATE_TEXT_COLOR = 0xEE444470, 22 | DEFAULT_PLATE_BG_COLOR = 0xFFBEB6A8, 23 | }; 24 | 25 | IDirect3DDevice9* m_pDevice; 26 | ID3DXRenderToSurface* m_pRenderer; 27 | IDirect3DTexture9* m_pTexture; 28 | IDirect3DSurface9* m_pSurface; 29 | #ifdef _d3d9TYPES_H_ 30 | D3DDISPLAYMODE m_displayMode; 31 | #else 32 | unsigned int m_displayMode[4]; 33 | #endif 34 | IDirect3DTexture9* m_pDefaultPlate; 35 | 36 | CLicensePlate(IDirect3DDevice9* pDevice); 37 | ~CLicensePlate(); 38 | 39 | void OnLostDevice(); 40 | void OnResetDevice(); 41 | IDirect3DTexture9* Create(const char* szText); 42 | }; 43 | 44 | SAMPAPI_EXPORT SAMPAPI_VAR CLicensePlate*& RefLicensePlateManager(); 45 | 46 | SAMPAPI_END_PACKED 47 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R3-1/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | target_sources(sampapi 2 | PRIVATE 3 | AimStuff.h 4 | Animation.h 5 | CActor.h 6 | CActorPool.h 7 | CAudio.h 8 | CAudioStream.h 9 | CCamera.h 10 | CChat.h 11 | CChatBubble.h 12 | CConfig.h 13 | CDeathWindow.h 14 | CDialog.h 15 | CEntity.h 16 | CFont.h 17 | CFonts.h 18 | CGame.h 19 | CGangZonePool.h 20 | CHelpDialog.h 21 | CHttpClient.h 22 | CInput.h 23 | CLabel.h 24 | CLabelPool.h 25 | CLicensePlate.h 26 | CLocalPlayer.h 27 | CMenu.h 28 | CMenuPool.h 29 | CNetGame.h 30 | CNetStats.h 31 | CObject.h 32 | CObjectMaterialText.h 33 | CObjectPool.h 34 | CObjectSelection.h 35 | Commands.h 36 | ControllerState.h 37 | CPed.h 38 | CPickupPool.h 39 | CPlayerInfo.h 40 | CPlayerPool.h 41 | CPlayerTags.h 42 | CRemotePlayer.h 43 | CScoreboard.h 44 | CSpawnScreen.h 45 | CSrvNetStats.h 46 | CTextDraw.h 47 | CTextDrawPool.h 48 | CTextDrawSelection.h 49 | CVehicle.h 50 | CVehiclePool.h 51 | DebugScript.h 52 | Exception.h 53 | GUI.h 54 | KeyStuff.h 55 | Scripting.h 56 | Settings.h 57 | SpecialAction.h 58 | Synchronization.h 59 | InputHandler.h 60 | CObjectEdit.h 61 | RPCHandlers.h 62 | ) 63 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R3-1/CMenuPool.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R3) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/0.3.7-R3-1/CMenu.h" 14 | 15 | SAMPAPI_BEGIN_PACKED_V037R3_1 16 | 17 | class SAMPAPI_EXPORT CMenuPool { 18 | public: 19 | enum { MAX_MENUS = 128 }; 20 | 21 | CMenu* m_pObject[MAX_MENUS]; 22 | BOOL m_bNotEmpty[MAX_MENUS]; 23 | NUMBER m_nCurrent; 24 | bool m_bCanceled; 25 | 26 | CMenuPool(); 27 | ~CMenuPool(); 28 | 29 | CMenu* Create(NUMBER nId, const char* szTitle, float fX, float fY, char nColumns, float fFirstColumnWidth, float fSecondColumnWidth, const CMenu::Interaction* pInteraction); 30 | BOOL Delete(NUMBER nId); 31 | void Show(NUMBER nId); 32 | void Hide(NUMBER nId); 33 | char* GetTextPointer(const char* szName); 34 | void Process(); 35 | }; 36 | 37 | SAMPAPI_END_PACKED 38 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R3-1/CNetStats.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R3) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V037R3_1 15 | 16 | class SAMPAPI_EXPORT CNetStats { 17 | public: 18 | unsigned long m_dwLastTotalBytesSent; 19 | unsigned long m_dwLastTotalBytesRecv; 20 | unsigned long m_dwLastUpdateTick; 21 | unsigned long m_dwBPSUpload; 22 | unsigned long m_dwBPSDownload; 23 | IDirect3DDevice9* m_pDevice; 24 | 25 | CNetStats(IDirect3DDevice9* pDevice); 26 | 27 | void Draw(); 28 | }; 29 | 30 | SAMPAPI_EXPORT SAMPAPI_VAR CNetStats*& RefNetStats(); 31 | 32 | SAMPAPI_END_PACKED 33 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R3-1/CObjectMaterialText.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R3) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V037R3_1 15 | 16 | class SAMPAPI_EXPORT CObjectMaterialText { 17 | public: 18 | IDirect3DDevice9* m_pDevice; 19 | ID3DXSprite* m_pSprite; 20 | ID3DXSprite* m_pSprite_0; // maybe unused 21 | 22 | CObjectMaterialText(IDirect3DDevice9* pDevice); 23 | ~CObjectMaterialText(); 24 | 25 | void OnResetDevice(); 26 | void OnLostDevice(); 27 | IDirect3DTexture9* Create(const char* szText, const char* szFont, char nFontSize, int nBgSizeX, int nBgSizeY, D3DCOLOR fontColor, D3DCOLOR bgColor, bool bBold, char align); 28 | }; 29 | 30 | SAMPAPI_EXPORT SAMPAPI_VAR CObjectMaterialText*& RefObjectMaterialTextManager(); 31 | 32 | SAMPAPI_END_PACKED 33 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R3-1/CObjectPool.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R3) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/CVector.h" 14 | #include "sampapi/0.3.7-R3-1/CObject.h" 15 | 16 | class CObject; 17 | 18 | SAMPAPI_BEGIN_PACKED_V037R3_1 19 | 20 | class SAMPAPI_EXPORT CObjectPool { 21 | public: 22 | enum { MAX_OBJECTS = 1000 }; 23 | 24 | int m_nLargestId; 25 | BOOL m_bNotEmpty[MAX_OBJECTS]; 26 | CObject* m_pObject[MAX_OBJECTS]; 27 | 28 | CObjectPool(); 29 | ~CObjectPool(); 30 | 31 | void UpdateLargestId(); 32 | int GetCount(); 33 | BOOL Delete(ID nId); 34 | BOOL Create(ID nId, int nModel, CVector position, CVector rotation, float fDrawDistance); 35 | CObject* Find(::CObject* pGameObject); 36 | int GetId(::CObject* pGameObject); 37 | void Process(); 38 | void ConstructMaterials(); 39 | void ShutdownMaterials(); 40 | void Draw(); 41 | void DrawLast(); 42 | CObject* Get(ID nId); 43 | }; 44 | 45 | SAMPAPI_END_PACKED 46 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R3-1/CObjectSelection.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R3) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V037R3_1 15 | 16 | class SAMPAPI_EXPORT CObjectSelection { 17 | public: 18 | BOOL m_bIsActive; 19 | ID m_nHoveredObject; 20 | 21 | CObjectSelection(); 22 | 23 | ID DefineObject(); 24 | void DrawLabels(); 25 | void Enable(BOOL bEnable); 26 | void Draw(); 27 | void SendNotification(); // enter 28 | BOOL MsgProc(int uMsg, int wParam, int lParam); 29 | }; 30 | 31 | SAMPAPI_EXPORT SAMPAPI_VAR CObjectSelection*& RefObjectSelection(); 32 | 33 | SAMPAPI_END_PACKED 34 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R3-1/CPlayerInfo.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R3) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/0.3.7-R3-1/CRemotePlayer.h" 14 | #include 15 | 16 | SAMPAPI_BEGIN_PACKED_V037R3_1 17 | 18 | class SAMPAPI_EXPORT CPlayerInfo { 19 | public: 20 | CRemotePlayer* m_pPlayer; 21 | int m_nPing; 22 | #ifndef _DEBUG 23 | private: 24 | int __aling; 25 | 26 | public: 27 | #endif 28 | std::string m_szNick; 29 | int m_nScore; 30 | BOOL m_bIsNPC; 31 | 32 | CPlayerInfo(const char* szName, BOOL bIsNPC); 33 | ~CPlayerInfo(); 34 | }; 35 | 36 | SAMPAPI_END_PACKED 37 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R3-1/CPlayerTags.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R3) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/CVector.h" 14 | 15 | SAMPAPI_BEGIN_PACKED_V037R3_1 16 | 17 | class SAMPAPI_EXPORT CPlayerTags { 18 | public: 19 | IDirect3DDevice9* m_pDevice; 20 | IDirect3DStateBlock9* m_pStates; 21 | ID3DXSprite* m_pSprite; 22 | 23 | CPlayerTags(IDirect3DDevice9* pDevice); 24 | ~CPlayerTags(); 25 | 26 | void EndHealthBar(); 27 | void BeginLabel(); 28 | void EndLabel(); 29 | void DrawLabel(CVector* pPosition, const char* szText, D3DCOLOR color, float fDistanceToCamera, bool bDrawStatus, int nStatus); 30 | void DrawHealthBar(CVector* pPosition, float fHealth, float fArmour, float fDistanceToCamera); 31 | void OnLostDevice(); 32 | void OnResetDevice(); 33 | void BeginHealthBar(); 34 | }; 35 | 36 | SAMPAPI_EXPORT SAMPAPI_VAR CPlayerTags*& RefPlayerTags(); 37 | 38 | SAMPAPI_END_PACKED 39 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R3-1/CScoreboard.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R3) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/CRect.h" 14 | 15 | SAMPAPI_BEGIN_PACKED_V037R3_1 16 | 17 | class SAMPAPI_EXPORT CScoreboard { 18 | public: 19 | BOOL m_bIsEnabled; 20 | int m_nPlayerCount; 21 | float m_position[2]; 22 | float m_fScalar; 23 | float m_size[2]; 24 | float pad_[5]; 25 | IDirect3DDevice9* m_pDevice; 26 | CDXUTDialog* m_pDialog; 27 | CDXUTListBox* m_pListbox; 28 | int m_nCurrentOffset; 29 | BOOL m_bIsSorted; 30 | 31 | CScoreboard(IDirect3DDevice9* pDevice); 32 | 33 | void Recalc(); 34 | void GetRect(CRect* pRect); 35 | void Close(bool bHideCursor); 36 | void ResetDialogControls(CDXUTDialog* pDialog); 37 | void SendNotification(); 38 | void UpdateList(); 39 | void Draw(); 40 | void Enable(); 41 | }; 42 | 43 | SAMPAPI_EXPORT SAMPAPI_VAR CScoreboard*& RefScoreboard(); 44 | 45 | SAMPAPI_END_PACKED 46 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R3-1/CSpawnScreen.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R3) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/0.3.7-R3-1/CFonts.h" 14 | 15 | SAMPAPI_BEGIN_PACKED_V037R3_1 16 | 17 | class SAMPAPI_EXPORT CSpawnScreen { 18 | public: 19 | BOOL m_bEnabled; 20 | char* m_szSpawnText; 21 | CFonts* m_pFont; 22 | IDirect3DDevice9* m_pDevice; 23 | IDirect3DTexture9* m_pTexture; 24 | IDirect3DStateBlock9* m_pStateBlockSaved; 25 | IDirect3DStateBlock9* m_pStateBlockDraw; 26 | ID3DXSprite* m_pSprite; 27 | 28 | CSpawnScreen(IDirect3DDevice9* pDevice); 29 | ~CSpawnScreen(); 30 | 31 | void SetText(const char* szString); 32 | void OnResetDevice(); 33 | void OnLostDevice(); 34 | void Draw(); 35 | }; 36 | 37 | SAMPAPI_EXPORT SAMPAPI_VAR CSpawnScreen*& RefSpawnScreen(); 38 | 39 | SAMPAPI_END_PACKED 40 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R3-1/CSrvNetStats.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R3) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V037R3_1 15 | 16 | class SAMPAPI_EXPORT CSrvNetStats { 17 | public: 18 | unsigned long m_dwLastTotalBytesSent; 19 | unsigned long m_dwLastTotalBytesRecv; 20 | unsigned long m_dwLastUpdateTick; 21 | unsigned long m_dwBPSUpload; 22 | unsigned long m_dwBPSDownload; 23 | IDirect3DDevice9* m_pDevice; 24 | 25 | CSrvNetStats(IDirect3DDevice9* pDevice); 26 | 27 | void Draw(); 28 | }; 29 | 30 | SAMPAPI_EXPORT SAMPAPI_VAR CSrvNetStats*& RefServerNetStatistics(); 31 | 32 | SAMPAPI_END_PACKED 33 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R3-1/CTextDrawPool.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R3) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/0.3.7-R3-1/CTextDraw.h" 14 | 15 | SAMPAPI_BEGIN_PACKED_V037R3_1 16 | 17 | class SAMPAPI_EXPORT CTextDrawPool { 18 | public: 19 | enum { 20 | MAX_TEXTDRAWS = 2048, 21 | MAX_LOCAL_TEXTDRAWS = 256 22 | }; 23 | 24 | BOOL m_bNotEmpty[MAX_TEXTDRAWS + MAX_LOCAL_TEXTDRAWS]; 25 | CTextDraw* m_pObject[MAX_TEXTDRAWS + MAX_LOCAL_TEXTDRAWS]; 26 | 27 | CTextDrawPool(); 28 | ~CTextDrawPool(); 29 | 30 | void Delete(ID nId); 31 | void Draw(); 32 | CTextDraw* Create(int nId, CTextDraw::Transmit* pData, const char* szText); 33 | }; 34 | 35 | SAMPAPI_END_PACKED 36 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R3-1/CTextDrawSelection.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R3) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V037R3_1 15 | 16 | class SAMPAPI_EXPORT CTextDrawSelection { 17 | public: 18 | BOOL m_bIsActive; 19 | D3DCOLOR m_hoveredColor; 20 | ID m_nHoveredId; 21 | 22 | CTextDrawSelection() { 23 | m_bIsActive = false; 24 | m_hoveredColor = -1; 25 | m_nHoveredId = -1; 26 | } 27 | 28 | ~CTextDrawSelection() { 29 | if (m_bIsActive) 30 | ResetTextDraws(); 31 | } 32 | 33 | void ResetTextDraws(); 34 | void RawProcess(); 35 | void Process(); 36 | void Enable(D3DCOLOR hoveredColor); 37 | void SendNotification(); 38 | void Disable(); 39 | BOOL MsgProc(int uMsg, int wParam, int lParam); 40 | }; 41 | 42 | SAMPAPI_EXPORT SAMPAPI_VAR CTextDrawSelection*& RefTextDrawSelection(); 43 | 44 | SAMPAPI_END_PACKED 45 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R3-1/Exception.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R3) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V037R3_1 15 | 16 | namespace Exception { 17 | enum { MAX_EXCEPTIONS = 9 }; 18 | 19 | SAMPAPI_EXPORT SAMPAPI_VAR int& RefCount(); 20 | SAMPAPI_EXPORT SAMPAPI_VAR void*& RefContextRecord(); // PCONTEXT 21 | SAMPAPI_EXPORT SAMPAPI_VAR char* ArrayCrashDialogText(); // [16384] 22 | 23 | SAMPAPI_EXPORT BOOL Print(int nCode, void* pExceptionPointers, const char* szWarning); 24 | SAMPAPI_EXPORT void SendCrashReport(); 25 | SAMPAPI_EXPORT BOOL CrashDialogProc(void* hWnd, unsigned int uMsg, unsigned int wParam, long lParam); 26 | SAMPAPI_EXPORT void ConstructCrashDialogText(BOOL bModules); 27 | SAMPAPI_EXPORT long Handler(void* pExceptionPointers); 28 | } // namespace Exception 29 | 30 | SAMPAPI_END_PACKED 31 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R3-1/InputHandler.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R3) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_V037R3_1 15 | 16 | void SwitchWindowedMode(); 17 | 18 | namespace InputHandler { 19 | enum { MAX_ANTICHEAT_DETECT_COUNT = 0xA }; 20 | 21 | SAMPAPI_EXPORT SAMPAPI_VAR void*& RefPrevWindowProc(); 22 | SAMPAPI_EXPORT SAMPAPI_VAR unsigned int& RefAntiCheatDetectCount(); 23 | 24 | SAMPAPI_EXPORT int WindowProc(unsigned int uMsg, unsigned int wParam, long lParam); 25 | SAMPAPI_EXPORT BOOL KeyPressHandler(unsigned int nKey); 26 | SAMPAPI_EXPORT BOOL CharInputHandler(unsigned int nChar); 27 | SAMPAPI_EXPORT BOOL Initialize(); 28 | } // namespace InputHandler 29 | 30 | SAMPAPI_END 31 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R3-1/Settings.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R3) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V037R3_1 15 | 16 | struct SAMPAPI_EXPORT Settings { 17 | enum { SETTINGS_STRING_LEN = 256 }; 18 | 19 | BOOL m_bDebugMode; // -d 20 | BOOL m_bOnlineGame; // -c 21 | BOOL m_bWindowedMode; // unused 22 | char m_szPass[SETTINGS_STRING_LEN + 1]; // -z 23 | char m_szHost[SETTINGS_STRING_LEN + 1]; // -h 24 | char m_szPort[SETTINGS_STRING_LEN + 1]; // -p 25 | char m_szNick[SETTINGS_STRING_LEN + 1]; // -n 26 | char m_szDebugScript[SETTINGS_STRING_LEN + 1]; // -l 27 | 28 | static void Initialize(); 29 | static void GetFromCommandLine(const char* szLine, char* szBuffer); 30 | static void GetFromQuotes(const char* szLine, char* szBuffer); 31 | }; 32 | 33 | SAMPAPI_EXPORT SAMPAPI_VAR Settings& RefSettings(); 34 | 35 | SAMPAPI_END_PACKED 36 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R3-1/SpecialAction.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R3) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_V037R3_1 15 | 16 | enum SpecialAction { 17 | SPECIAL_ACTION_NONE, 18 | SPECIAL_ACTION_DUCK, 19 | SPECIAL_ACTION_USEJETPACK, 20 | SPECIAL_ACTION_ENTER_VEHICLE, 21 | SPECIAL_ACTION_EXIT_VEHICLE, 22 | SPECIAL_ACTION_DANCE1, 23 | SPECIAL_ACTION_DANCE2, 24 | SPECIAL_ACTION_DANCE3, 25 | SPECIAL_ACTION_DANCE4, 26 | SPECIAL_ACTION_HANDSUP, 27 | SPECIAL_ACTION_USECELLPHONE, 28 | SPECIAL_ACTION_SITTING, 29 | SPECIAL_ACTION_STOPUSECELLPHONE, 30 | SPECIAL_ACTION_DRINK_BEER = 20, 31 | SPECIAL_ACTION_SMOKE_CIGGY, 32 | SPECIAL_ACTION_DRINK_WINE, 33 | SPECIAL_ACTION_DRINK_SPRUNK, 34 | SPECIAL_ACTION_CUFFED, 35 | SPECIAL_ACTION_CARRY, 36 | SPECIAL_ACTION_URINATING = 68 37 | }; 38 | 39 | SAMPAPI_END 40 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R5-1/Animation.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R5) API project file. 3 | Developers: LUCHARE , Northn 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V037R5_1 15 | 16 | struct SAMPAPI_EXPORT Animation { 17 | union { 18 | struct { 19 | unsigned short m_nId : 16; 20 | unsigned char m_nFramedelta : 8; 21 | unsigned char m_nLoopA : 1; 22 | unsigned char m_nLockX : 1; 23 | unsigned char m_nLockY : 1; 24 | unsigned char m_nLockF : 1; 25 | unsigned char m_nTime : 2; 26 | }; 27 | int m_value; 28 | }; 29 | }; 30 | 31 | SAMPAPI_END_PACKED 32 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R5-1/CActor.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R5) API project file. 3 | Developers: LUCHARE , Northn 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/0.3.7-R5-1/CEntity.h" 14 | 15 | class CPed; 16 | 17 | SAMPAPI_BEGIN_PACKED_V037R5_1 18 | 19 | class SAMPAPI_EXPORT CActor : public CEntity { 20 | public: 21 | // void **m_lpVtbl = 0xEC298; 22 | ::CPed* m_pGamePed; 23 | GTAREF m_marker; 24 | GTAREF m_arrow; 25 | bool m_bNeedsToCreateMarker; 26 | bool m_bInvulnerable; 27 | 28 | CActor(int nModel, CVector position, float fRotation); 29 | virtual ~CActor() = 0; 30 | 31 | void Destroy(); 32 | void PerformAnimation(const char* szAnim, const char* szIFP, float fFramedelta, int bLockA, int bLockX, int bLockY, int bLockF, int nTime); 33 | void SetRotation(float fAngle); 34 | float GetHealth(); 35 | void SetHealth(float fAngle); 36 | void SetInvulnerable(bool bEnable); 37 | }; 38 | 39 | SAMPAPI_END_PACKED 40 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R5-1/CActorPool.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R5) API project file. 3 | Developers: LUCHARE , Northn 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/CVector.h" 14 | #include "sampapi/0.3.7-R5-1/CActor.h" 15 | 16 | SAMPAPI_BEGIN_PACKED_V037R5_1 17 | 18 | struct SAMPAPI_EXPORT ActorInfo { 19 | ID m_nId; 20 | int m_nModel; 21 | CVector m_position; 22 | float m_fRotation; 23 | float m_fHealth; 24 | bool m_bInvulnerable; 25 | }; 26 | 27 | class SAMPAPI_EXPORT CActorPool { 28 | public: 29 | enum { MAX_ACTORS = 1000 }; 30 | 31 | int m_nLargestId; 32 | CActor* m_pObject[MAX_ACTORS]; 33 | BOOL m_bNotEmpty[MAX_ACTORS]; 34 | ::CPed* m_pGameObject[MAX_ACTORS]; 35 | int pad_2ee4[MAX_ACTORS]; 36 | int pad_3e84[MAX_ACTORS]; 37 | 38 | CActorPool(); 39 | ~CActorPool(); 40 | 41 | CActor* Get(ID nId); 42 | BOOL DoesExist(ID nId); 43 | void UpdateLargestId(); 44 | BOOL Delete(ID nId); 45 | ID Find(::CPed* pGamePed); 46 | BOOL Create(ActorInfo* pInfo); 47 | }; 48 | 49 | SAMPAPI_END_PACKED 50 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R5-1/CAudio.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R5) API project file. 3 | Developers: LUCHARE , Northn 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/CVector.h" 14 | 15 | SAMPAPI_BEGIN_PACKED_V037R5_1 16 | 17 | class SAMPAPI_EXPORT CAudio { 18 | public: 19 | enum SoundId { 20 | SOUND_OFF = 0, 21 | SOUND_DISABLE_OUTDOOR_AMBIENCE_TRACK = 1, 22 | }; 23 | 24 | BOOL m_bSoundLoaded; 25 | bool m_bOutdoorAmbienceTrackDisabled; 26 | 27 | CAudio() { 28 | m_bSoundLoaded = false; 29 | m_bOutdoorAmbienceTrackDisabled = false; 30 | } 31 | 32 | ~CAudio() { 33 | Play(SOUND_OFF); 34 | } 35 | 36 | int GetRadioStation(); 37 | void StartRadio(int nStation); 38 | void StopRadio(); 39 | float GetRadioVolume(); 40 | void StopOutdoorAmbienceTrack(); 41 | void SetOutdoorAmbienceTrack(int nSound); 42 | void Play(int nSound, CVector location = {}); 43 | bool IsOutdoorAmbienceTrackDisabled(); 44 | }; 45 | 46 | SAMPAPI_END_PACKED 47 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R5-1/CChatBubble.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R5) API project file. 3 | Developers: LUCHARE , Northn 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V037R5_1 15 | 16 | class SAMPAPI_EXPORT CChatBubble { 17 | public: 18 | struct SAMPAPI_EXPORT Player { 19 | BOOL m_bExists; 20 | char m_szText[256]; 21 | int m_creationTick; 22 | int m_lifeSpan; 23 | D3DCOLOR m_color; 24 | float m_fDrawDistance; 25 | int m_nMaxLineLength; 26 | } m_player[1004]; 27 | 28 | CChatBubble(); 29 | 30 | void Add(ID nPlayer, const char* szText, D3DCOLOR color, float fDrawDistance, int lifeSpan); 31 | void Draw(); 32 | }; 33 | 34 | SAMPAPI_EXPORT SAMPAPI_VAR CChatBubble*& RefChatBubble(); 35 | 36 | SAMPAPI_END_PACKED 37 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R5-1/CGangZonePool.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R5) API project file. 3 | Developers: LUCHARE , Northn 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V037R5_1 15 | 16 | struct SAMPAPI_EXPORT GangZone { 17 | struct SAMPAPI_EXPORT { 18 | float left; 19 | float bottom; 20 | float right; 21 | float top; 22 | } m_rect; 23 | D3DCOLOR m_color; 24 | D3DCOLOR m_altColor; 25 | }; 26 | 27 | class SAMPAPI_EXPORT CGangZonePool { 28 | public: 29 | enum { MAX_GANGZONES = 1024 }; 30 | 31 | GangZone* m_pObject[MAX_GANGZONES]; 32 | BOOL m_bNotEmpty[MAX_GANGZONES]; 33 | 34 | CGangZonePool(); 35 | ~CGangZonePool(); 36 | 37 | void Create(ID nId, float left, float top, float right, float bottom, D3DCOLOR color); 38 | void StartFlashing(ID nId, D3DCOLOR color); 39 | void StopFlashing(ID nId); 40 | void Delete(ID nId); 41 | void Draw(); 42 | }; 43 | 44 | SAMPAPI_END_PACKED 45 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R5-1/CHelpDialog.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R5) API project file. 3 | Developers: LUCHARE , Northn 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V037R5_1 15 | 16 | class SAMPAPI_EXPORT CHelpDialog { 17 | public: 18 | IDirect3DDevice9* m_pDevice; 19 | 20 | CHelpDialog(IDirect3DDevice9* pDevice = SAMPAPI_UNUSED); 21 | 22 | void Show(); 23 | }; 24 | 25 | SAMPAPI_EXPORT SAMPAPI_VAR CHelpDialog*& RefHelpDialog(); 26 | 27 | SAMPAPI_END_PACKED 28 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R5-1/CLabel.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R5) API project file. 3 | Developers: LUCHARE , Northn 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/CVector.h" 14 | 15 | SAMPAPI_BEGIN_PACKED_V037R5_1 16 | 17 | class SAMPAPI_EXPORT CLabel { 18 | public: 19 | IDirect3DDevice9* m_pDevice; 20 | ID3DXSprite* m_pSprite; 21 | 22 | CLabel(IDirect3DDevice9* pDevice); 23 | ~CLabel(); 24 | 25 | void OnLostDevice(); 26 | void OnResetDevice(); 27 | BOOL HasNoObstacles(CVector position); 28 | void Begin(); 29 | void End(); 30 | void Draw(CVector* pPosition, const char* szText, D3DCOLOR color, BOOL bShadow, bool bNoObstacles); 31 | }; 32 | 33 | SAMPAPI_EXPORT SAMPAPI_VAR CLabel*& RefLabel(); 34 | 35 | SAMPAPI_END_PACKED 36 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R5-1/CLabelPool.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R5) API project file. 3 | Developers: LUCHARE , Northn 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/CVector.h" 14 | 15 | SAMPAPI_BEGIN_PACKED_V037R5_1 16 | 17 | struct SAMPAPI_EXPORT TextLabel { 18 | char* m_pText; 19 | D3DCOLOR m_color; 20 | CVector m_position; 21 | float m_fDrawDistance; 22 | bool m_bBehindWalls; 23 | ID m_nAttachedToPlayer; 24 | ID m_nAttachedToVehicle; 25 | }; 26 | 27 | class SAMPAPI_EXPORT CLabelPool { 28 | public: 29 | enum { MAX_TEXT_LABELS = 2048 }; 30 | 31 | TextLabel m_object[MAX_TEXT_LABELS]; 32 | BOOL m_bNotEmpty[MAX_TEXT_LABELS]; 33 | 34 | CLabelPool(); 35 | ~CLabelPool(); 36 | 37 | void Create(ID nId, const char* szText, D3DCOLOR color, CVector position, float fDrawDistance, bool bBehindWalls, ID nAttachedToPlayer, ID nAttachedToVehicle); 38 | BOOL Delete(ID nId); 39 | void Draw(); 40 | }; 41 | 42 | SAMPAPI_END_PACKED 43 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R5-1/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | target_sources(sampapi 2 | PRIVATE 3 | AimStuff.h 4 | Animation.h 5 | CActor.h 6 | CActorPool.h 7 | CAudio.h 8 | CAudioStream.h 9 | CCamera.h 10 | CChat.h 11 | CChatBubble.h 12 | CConfig.h 13 | CDeathWindow.h 14 | CDialog.h 15 | CEntity.h 16 | CFont.h 17 | CFonts.h 18 | CGame.h 19 | CGangZonePool.h 20 | CHelpDialog.h 21 | CHttpClient.h 22 | CInput.h 23 | CLabel.h 24 | CLabelPool.h 25 | CLicensePlate.h 26 | CLocalPlayer.h 27 | CMenu.h 28 | CMenuPool.h 29 | CNetGame.h 30 | CNetStats.h 31 | CObject.h 32 | CObjectMaterialText.h 33 | CObjectPool.h 34 | CObjectSelection.h 35 | Commands.h 36 | ControllerState.h 37 | CPed.h 38 | CPickupPool.h 39 | CPlayerInfo.h 40 | CPlayerPool.h 41 | CPlayerTags.h 42 | CRemotePlayer.h 43 | CScoreboard.h 44 | CSpawnScreen.h 45 | CSrvNetStats.h 46 | CTextDraw.h 47 | CTextDrawPool.h 48 | CTextDrawSelection.h 49 | CVehicle.h 50 | CVehiclePool.h 51 | DebugScript.h 52 | Exception.h 53 | GUI.h 54 | KeyStuff.h 55 | Scripting.h 56 | Settings.h 57 | SpecialAction.h 58 | Synchronization.h 59 | InputHandler.h 60 | CObjectEdit.h 61 | RPCHandlers.h 62 | ) 63 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R5-1/CMenuPool.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R5) API project file. 3 | Developers: LUCHARE , Northn 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/0.3.7-R5-1/CMenu.h" 14 | 15 | SAMPAPI_BEGIN_PACKED_V037R5_1 16 | 17 | class SAMPAPI_EXPORT CMenuPool { 18 | public: 19 | enum { MAX_MENUS = 128 }; 20 | 21 | CMenu* m_pObject[MAX_MENUS]; 22 | BOOL m_bNotEmpty[MAX_MENUS]; 23 | NUMBER m_nCurrent; 24 | bool m_bCanceled; 25 | 26 | CMenuPool(); 27 | ~CMenuPool(); 28 | 29 | CMenu* Create(NUMBER nId, float fX, float fY, char nColumns, float fFirstColumnWidth, float fSecondColumnWidth, const CMenu::Interaction* pInteraction); 30 | BOOL Delete(NUMBER nId); 31 | void Show(NUMBER nId); 32 | void Hide(NUMBER nId); 33 | char* GetTextPointer(const char* szName); 34 | void Process(); 35 | }; 36 | 37 | SAMPAPI_END_PACKED 38 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R5-1/CNetStats.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R5) API project file. 3 | Developers: LUCHARE , Northn 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V037R5_1 15 | 16 | class SAMPAPI_EXPORT CNetStats { 17 | public: 18 | unsigned long m_dwLastTotalBytesSent; 19 | unsigned long m_dwLastTotalBytesRecv; 20 | unsigned long m_dwLastUpdateTick; 21 | unsigned long m_dwBPSUpload; 22 | unsigned long m_dwBPSDownload; 23 | IDirect3DDevice9* m_pDevice; 24 | 25 | CNetStats(IDirect3DDevice9* pDevice); 26 | 27 | void Draw(); 28 | }; 29 | 30 | SAMPAPI_EXPORT SAMPAPI_VAR CNetStats*& RefNetStats(); 31 | 32 | SAMPAPI_END_PACKED 33 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R5-1/CObjectMaterialText.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R5) API project file. 3 | Developers: LUCHARE , Northn 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V037R5_1 15 | 16 | class SAMPAPI_EXPORT CObjectMaterialText { 17 | public: 18 | IDirect3DDevice9* m_pDevice; 19 | ID3DXSprite* m_pSprite; 20 | ID3DXSprite* m_pSprite_0; // maybe unused 21 | 22 | CObjectMaterialText(IDirect3DDevice9* pDevice); 23 | ~CObjectMaterialText(); 24 | 25 | void OnResetDevice(); 26 | void OnLostDevice(); 27 | IDirect3DTexture9* Create(const char* szText, const char* szFont, char nFontSize, int nBgSizeX, int nBgSizeY, D3DCOLOR fontColor, D3DCOLOR bgColor, bool bBold, char align); 28 | }; 29 | 30 | SAMPAPI_EXPORT SAMPAPI_VAR CObjectMaterialText*& RefObjectMaterialTextManager(); 31 | 32 | SAMPAPI_END_PACKED 33 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R5-1/CObjectPool.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R5) API project file. 3 | Developers: LUCHARE , Northn 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/CVector.h" 14 | #include "sampapi/0.3.7-R5-1/CObject.h" 15 | 16 | class CObject; 17 | 18 | SAMPAPI_BEGIN_PACKED_V037R5_1 19 | 20 | class SAMPAPI_EXPORT CObjectPool { 21 | public: 22 | enum { MAX_OBJECTS = 1000 }; 23 | 24 | int m_nLargestId; 25 | BOOL m_bNotEmpty[MAX_OBJECTS]; 26 | CObject* m_pObject[MAX_OBJECTS]; 27 | 28 | CObjectPool(); 29 | ~CObjectPool(); 30 | 31 | void UpdateLargestId(); 32 | int GetCount(); 33 | BOOL Delete(ID nId); 34 | BOOL Create(ID nId, int nModel, CVector position, CVector rotation, float fDrawDistance); 35 | CObject* Find(::CObject* pGameObject); 36 | int GetId(::CObject* pGameObject); 37 | void Process(); 38 | void ConstructMaterials(); 39 | void ShutdownMaterials(); 40 | void Draw(); 41 | void DrawLast(); 42 | CObject* Get(ID nId); 43 | }; 44 | 45 | SAMPAPI_END_PACKED 46 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R5-1/CObjectSelection.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R5) API project file. 3 | Developers: LUCHARE , Northn 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V037R5_1 15 | 16 | class SAMPAPI_EXPORT CObjectSelection { 17 | public: 18 | BOOL m_bIsActive; 19 | ID m_nHoveredObject; 20 | 21 | CObjectSelection(); 22 | 23 | ID DefineObject(); 24 | void DrawLabels(); 25 | void Enable(BOOL bEnable); 26 | void Draw(); 27 | void SendNotification(); // enter 28 | BOOL MsgProc(int uMsg, int wParam, int lParam); 29 | }; 30 | 31 | SAMPAPI_EXPORT SAMPAPI_VAR CObjectSelection*& RefObjectSelection(); 32 | 33 | SAMPAPI_END_PACKED 34 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R5-1/CPlayerInfo.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R5) API project file. 3 | Developers: LUCHARE , Northn 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/0.3.7-R5-1/CRemotePlayer.h" 14 | #include 15 | 16 | SAMPAPI_BEGIN_PACKED_V037R5_1 17 | 18 | class SAMPAPI_EXPORT CPlayerInfo { 19 | public: 20 | int pad_0; 21 | int m_nScore; 22 | BOOL m_bIsNPC; 23 | int m_nPing; 24 | CRemotePlayer* m_pPlayer; 25 | #ifndef _DEBUG 26 | private: 27 | int __aling; 28 | 29 | public: 30 | #endif 31 | std::string m_szNick; 32 | 33 | CPlayerInfo(const char* szName, BOOL bIsNPC); 34 | ~CPlayerInfo(); 35 | }; 36 | 37 | SAMPAPI_END_PACKED 38 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R5-1/CPlayerTags.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R5) API project file. 3 | Developers: LUCHARE , Northn 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/CVector.h" 14 | 15 | SAMPAPI_BEGIN_PACKED_V037R5_1 16 | 17 | class SAMPAPI_EXPORT CPlayerTags { 18 | public: 19 | IDirect3DDevice9* m_pDevice; 20 | IDirect3DStateBlock9* m_pStates; 21 | ID3DXSprite* m_pSprite; 22 | 23 | CPlayerTags(IDirect3DDevice9* pDevice); 24 | ~CPlayerTags(); 25 | 26 | void EndHealthBar(); 27 | void BeginLabel(); 28 | void EndLabel(); 29 | void DrawLabel(CVector* pPosition, const char* szText, D3DCOLOR color, float fDistanceToCamera, bool bDrawStatus, int nStatus); 30 | void DrawHealthBar(CVector* pPosition, float fHealth, float fArmour, float fDistanceToCamera); 31 | void OnLostDevice(); 32 | void OnResetDevice(); 33 | void BeginHealthBar(); 34 | }; 35 | 36 | SAMPAPI_EXPORT SAMPAPI_VAR CPlayerTags*& RefPlayerTags(); 37 | 38 | SAMPAPI_END_PACKED 39 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R5-1/CScoreboard.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R5) API project file. 3 | Developers: LUCHARE , Northn 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/CRect.h" 14 | 15 | SAMPAPI_BEGIN_PACKED_V037R5_1 16 | 17 | class SAMPAPI_EXPORT CScoreboard { 18 | public: 19 | BOOL m_bIsEnabled; 20 | int m_nPlayerCount; 21 | float m_position[2]; 22 | float m_fScalar; 23 | float m_size[2]; 24 | float pad_[5]; 25 | IDirect3DDevice9* m_pDevice; 26 | CDXUTDialog* m_pDialog; 27 | CDXUTListBox* m_pListbox; 28 | int m_nCurrentOffset; 29 | BOOL m_bIsSorted; 30 | 31 | CScoreboard(IDirect3DDevice9* pDevice); 32 | 33 | void Recalc(); 34 | void GetRect(CRect* pRect); 35 | void Close(bool bHideCursor); 36 | void ResetDialogControls(CDXUTDialog* pDialog); 37 | void SendNotification(); 38 | void UpdateList(); 39 | void Draw(); 40 | void Enable(); 41 | }; 42 | 43 | SAMPAPI_EXPORT SAMPAPI_VAR CScoreboard*& RefScoreboard(); 44 | 45 | SAMPAPI_END_PACKED 46 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R5-1/CSpawnScreen.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R5) API project file. 3 | Developers: LUCHARE , Northn 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/0.3.7-R5-1/CFonts.h" 14 | 15 | SAMPAPI_BEGIN_PACKED_V037R5_1 16 | 17 | class SAMPAPI_EXPORT CSpawnScreen { 18 | public: 19 | BOOL m_bEnabled; 20 | char* m_szSpawnText; 21 | CFonts* m_pFont; 22 | IDirect3DDevice9* m_pDevice; 23 | IDirect3DTexture9* m_pTexture; 24 | IDirect3DStateBlock9* m_pStateBlockSaved; 25 | IDirect3DStateBlock9* m_pStateBlockDraw; 26 | ID3DXSprite* m_pSprite; 27 | 28 | CSpawnScreen(IDirect3DDevice9* pDevice); 29 | ~CSpawnScreen(); 30 | 31 | void SetText(const char* szString); 32 | void OnResetDevice(); 33 | void OnLostDevice(); 34 | void Draw(); 35 | }; 36 | 37 | SAMPAPI_EXPORT SAMPAPI_VAR CSpawnScreen*& RefSpawnScreen(); 38 | 39 | SAMPAPI_END_PACKED 40 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R5-1/CSrvNetStats.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R5) API project file. 3 | Developers: LUCHARE , Northn 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V037R5_1 15 | 16 | class SAMPAPI_EXPORT CSrvNetStats { 17 | public: 18 | unsigned long m_dwLastTotalBytesSent; 19 | unsigned long m_dwLastTotalBytesRecv; 20 | unsigned long m_dwLastUpdateTick; 21 | unsigned long m_dwBPSUpload; 22 | unsigned long m_dwBPSDownload; 23 | IDirect3DDevice9* m_pDevice; 24 | 25 | CSrvNetStats(IDirect3DDevice9* pDevice); 26 | 27 | void Draw(); 28 | }; 29 | 30 | SAMPAPI_EXPORT SAMPAPI_VAR CSrvNetStats*& RefServerNetStatistics(); 31 | 32 | SAMPAPI_END_PACKED 33 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R5-1/CTextDrawPool.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R5) API project file. 3 | Developers: LUCHARE , Northn 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/0.3.7-R5-1/CTextDraw.h" 14 | 15 | SAMPAPI_BEGIN_PACKED_V037R5_1 16 | 17 | class SAMPAPI_EXPORT CTextDrawPool { 18 | public: 19 | enum { 20 | MAX_TEXTDRAWS = 2048, 21 | MAX_LOCAL_TEXTDRAWS = 256 22 | }; 23 | 24 | BOOL m_bNotEmpty[MAX_TEXTDRAWS + MAX_LOCAL_TEXTDRAWS]; 25 | CTextDraw* m_pObject[MAX_TEXTDRAWS + MAX_LOCAL_TEXTDRAWS]; 26 | 27 | CTextDrawPool(); 28 | ~CTextDrawPool(); 29 | 30 | void Delete(ID nId); 31 | void Draw(); 32 | CTextDraw* Create(int nId, CTextDraw::Transmit* pData, const char* szText); 33 | }; 34 | 35 | SAMPAPI_END_PACKED 36 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R5-1/CTextDrawSelection.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R5) API project file. 3 | Developers: LUCHARE , Northn 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V037R5_1 15 | 16 | class SAMPAPI_EXPORT CTextDrawSelection { 17 | public: 18 | BOOL m_bIsActive; 19 | D3DCOLOR m_hoveredColor; 20 | ID m_nHoveredId; 21 | 22 | CTextDrawSelection() { 23 | m_bIsActive = false; 24 | m_hoveredColor = -1; 25 | m_nHoveredId = -1; 26 | } 27 | 28 | ~CTextDrawSelection() { 29 | if (m_bIsActive) 30 | ResetTextDraws(); 31 | } 32 | 33 | void ResetTextDraws(); 34 | void RawProcess(); 35 | void Process(); 36 | void Enable(D3DCOLOR hoveredColor); 37 | void SendNotification(); 38 | void Disable(); 39 | BOOL MsgProc(int uMsg, int wParam, int lParam); 40 | }; 41 | 42 | SAMPAPI_EXPORT SAMPAPI_VAR CTextDrawSelection*& RefTextDrawSelection(); 43 | 44 | SAMPAPI_END_PACKED 45 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R5-1/Exception.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R5) API project file. 3 | Developers: LUCHARE , Northn 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V037R5_1 15 | 16 | namespace Exception { 17 | enum { MAX_EXCEPTIONS = 9 }; 18 | 19 | SAMPAPI_EXPORT SAMPAPI_VAR int& RefCount(); 20 | SAMPAPI_EXPORT SAMPAPI_VAR void*& RefContextRecord(); // PCONTEXT 21 | SAMPAPI_EXPORT SAMPAPI_VAR char* ArrayCrashDialogText(); // [16384] 22 | 23 | SAMPAPI_EXPORT BOOL Print(int nCode, void* pExceptionPointers, const char* szWarning); 24 | SAMPAPI_EXPORT void SendCrashReport(); 25 | SAMPAPI_EXPORT BOOL CrashDialogProc(void* hWnd, unsigned int uMsg, unsigned int wParam, long lParam); 26 | SAMPAPI_EXPORT void ConstructCrashDialogText(BOOL bModules); 27 | SAMPAPI_EXPORT long Handler(void* pExceptionPointers); 28 | } // namespace Exception 29 | 30 | SAMPAPI_END_PACKED 31 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R5-1/InputHandler.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R5) API project file. 3 | Developers: LUCHARE , Northn 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_V037R5_1 15 | 16 | void SwitchWindowedMode(); 17 | 18 | namespace InputHandler { 19 | enum { MAX_ANTICHEAT_DETECT_COUNT = 0xA }; 20 | 21 | SAMPAPI_EXPORT SAMPAPI_VAR void*& RefPrevWindowProc(); 22 | SAMPAPI_EXPORT SAMPAPI_VAR unsigned int& RefAntiCheatDetectCount(); 23 | 24 | SAMPAPI_EXPORT int WindowProc(unsigned int uMsg, unsigned int wParam, long lParam); 25 | SAMPAPI_EXPORT BOOL KeyPressHandler(unsigned int nKey); 26 | SAMPAPI_EXPORT BOOL CharInputHandler(unsigned int nChar); 27 | SAMPAPI_EXPORT BOOL Initialize(); 28 | } // namespace InputHandler 29 | 30 | SAMPAPI_END 31 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R5-1/Settings.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R5) API project file. 3 | Developers: LUCHARE , Northn 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V037R5_1 15 | 16 | struct SAMPAPI_EXPORT Settings { 17 | enum { SETTINGS_STRING_LEN = 256 }; 18 | 19 | BOOL m_bDebugMode; // -d 20 | BOOL m_bOnlineGame; // -c 21 | BOOL m_bWindowedMode; // unused 22 | char m_szPass[SETTINGS_STRING_LEN + 1]; // -z 23 | char m_szHost[SETTINGS_STRING_LEN + 1]; // -h 24 | char m_szPort[SETTINGS_STRING_LEN + 1]; // -p 25 | char m_szNick[SETTINGS_STRING_LEN + 1]; // -n 26 | char m_szDebugScript[SETTINGS_STRING_LEN + 1]; // -l 27 | 28 | static void Initialize(); 29 | static void GetFromCommandLine(const char* szLine, char* szBuffer); 30 | static void GetFromQuotes(const char* szLine, char* szBuffer); 31 | }; 32 | 33 | SAMPAPI_EXPORT SAMPAPI_VAR Settings& RefSettings(); 34 | 35 | SAMPAPI_END_PACKED 36 | -------------------------------------------------------------------------------- /include/sampapi/0.3.7-R5-1/SpecialAction.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R5) API project file. 3 | Developers: LUCHARE , Northn 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_V037R5_1 15 | 16 | enum SpecialAction { 17 | SPECIAL_ACTION_NONE, 18 | SPECIAL_ACTION_DUCK, 19 | SPECIAL_ACTION_USEJETPACK, 20 | SPECIAL_ACTION_ENTER_VEHICLE, 21 | SPECIAL_ACTION_EXIT_VEHICLE, 22 | SPECIAL_ACTION_DANCE1, 23 | SPECIAL_ACTION_DANCE2, 24 | SPECIAL_ACTION_DANCE3, 25 | SPECIAL_ACTION_DANCE4, 26 | SPECIAL_ACTION_HANDSUP, 27 | SPECIAL_ACTION_USECELLPHONE, 28 | SPECIAL_ACTION_SITTING, 29 | SPECIAL_ACTION_STOPUSECELLPHONE, 30 | SPECIAL_ACTION_DRINK_BEER = 20, 31 | SPECIAL_ACTION_SMOKE_CIGGY, 32 | SPECIAL_ACTION_DRINK_WINE, 33 | SPECIAL_ACTION_DRINK_SPRUNK, 34 | SPECIAL_ACTION_CUFFED, 35 | SPECIAL_ACTION_CARRY, 36 | SPECIAL_ACTION_URINATING = 68 37 | }; 38 | 39 | SAMPAPI_END 40 | -------------------------------------------------------------------------------- /include/sampapi/0.3.DL-1/Animation.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.DL-1) API project file. 3 | Developers: LUCHARE , ARMOR 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V03DL_1 15 | 16 | struct SAMPAPI_EXPORT Animation { 17 | union { 18 | struct { 19 | unsigned short m_nId : 16; 20 | unsigned char m_nFramedelta : 8; 21 | unsigned char m_nLoopA : 1; 22 | unsigned char m_nLockX : 1; 23 | unsigned char m_nLockY : 1; 24 | unsigned char m_nLockF : 1; 25 | unsigned char m_nTime : 2; 26 | }; 27 | int m_value; 28 | }; 29 | }; 30 | 31 | SAMPAPI_END_PACKED 32 | -------------------------------------------------------------------------------- /include/sampapi/0.3.DL-1/CActorPool.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.DL-1) API project file. 3 | Developers: LUCHARE , ARMOR 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/0.3.DL-1/CActor.h" 14 | #include "sampapi/CVector.h" 15 | 16 | SAMPAPI_BEGIN_PACKED_V03DL_1 17 | 18 | struct SAMPAPI_EXPORT ActorInfo { 19 | ID m_nId; 20 | int m_nModel; 21 | int pad_1; 22 | CVector m_position; 23 | float m_fRotation; 24 | float m_fHealth; 25 | bool m_bInvulnerable; 26 | }; 27 | 28 | class SAMPAPI_EXPORT CActorPool { 29 | public: 30 | enum { MAX_ACTORS = 1000 }; 31 | 32 | int m_nLargestId; 33 | CActor* m_pObject[MAX_ACTORS]; 34 | BOOL m_bNotEmpty[MAX_ACTORS]; 35 | ::CPed* m_pGameObject[MAX_ACTORS]; 36 | int pad_2ee4[MAX_ACTORS]; 37 | int pad_3e84[MAX_ACTORS]; 38 | 39 | CActorPool(); 40 | ~CActorPool(); 41 | 42 | CActor* Get(ID nId); 43 | BOOL DoesExist(ID nId); 44 | void UpdateLargestId(); 45 | BOOL Delete(ID nId); 46 | BOOL Create(ActorInfo* pInfo); 47 | ID Find(::CPed* pPed); 48 | }; 49 | 50 | SAMPAPI_END_PACKED 51 | -------------------------------------------------------------------------------- /include/sampapi/0.3.DL-1/CAudio.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.DL-1) API project file. 3 | Developers: LUCHARE , ARMOR 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/CVector.h" 14 | 15 | SAMPAPI_BEGIN_PACKED_V03DL_1 16 | 17 | class SAMPAPI_EXPORT CAudio { 18 | public: 19 | enum SoundId { 20 | SOUND_OFF = 0, 21 | SOUND_DISABLE_OUTDOOR_AMBIENCE_TRACK = 1, 22 | }; 23 | 24 | BOOL m_bSoundLoaded; 25 | bool m_bOutdoorAmbienceTrackDisabled; 26 | 27 | CAudio() { 28 | m_bSoundLoaded = false; 29 | m_bOutdoorAmbienceTrackDisabled = false; 30 | } 31 | 32 | ~CAudio() { 33 | Play(SOUND_OFF); 34 | } 35 | 36 | int GetRadioStation(); 37 | void StartRadio(int nStation); 38 | void StopRadio(); 39 | float GetRadioVolume(); 40 | void StopOutdoorAmbienceTrack(); 41 | void SetOutdoorAmbienceTrack(int nSound); 42 | void Play(int nSound, CVector location = {}); 43 | bool IsOutdoorAmbienceTrackDisabled(); 44 | }; 45 | 46 | SAMPAPI_END_PACKED 47 | -------------------------------------------------------------------------------- /include/sampapi/0.3.DL-1/CChatBubble.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.DL-1) API project file. 3 | Developers: LUCHARE , ARMOR 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V03DL_1 15 | 16 | class SAMPAPI_EXPORT CChatBubble { 17 | public: 18 | struct SAMPAPI_EXPORT Player { 19 | BOOL m_bExists; 20 | char m_szText[256]; 21 | int m_creationTick; 22 | int m_lifeSpan; 23 | D3DCOLOR m_color; 24 | float m_fDrawDistance; 25 | int m_nMaxLineLength; 26 | } m_player[1004]; 27 | 28 | CChatBubble(); 29 | 30 | void Add(ID nPlayer, const char* szText, D3DCOLOR color, float fDrawDistance, int lifeSpan); 31 | void Draw(); 32 | }; 33 | 34 | SAMPAPI_EXPORT SAMPAPI_VAR CChatBubble*& RefChatBubble(); 35 | 36 | SAMPAPI_END_PACKED 37 | -------------------------------------------------------------------------------- /include/sampapi/0.3.DL-1/CCustomModelsPool.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.DL-1) API project file. 3 | Developers: LUCHARE , ARMOR 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V03DL_1 15 | 16 | class SAMPAPI_EXPORT CCustomModelInfo { 17 | public: 18 | bool m_nIsDff; 19 | bool m_nIsTxd; 20 | unsigned short field_2; 21 | char field_4; 22 | char field_5; 23 | char field_6; 24 | char field_7; 25 | unsigned short field_8; 26 | unsigned short fiend_0A; 27 | int nStandartModelId; 28 | int nCustomModelId; 29 | char field_14[50]; 30 | int m_nDffModelIndex; 31 | int m_nTxdModelIndex; 32 | }; 33 | 34 | class SAMPAPI_EXPORT CCustomModelsPool { 35 | public: 36 | CCustomModelInfo* m_pObject[20000]; 37 | }; 38 | 39 | SAMPAPI_END_PACKED 40 | -------------------------------------------------------------------------------- /include/sampapi/0.3.DL-1/CDownloadedFilesPool.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.DL-1) API project file. 3 | Developers: LUCHARE , ARMOR 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V03DL_1 15 | 16 | struct SAMPAPI_EXPORT DownloadedFileInfo { 17 | int m_nFileNumber; 18 | char m_nFileType; 19 | int m_szFileId; 20 | char m_nFileState; 21 | int m_nFileDownloaded; 22 | int m_nFileRemainDownload; 23 | }; 24 | 25 | struct SAMPAPI_EXPORT CDownloadedFilesPool { 26 | DownloadedFileInfo *m_pObject[20000]; 27 | }; 28 | 29 | SAMPAPI_END_PACKED 30 | -------------------------------------------------------------------------------- /include/sampapi/0.3.DL-1/CGangZonePool.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.DL-1) API project file. 3 | Developers: LUCHARE , ARMOR 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V03DL_1 15 | 16 | struct SAMPAPI_EXPORT GangZone { 17 | struct SAMPAPI_EXPORT { 18 | float left; 19 | float bottom; 20 | float right; 21 | float top; 22 | } m_rect; 23 | D3DCOLOR m_color; 24 | D3DCOLOR m_altColor; 25 | }; 26 | 27 | class SAMPAPI_EXPORT CGangZonePool { 28 | public: 29 | enum { MAX_GANGZONES = 1024 }; 30 | 31 | GangZone* m_pObject[MAX_GANGZONES]; 32 | BOOL m_bNotEmpty[MAX_GANGZONES]; 33 | 34 | CGangZonePool(); 35 | ~CGangZonePool(); 36 | 37 | void Create(ID nId, float left, float top, float right, float bottom, D3DCOLOR color); 38 | void StartFlashing(ID nId, D3DCOLOR color); 39 | void StopFlashing(ID nId); 40 | void Delete(ID nId); 41 | void Draw(); 42 | }; 43 | 44 | SAMPAPI_END_PACKED 45 | -------------------------------------------------------------------------------- /include/sampapi/0.3.DL-1/CHelpDialog.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.DL-1) API project file. 3 | Developers: LUCHARE , ARMOR 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V03DL_1 15 | 16 | class SAMPAPI_EXPORT CHelpDialog { 17 | public: 18 | IDirect3DDevice9* m_pDevice; 19 | 20 | CHelpDialog(IDirect3DDevice9* pDevice = SAMPAPI_UNUSED); 21 | 22 | void Show(); 23 | }; 24 | 25 | SAMPAPI_EXPORT SAMPAPI_VAR CHelpDialog*& RefHelpDialog(); 26 | 27 | SAMPAPI_END_PACKED 28 | -------------------------------------------------------------------------------- /include/sampapi/0.3.DL-1/CLabel.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.DL-1) API project file. 3 | Developers: LUCHARE , ARMOR 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/CVector.h" 14 | 15 | SAMPAPI_BEGIN_PACKED_V03DL_1 16 | 17 | class SAMPAPI_EXPORT CLabel { 18 | public: 19 | IDirect3DDevice9* m_pDevice; 20 | ID3DXSprite* m_pSprite; 21 | 22 | CLabel(IDirect3DDevice9* pDevice); 23 | ~CLabel(); 24 | 25 | void OnLostDevice(); 26 | void OnResetDevice(); 27 | BOOL HasNoObstacles(CVector position); 28 | void Begin(); 29 | void End(); 30 | void Draw(CVector* pPosition, const char* szText, D3DCOLOR color, BOOL bShadow, bool bNoObstacles); 31 | }; 32 | 33 | SAMPAPI_EXPORT SAMPAPI_VAR CLabel*& RefLabel(); 34 | 35 | SAMPAPI_END_PACKED 36 | -------------------------------------------------------------------------------- /include/sampapi/0.3.DL-1/CLabelPool.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.DL-1) API project file. 3 | Developers: LUCHARE , ARMOR 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/CVector.h" 14 | 15 | SAMPAPI_BEGIN_PACKED_V03DL_1 16 | 17 | struct SAMPAPI_EXPORT TextLabel { 18 | char* m_pText; 19 | D3DCOLOR m_color; 20 | CVector m_position; 21 | float m_fDrawDistance; 22 | bool m_bBehindWalls; 23 | ID m_nAttachedToPlayer; 24 | ID m_nAttachedToVehicle; 25 | }; 26 | 27 | class SAMPAPI_EXPORT CLabelPool { 28 | public: 29 | enum { MAX_TEXT_LABELS = 2048 }; 30 | 31 | TextLabel m_object[MAX_TEXT_LABELS]; 32 | BOOL m_bNotEmpty[MAX_TEXT_LABELS]; 33 | 34 | CLabelPool(); 35 | ~CLabelPool(); 36 | 37 | void Create(ID nId, const char* szText, D3DCOLOR color, CVector position, float fDrawDistance, bool bBehindWalls, ID nAttachedToPlayer, ID nAttachedToVehicle); 38 | BOOL Delete(ID nId); 39 | void Draw(); 40 | }; 41 | 42 | SAMPAPI_END_PACKED 43 | -------------------------------------------------------------------------------- /include/sampapi/0.3.DL-1/CLicensePlate.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.DL-1) API project file. 3 | Developers: LUCHARE , ARMOR 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V03DL_1 15 | 16 | class SAMPAPI_EXPORT CLicensePlate { 17 | public: 18 | static constexpr auto DEFAULT_PLATE_FONT = "Arial"; 19 | static constexpr auto DEFAULT_PLATE_TEXT = "XYZSR998"; 20 | enum { 21 | DEFAULT_PLATE_TEXT_COLOR = 0xEE444470, 22 | DEFAULT_PLATE_BG_COLOR = 0xFFBEB6A8, 23 | }; 24 | 25 | IDirect3DDevice9* m_pDevice; 26 | ID3DXRenderToSurface* m_pRenderer; 27 | IDirect3DTexture9* m_pTexture; 28 | IDirect3DSurface9* m_pSurface; 29 | #ifdef _d3d9TYPES_H_ 30 | D3DDISPLAYMODE m_displayMode; 31 | #else 32 | unsigned int m_displayMode[4]; 33 | #endif 34 | IDirect3DTexture9* m_pDefaultPlate; 35 | 36 | CLicensePlate(IDirect3DDevice9* pDevice); 37 | ~CLicensePlate(); 38 | 39 | void OnLostDevice(); 40 | void OnResetDevice(); 41 | IDirect3DTexture9* Create(const char* szText); 42 | }; 43 | 44 | SAMPAPI_EXPORT SAMPAPI_VAR CLicensePlate*& RefLicensePlateManager(); 45 | 46 | SAMPAPI_END_PACKED 47 | -------------------------------------------------------------------------------- /include/sampapi/0.3.DL-1/CMenuPool.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.DL-1) API project file. 3 | Developers: LUCHARE , ARMOR 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/0.3.DL-1/CMenu.h" 14 | 15 | SAMPAPI_BEGIN_PACKED_V03DL_1 16 | 17 | class SAMPAPI_EXPORT CMenuPool { 18 | public: 19 | enum { MAX_MENUS = 128 }; 20 | 21 | CMenu* m_pObject[MAX_MENUS]; 22 | BOOL m_bNotEmpty[MAX_MENUS]; 23 | NUMBER m_nCurrent; 24 | bool m_bCanceled; 25 | 26 | CMenuPool(); 27 | ~CMenuPool(); 28 | 29 | CMenu* Create(NUMBER nId, float fX, float fY, char nColumns, float fFirstColumnWidth, float fSecondColumnWidth, const CMenu::Interaction* pInteraction); 30 | BOOL Delete(NUMBER nId); 31 | void Show(NUMBER nId); 32 | void Hide(NUMBER nId); 33 | char* GetTextPointer(const char* szName); 34 | void Process(); 35 | }; 36 | 37 | SAMPAPI_END_PACKED 38 | -------------------------------------------------------------------------------- /include/sampapi/0.3.DL-1/CNetStats.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.DL-1) API project file. 3 | Developers: LUCHARE , ARMOR 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V03DL_1 15 | 16 | class SAMPAPI_EXPORT CNetStats { 17 | public: 18 | unsigned long m_dwLastTotalBytesSent; 19 | unsigned long m_dwLastTotalBytesRecv; 20 | unsigned long m_dwLastUpdateTick; 21 | unsigned long m_dwBPSUpload; 22 | unsigned long m_dwBPSDownload; 23 | IDirect3DDevice9* m_pDevice; 24 | 25 | CNetStats(IDirect3DDevice9* pDevice); 26 | 27 | void Draw(); 28 | }; 29 | 30 | SAMPAPI_EXPORT SAMPAPI_VAR CNetStats*& RefNetStats(); 31 | 32 | SAMPAPI_END_PACKED 33 | -------------------------------------------------------------------------------- /include/sampapi/0.3.DL-1/CObjectMaterialText.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.DL-1) API project file. 3 | Developers: LUCHARE , ARMOR 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V03DL_1 15 | 16 | class SAMPAPI_EXPORT CObjectMaterialText { 17 | public: 18 | IDirect3DDevice9* m_pDevice; 19 | ID3DXSprite* m_pSprite; 20 | ID3DXSprite* m_pSprite_0; // maybe unused 21 | 22 | CObjectMaterialText(IDirect3DDevice9* pDevice); 23 | ~CObjectMaterialText(); 24 | 25 | void OnResetDevice(); 26 | void OnLostDevice(); 27 | IDirect3DTexture9* Create(const char* szText, const char* szFont, char nFontSize, int nBgSizeX, int nBgSizeY, D3DCOLOR fontColor, D3DCOLOR bgColor, bool bBold, char align); 28 | }; 29 | 30 | SAMPAPI_EXPORT SAMPAPI_VAR CObjectMaterialText*& RefObjectMaterialTextManager(); 31 | 32 | SAMPAPI_END_PACKED 33 | -------------------------------------------------------------------------------- /include/sampapi/0.3.DL-1/CObjectPool.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.DL-1) API project file. 3 | Developers: LUCHARE , ARMOR 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/0.3.DL-1/CObject.h" 14 | 15 | class CObject; 16 | 17 | SAMPAPI_BEGIN_PACKED_V03DL_1 18 | 19 | class SAMPAPI_EXPORT CObjectPool { 20 | public: 21 | enum { MAX_OBJECTS = 2100 }; 22 | 23 | int m_nLargestId; 24 | BOOL m_bNotEmpty[MAX_OBJECTS]; 25 | CObject* m_pObject[MAX_OBJECTS]; 26 | 27 | CObjectPool(); 28 | ~CObjectPool(); 29 | 30 | void UpdateLargestId(); 31 | int GetCount(); 32 | BOOL Delete(ID nId); 33 | BOOL Create(ID nId, int nModel, CVector position, CVector rotation, float fDrawDistance); 34 | CObject* Find(::CObject* pGameObject); 35 | int GetId(::CObject* pGameObject); 36 | void Process(); 37 | void ConstructMaterials(); 38 | void ShutdownMaterials(); 39 | void Draw(); 40 | void DrawLast(); 41 | CObject* Get(ID nId); 42 | }; 43 | 44 | SAMPAPI_END_PACKED 45 | -------------------------------------------------------------------------------- /include/sampapi/0.3.DL-1/CObjectSelection.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.DL-1) API project file. 3 | Developers: LUCHARE , ARMOR 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V03DL_1 15 | 16 | class SAMPAPI_EXPORT CObjectSelection { 17 | public: 18 | BOOL m_bIsActive; 19 | ID m_nHoveredObject; 20 | 21 | CObjectSelection(); 22 | 23 | ID DefineObject(); 24 | void DrawLabels(); 25 | void Enable(BOOL bEnable); 26 | void Draw(); 27 | void SendNotification(); 28 | BOOL MsgProc(int uMsg, int wParam, int lParam); 29 | }; 30 | 31 | SAMPAPI_EXPORT SAMPAPI_VAR CObjectSelection*& RefObjectSelection(); 32 | 33 | SAMPAPI_END_PACKED 34 | -------------------------------------------------------------------------------- /include/sampapi/0.3.DL-1/CPlayerInfo.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.DL-1) API project file. 3 | Developers: LUCHARE , ARMOR 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/0.3.DL-1/CRemotePlayer.h" 14 | #include 15 | 16 | SAMPAPI_BEGIN_PACKED_V03DL_1 17 | 18 | class SAMPAPI_EXPORT CPlayerInfo { 19 | public: 20 | int m_nScore; 21 | BOOL m_bIsNPC; 22 | CRemotePlayer* m_pPlayer; 23 | unsigned int m_nPing; 24 | #ifndef _DEBUG 25 | private: 26 | unsigned int __align; 27 | 28 | public: 29 | #endif 30 | std::string m_szNick; 31 | 32 | CPlayerInfo(const char* szName, BOOL bIsNPC); 33 | ~CPlayerInfo(); 34 | }; 35 | 36 | SAMPAPI_END_PACKED 37 | -------------------------------------------------------------------------------- /include/sampapi/0.3.DL-1/CPlayerTags.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.DL-1) API project file. 3 | Developers: LUCHARE , ARMOR 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/CVector.h" 14 | 15 | SAMPAPI_BEGIN_PACKED_V03DL_1 16 | 17 | class SAMPAPI_EXPORT CPlayerTags { 18 | public: 19 | IDirect3DDevice9* m_pDevice; 20 | IDirect3DStateBlock9* m_pStates; 21 | ID3DXSprite* m_pSprite; 22 | 23 | CPlayerTags(IDirect3DDevice9* pDevice); 24 | ~CPlayerTags(); 25 | 26 | void EndHealthBar(); 27 | void BeginLabel(); 28 | void EndLabel(); 29 | void DrawLabel(CVector* pPosition, const char* szText, D3DCOLOR color, float fDistanceToCamera, bool bDrawStatus, int nStatus); 30 | void DrawHealthBar(CVector* pPosition, float fHealth, float fArmour, float fDistanceToCamera); 31 | void OnLostDevice(); 32 | void OnResetDevice(); 33 | void BeginHealthBar(); 34 | }; 35 | 36 | SAMPAPI_EXPORT SAMPAPI_VAR CPlayerTags*& RefPlayerTags(); 37 | 38 | SAMPAPI_END_PACKED 39 | -------------------------------------------------------------------------------- /include/sampapi/0.3.DL-1/CScoreboard.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.DL-1) API project file. 3 | Developers: LUCHARE , ARMOR 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/CRect.h" 14 | 15 | SAMPAPI_BEGIN_PACKED_V03DL_1 16 | 17 | class SAMPAPI_EXPORT CScoreboard { 18 | public: 19 | BOOL m_bIsEnabled; 20 | int m_nPlayerCount; 21 | float m_position[2]; 22 | float m_fScalar; 23 | float m_size[2]; 24 | float pad[5]; 25 | IDirect3DDevice9* m_pDevice; 26 | CDXUTDialog* m_pDialog; 27 | CDXUTListBox* m_pListBox; 28 | int m_nCurrentOffset; 29 | BOOL m_bIsSorted; 30 | 31 | CScoreboard(IDirect3DDevice9* pDevice); 32 | 33 | void Recalc(); 34 | void GetRect(CRect* pRect); 35 | void Close(bool bHideCursor); 36 | void ResetDialogControls(CDXUTDialog* pDialog); 37 | void SendNotification(); 38 | void UpdateList(); 39 | void Draw(); 40 | void Enable(); 41 | }; 42 | 43 | SAMPAPI_EXPORT SAMPAPI_VAR CScoreboard*& RefScoreboard(); 44 | 45 | SAMPAPI_END_PACKED 46 | -------------------------------------------------------------------------------- /include/sampapi/0.3.DL-1/CSpawnScreen.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.DL-1) API project file. 3 | Developers: LUCHARE , ARMOR 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/0.3.DL-1/CFonts.h" 14 | 15 | SAMPAPI_BEGIN_PACKED_V03DL_1 16 | 17 | class SAMPAPI_EXPORT CSpawnScreen { 18 | public: 19 | BOOL m_bEnabled; 20 | char* m_szSpawnText; 21 | CFonts* m_pFont; 22 | IDirect3DDevice9* m_pDevice; 23 | IDirect3DTexture9* m_pTexture; 24 | IDirect3DStateBlock9* m_pStateBlockSaved; 25 | IDirect3DStateBlock9* m_pStateBlockDraw; 26 | void* m_pSprite; 27 | 28 | CSpawnScreen(IDirect3DDevice9* pDevice); 29 | ~CSpawnScreen(); 30 | 31 | void SetText(const char* szString); 32 | void OnResetDevice(); 33 | void OnLostDevice(); 34 | void Draw(); 35 | }; 36 | 37 | SAMPAPI_EXPORT SAMPAPI_VAR CSpawnScreen*& RefSpawnScreen(); 38 | 39 | SAMPAPI_END_PACKED 40 | -------------------------------------------------------------------------------- /include/sampapi/0.3.DL-1/CSrvNetStats.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.DL-1) API project file. 3 | Developers: LUCHARE , ARMOR 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V03DL_1 15 | 16 | class SAMPAPI_EXPORT CSrvNetStats { 17 | public: 18 | unsigned long m_dwLastTotalBytesSent; 19 | unsigned long m_dwLastTotalBytesRecv; 20 | unsigned long m_dwLastUpdateTick; 21 | unsigned long m_dwBPSUpload; 22 | unsigned long m_dwBPSDownload; 23 | IDirect3DDevice9* m_pDevice; 24 | 25 | CSrvNetStats(IDirect3DDevice9* pDevice); 26 | 27 | void Draw(); 28 | }; 29 | 30 | SAMPAPI_EXPORT SAMPAPI_VAR CSrvNetStats*& RefServerNetStatistics(); 31 | 32 | SAMPAPI_END_PACKED 33 | -------------------------------------------------------------------------------- /include/sampapi/0.3.DL-1/CTextDrawPool.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.DL-1) API project file. 3 | Developers: LUCHARE , ARMOR 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/0.3.DL-1/CTextDraw.h" 14 | 15 | SAMPAPI_BEGIN_PACKED_V03DL_1 16 | 17 | class SAMPAPI_EXPORT CTextDrawPool { 18 | public: 19 | enum { 20 | MAX_TEXTDRAWS = 2048, 21 | MAX_LOCAL_TEXTDRAWS = 256, 22 | }; 23 | 24 | BOOL m_bNotEmpty[MAX_TEXTDRAWS + MAX_LOCAL_TEXTDRAWS]; 25 | CTextDraw* m_pObject[MAX_TEXTDRAWS + MAX_LOCAL_TEXTDRAWS]; 26 | 27 | CTextDrawPool(); 28 | ~CTextDrawPool(); 29 | 30 | void Delete(ID nId); 31 | void Draw(); 32 | CTextDraw* Create(int nId, CTextDraw::Transmit* pData, const char* szText); 33 | }; 34 | 35 | SAMPAPI_END_PACKED 36 | -------------------------------------------------------------------------------- /include/sampapi/0.3.DL-1/CTextDrawSelection.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.DL-1) API project file. 3 | Developers: LUCHARE , ARMOR 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V03DL_1 15 | 16 | class SAMPAPI_EXPORT CTextDrawSelection { 17 | public: 18 | BOOL m_bIsActive; 19 | D3DCOLOR m_hoveredColor; 20 | ID m_nHoveredId; 21 | 22 | CTextDrawSelection() { 23 | m_bIsActive = false; 24 | m_hoveredColor = -1; 25 | m_nHoveredId = -1; 26 | } 27 | 28 | ~CTextDrawSelection() { 29 | if (m_bIsActive) 30 | ResetTextDraws(); 31 | } 32 | 33 | void ResetTextDraws(); 34 | void RawProcess(); 35 | void Process(); 36 | void Enable(D3DCOLOR hoveredColor); 37 | void SendNotification(); 38 | void Disable(); 39 | BOOL MsgProc(int uMsg, int wParam, int lParam); 40 | }; 41 | 42 | SAMPAPI_EXPORT SAMPAPI_VAR CTextDrawSelection*& RefTextDrawSelection(); 43 | 44 | SAMPAPI_END_PACKED 45 | -------------------------------------------------------------------------------- /include/sampapi/0.3.DL-1/Exception.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.DL-1) API project file. 3 | Developers: LUCHARE , ARMOR 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V03DL_1 15 | 16 | namespace Exception { 17 | enum { MAX_EXCEPTIONS = 9 }; 18 | 19 | SAMPAPI_EXPORT SAMPAPI_VAR int& RefCount(); 20 | SAMPAPI_EXPORT SAMPAPI_VAR void*& RefContextRecord(); // PCONTEXT 21 | SAMPAPI_EXPORT SAMPAPI_VAR char* ArrayCrashDialogText(); // [16384] 22 | 23 | SAMPAPI_EXPORT BOOL Print(int nCode, void* pExceptionPointers, const char* szWarning); 24 | SAMPAPI_EXPORT void SendCrashReport(); 25 | SAMPAPI_EXPORT BOOL CrashDialogProc(void* hWnd, unsigned int uMsg, unsigned int wParam, long lParam); 26 | SAMPAPI_EXPORT void ConstructCrashDialogText(BOOL bModules); 27 | SAMPAPI_EXPORT long Handler(void* pExceptionPointers); 28 | } // namespace Exception 29 | 30 | SAMPAPI_END_PACKED 31 | -------------------------------------------------------------------------------- /include/sampapi/0.3.DL-1/InputHandler.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.DL-1) API project file. 3 | Developers: LUCHARE , ARMOR 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_V03DL_1 15 | 16 | void SwitchWindowedMode(); 17 | 18 | namespace InputHandler { 19 | enum { MAX_ANTICHEAT_DETECT_COUNT = 0xA }; 20 | 21 | SAMPAPI_EXPORT SAMPAPI_VAR void*& RefPrevWindowProc(); 22 | SAMPAPI_EXPORT SAMPAPI_VAR unsigned int& RefAntiCheatDetectCount(); 23 | 24 | SAMPAPI_EXPORT int WindowProc(unsigned int uMsg, unsigned int wParam, long lParam); 25 | SAMPAPI_EXPORT BOOL KeyPressHandler(unsigned int nKey); 26 | SAMPAPI_EXPORT BOOL CharInputHandler(unsigned int nChar); 27 | SAMPAPI_EXPORT BOOL Initialize(); 28 | } // namespace InputHandler 29 | 30 | SAMPAPI_END 31 | -------------------------------------------------------------------------------- /include/sampapi/0.3.DL-1/Settings.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.DL-1) API project file. 3 | Developers: LUCHARE , ARMOR 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_PACKED_V03DL_1 15 | 16 | struct SAMPAPI_EXPORT Settings { 17 | enum { SETTINGS_STRING_LEN = 256 }; 18 | 19 | BOOL m_bDebugMode; // -d 20 | BOOL m_bOnlineGame; // -c 21 | BOOL m_bWindowedMode; // unused 22 | char m_szPass[SETTINGS_STRING_LEN + 1]; // -z 23 | char m_szHost[SETTINGS_STRING_LEN + 1]; // -h 24 | char m_szPort[SETTINGS_STRING_LEN + 1]; // -p 25 | char m_szNick[SETTINGS_STRING_LEN + 1]; // -n 26 | char m_szDebugScript[SETTINGS_STRING_LEN + 1]; // -l 27 | 28 | static void Initialize(); 29 | static void GetFromCommandLine(const char* szLine, char* szString); 30 | static void GetFromQuotes(const char* szLine, char* szString); 31 | }; 32 | 33 | SAMPAPI_EXPORT SAMPAPI_VAR Settings& RefSettings(); 34 | 35 | SAMPAPI_END_PACKED 36 | -------------------------------------------------------------------------------- /include/sampapi/0.3.DL-1/SpecialAction.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.DL-1) API project file. 3 | Developers: LUCHARE , ARMOR 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_V03DL_1 15 | 16 | enum SpecialAction { 17 | SPECIAL_ACTION_NONE, 18 | SPECIAL_ACTION_DUCK, 19 | SPECIAL_ACTION_USEJETPACK, 20 | SPECIAL_ACTION_ENTER_VEHICLE, 21 | SPECIAL_ACTION_EXIT_VEHICLE, 22 | SPECIAL_ACTION_DANCE1, 23 | SPECIAL_ACTION_DANCE2, 24 | SPECIAL_ACTION_DANCE3, 25 | SPECIAL_ACTION_DANCE4, 26 | SPECIAL_ACTION_HANDSUP, 27 | SPECIAL_ACTION_USECELLPHONE, 28 | SPECIAL_ACTION_SITTING, 29 | SPECIAL_ACTION_STOPUSECELLPHONE, 30 | SPECIAL_ACTION_DRINK_BEER = 20, 31 | SPECIAL_ACTION_SMOKE_CIGGY, 32 | SPECIAL_ACTION_DRINK_WINE, 33 | SPECIAL_ACTION_DRINK_SPRUNK, 34 | SPECIAL_ACTION_CUFFED, 35 | SPECIAL_ACTION_CARRY, 36 | SPECIAL_ACTION_URINATING = 68 37 | }; 38 | 39 | SAMPAPI_END 40 | -------------------------------------------------------------------------------- /include/sampapi/AimStuff.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/AimStuff.h" 3 | #include "sampapi/0.3.7-R3-1/AimStuff.h" 4 | #include "sampapi/0.3.7-R5-1/AimStuff.h" 5 | #include "sampapi/0.3.DL-1/AimStuff.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/Animation.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/Animation.h" 3 | #include "sampapi/0.3.7-R3-1/Animation.h" 4 | #include "sampapi/0.3.7-R5-1/Animation.h" 5 | #include "sampapi/0.3.DL-1/Animation.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/CActor.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/CActor.h" 3 | #include "sampapi/0.3.7-R3-1/CActor.h" 4 | #include "sampapi/0.3.7-R5-1/CActor.h" 5 | #include "sampapi/0.3.DL-1/CActor.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/CActorPool.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/CActorPool.h" 3 | #include "sampapi/0.3.7-R3-1/CActorPool.h" 4 | #include "sampapi/0.3.7-R5-1/CActorPool.h" 5 | #include "sampapi/0.3.DL-1/CActorPool.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/CAudio.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/CAudio.h" 3 | #include "sampapi/0.3.7-R3-1/CAudio.h" 4 | #include "sampapi/0.3.7-R5-1/CAudio.h" 5 | #include "sampapi/0.3.DL-1/CAudio.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/CAudioStream.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/CAudioStream.h" 3 | #include "sampapi/0.3.7-R3-1/CAudioStream.h" 4 | #include "sampapi/0.3.7-R5-1/CAudioStream.h" 5 | #include "sampapi/0.3.DL-1/CAudioStream.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/CCamera.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/CCamera.h" 3 | #include "sampapi/0.3.7-R3-1/CCamera.h" 4 | #include "sampapi/0.3.7-R5-1/CCamera.h" 5 | #include "sampapi/0.3.DL-1/CCamera.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/CChat.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/CChat.h" 3 | #include "sampapi/0.3.7-R3-1/CChat.h" 4 | #include "sampapi/0.3.7-R5-1/CChat.h" 5 | #include "sampapi/0.3.DL-1/CChat.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/CChatBubble.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/CChatBubble.h" 3 | #include "sampapi/0.3.7-R3-1/CChatBubble.h" 4 | #include "sampapi/0.3.7-R5-1/CChatBubble.h" 5 | #include "sampapi/0.3.DL-1/CChatBubble.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/CConfig.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/CConfig.h" 3 | #include "sampapi/0.3.7-R3-1/CConfig.h" 4 | #include "sampapi/0.3.7-R5-1/CConfig.h" 5 | #include "sampapi/0.3.DL-1/CConfig.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/CCustomModels.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.DL-1/CCustomModels.h" -------------------------------------------------------------------------------- /include/sampapi/CCustomModelsPool.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.DL-1/CCustomModelsPool.h" -------------------------------------------------------------------------------- /include/sampapi/CDeathWindow.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/CDeathWindow.h" 3 | #include "sampapi/0.3.7-R3-1/CDeathWindow.h" 4 | #include "sampapi/0.3.7-R5-1/CDeathWindow.h" 5 | #include "sampapi/0.3.DL-1/CDeathWindow.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/CDialog.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/CDialog.h" 3 | #include "sampapi/0.3.7-R3-1/CDialog.h" 4 | #include "sampapi/0.3.7-R5-1/CDialog.h" 5 | #include "sampapi/0.3.DL-1/CDialog.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/CDownloadWindow.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.DL-1/CDownloadWindow.h" 3 | -------------------------------------------------------------------------------- /include/sampapi/CDownloadedFilesPool.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.DL-1/CDownloadedFilesPool.h" 3 | -------------------------------------------------------------------------------- /include/sampapi/CEntity.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/CEntity.h" 3 | #include "sampapi/0.3.7-R3-1/CEntity.h" 4 | #include "sampapi/0.3.7-R5-1/CEntity.h" 5 | #include "sampapi/0.3.DL-1/CEntity.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/CFont.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R3-1/CFont.h" 3 | #include "sampapi/0.3.7-R5-1/CFont.h" 4 | #include "sampapi/0.3.DL-1/CFont.h" 5 | -------------------------------------------------------------------------------- /include/sampapi/CFonts.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/CFonts.h" 3 | #include "sampapi/0.3.7-R3-1/CFonts.h" 4 | #include "sampapi/0.3.7-R5-1/CFonts.h" 5 | #include "sampapi/0.3.DL-1/CFonts.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/CGame.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/CGame.h" 3 | #include "sampapi/0.3.7-R3-1/CGame.h" 4 | #include "sampapi/0.3.7-R5-1/CGame.h" 5 | #include "sampapi/0.3.DL-1/CGame.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/CGangZonePool.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/CGangZonePool.h" 3 | #include "sampapi/0.3.7-R3-1/CGangZonePool.h" 4 | #include "sampapi/0.3.7-R5-1/CGangZonePool.h" 5 | #include "sampapi/0.3.DL-1/CGangZonePool.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/CHelpDialog.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/CHelpDialog.h" 3 | #include "sampapi/0.3.7-R3-1/CHelpDialog.h" 4 | #include "sampapi/0.3.7-R5-1/CHelpDialog.h" 5 | #include "sampapi/0.3.DL-1/CHelpDialog.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/CHttpClient.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/CHttpClient.h" 3 | #include "sampapi/0.3.7-R3-1/CHttpClient.h" 4 | #include "sampapi/0.3.7-R5-1/CHttpClient.h" 5 | #include "sampapi/0.3.DL-1/CHttpClient.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/CInput.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/CInput.h" 3 | #include "sampapi/0.3.7-R3-1/CInput.h" 4 | #include "sampapi/0.3.7-R5-1/CInput.h" 5 | #include "sampapi/0.3.DL-1/CInput.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/CLabel.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/CLabel.h" 3 | #include "sampapi/0.3.7-R3-1/CLabel.h" 4 | #include "sampapi/0.3.7-R5-1/CLabel.h" 5 | #include "sampapi/0.3.DL-1/CLabel.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/CLabelPool.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/CLabelPool.h" 3 | #include "sampapi/0.3.7-R3-1/CLabelPool.h" 4 | #include "sampapi/0.3.7-R5-1/CLabelPool.h" 5 | #include "sampapi/0.3.DL-1/CLabelPool.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/CLicensePlate.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/CLicensePlate.h" 3 | #include "sampapi/0.3.7-R3-1/CLicensePlate.h" 4 | #include "sampapi/0.3.7-R5-1/CLicensePlate.h" 5 | #include "sampapi/0.3.DL-1/CLicensePlate.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/CLocalPlayer.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/CLocalPlayer.h" 3 | #include "sampapi/0.3.7-R3-1/CLocalPlayer.h" 4 | #include "sampapi/0.3.7-R5-1/CLocalPlayer.h" 5 | #include "sampapi/0.3.DL-1/CLocalPlayer.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_subdirectory(0.3.7-R1) 2 | add_subdirectory(0.3.7-R3-1) 3 | add_subdirectory(0.3.7-R5-1) 4 | add_subdirectory(0.3.DL-1) 5 | 6 | target_sources(sampapi 7 | PRIVATE 8 | sampapi.h 9 | CMatrix.h 10 | CRect.h 11 | CVector.h 12 | CPoint.h 13 | ) 14 | -------------------------------------------------------------------------------- /include/sampapi/CMatrix.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | #include "sampapi/CVector.h" 14 | 15 | SAMPAPI_BEGIN_COMMON 16 | 17 | class SAMPAPI_EXPORT CMatrix { 18 | public: 19 | CVector right; 20 | unsigned long flags; 21 | CVector up; 22 | float pad_u; 23 | CVector at; 24 | float pad_a; 25 | CVector pos; 26 | float pad_p; 27 | }; 28 | 29 | SAMPAPI_END_COMMON 30 | -------------------------------------------------------------------------------- /include/sampapi/CMenu.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/CMenu.h" 3 | #include "sampapi/0.3.7-R3-1/CMenu.h" 4 | #include "sampapi/0.3.7-R5-1/CMenu.h" 5 | #include "sampapi/0.3.DL-1/CMenu.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/CMenuPool.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/CMenuPool.h" 3 | #include "sampapi/0.3.7-R3-1/CMenuPool.h" 4 | #include "sampapi/0.3.7-R5-1/CMenuPool.h" 5 | #include "sampapi/0.3.DL-1/CMenuPool.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/CNetGame.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/CNetGame.h" 3 | #include "sampapi/0.3.7-R3-1/CNetGame.h" 4 | #include "sampapi/0.3.7-R5-1/CNetGame.h" 5 | #include "sampapi/0.3.DL-1/CNetGame.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/CNetStats.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/CNetStats.h" 3 | #include "sampapi/0.3.7-R3-1/CNetStats.h" 4 | #include "sampapi/0.3.7-R5-1/CNetStats.h" 5 | #include "sampapi/0.3.DL-1/CNetStats.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/CObject.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/CObject.h" 3 | #include "sampapi/0.3.7-R3-1/CObject.h" 4 | #include "sampapi/0.3.7-R5-1/CObject.h" 5 | #include "sampapi/0.3.DL-1/CObject.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/CObjectEdit.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/CObjectEdit.h" 3 | #include "sampapi/0.3.7-R3-1/CObjectEdit.h" 4 | #include "sampapi/0.3.7-R5-1/CObjectEdit.h" 5 | #include "sampapi/0.3.DL-1/CObjectEdit.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/CObjectMaterialText.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/CObjectMaterialText.h" 3 | #include "sampapi/0.3.7-R3-1/CObjectMaterialText.h" 4 | #include "sampapi/0.3.7-R5-1/CObjectMaterialText.h" 5 | #include "sampapi/0.3.DL-1/CObjectMaterialText.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/CObjectPool.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/CObjectPool.h" 3 | #include "sampapi/0.3.7-R3-1/CObjectPool.h" 4 | #include "sampapi/0.3.7-R5-1/CObjectPool.h" 5 | #include "sampapi/0.3.DL-1/CObjectPool.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/CObjectSelection.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/CObjectSelection.h" 3 | #include "sampapi/0.3.7-R3-1/CObjectSelection.h" 4 | #include "sampapi/0.3.7-R5-1/CObjectSelection.h" 5 | #include "sampapi/0.3.DL-1/CObjectSelection.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/CPed.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/CPed.h" 3 | #include "sampapi/0.3.7-R3-1/CPed.h" 4 | #include "sampapi/0.3.7-R5-1/CPed.h" 5 | #include "sampapi/0.3.DL-1/CPed.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/CPickupPool.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/CPickupPool.h" 3 | #include "sampapi/0.3.7-R3-1/CPickupPool.h" 4 | #include "sampapi/0.3.7-R5-1/CPickupPool.h" 5 | #include "sampapi/0.3.DL-1/CPickupPool.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/CPlayerInfo.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/CPlayerInfo.h" 3 | #include "sampapi/0.3.7-R3-1/CPlayerInfo.h" 4 | #include "sampapi/0.3.7-R5-1/CPlayerInfo.h" 5 | #include "sampapi/0.3.DL-1/CPlayerInfo.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/CPlayerPool.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/CPlayerPool.h" 3 | #include "sampapi/0.3.7-R3-1/CPlayerPool.h" 4 | #include "sampapi/0.3.7-R5-1/CPlayerPool.h" 5 | #include "sampapi/0.3.DL-1/CPlayerPool.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/CPlayerTags.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/CPlayerTags.h" 3 | #include "sampapi/0.3.7-R3-1/CPlayerTags.h" 4 | #include "sampapi/0.3.7-R5-1/CPlayerTags.h" 5 | #include "sampapi/0.3.DL-1/CPlayerTags.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/CPoint.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_COMMON 15 | 16 | class SAMPAPI_EXPORT CPoint { 17 | public: 18 | long x, y; 19 | 20 | CPoint(); 21 | CPoint(long x, long y); 22 | }; 23 | 24 | SAMPAPI_END_COMMON 25 | -------------------------------------------------------------------------------- /include/sampapi/CRect.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_COMMON 15 | 16 | class SAMPAPI_EXPORT CRect { 17 | public: 18 | long left, top; 19 | long right, bottom; 20 | 21 | CRect(); 22 | CRect(long left, long top, long right, long bottom); 23 | 24 | long GetWidth(); 25 | long GetHeight(); 26 | void Move(long x, long y); 27 | void Resize(long x, long y); 28 | void SetSize(long w, long h); 29 | void GetCenter(long* x, long* y); 30 | bool IsPointInside(long x, long y); 31 | }; 32 | 33 | SAMPAPI_END_COMMON 34 | -------------------------------------------------------------------------------- /include/sampapi/CRemotePlayer.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/CRemotePlayer.h" 3 | #include "sampapi/0.3.7-R3-1/CRemotePlayer.h" 4 | #include "sampapi/0.3.7-R5-1/CRemotePlayer.h" 5 | #include "sampapi/0.3.DL-1/CRemotePlayer.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/CScoreboard.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/CScoreboard.h" 3 | #include "sampapi/0.3.7-R3-1/CScoreboard.h" 4 | #include "sampapi/0.3.7-R5-1/CScoreboard.h" 5 | #include "sampapi/0.3.DL-1/CScoreboard.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/CSpawnScreen.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/CSpawnScreen.h" 3 | #include "sampapi/0.3.7-R3-1/CSpawnScreen.h" 4 | #include "sampapi/0.3.7-R5-1/CSpawnScreen.h" 5 | #include "sampapi/0.3.DL-1/CSpawnScreen.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/CSrvNetStats.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/CSrvNetStats.h" 3 | #include "sampapi/0.3.7-R3-1/CSrvNetStats.h" 4 | #include "sampapi/0.3.7-R5-1/CSrvNetStats.h" 5 | #include "sampapi/0.3.DL-1/CSrvNetStats.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/CTextDraw.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/CTextDraw.h" 3 | #include "sampapi/0.3.7-R3-1/CTextDraw.h" 4 | #include "sampapi/0.3.7-R5-1/CTextDraw.h" 5 | #include "sampapi/0.3.DL-1/CTextDraw.h" -------------------------------------------------------------------------------- /include/sampapi/CTextDrawPool.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/CTextDrawPool.h" 3 | #include "sampapi/0.3.7-R3-1/CTextDrawPool.h" 4 | #include "sampapi/0.3.7-R5-1/CTextDrawPool.h" 5 | #include "sampapi/0.3.DL-1/CTextDrawPool.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/CTextDrawSelection.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/CTextDrawSelection.h" 3 | #include "sampapi/0.3.7-R3-1/CTextDrawSelection.h" 4 | #include "sampapi/0.3.7-R5-1/CTextDrawSelection.h" 5 | #include "sampapi/0.3.DL-1/CTextDrawSelection.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/CVector.h: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "sampapi/sampapi.h" 13 | 14 | SAMPAPI_BEGIN_COMMON 15 | 16 | struct SAMPAPI_EXPORT VectorCompressed { 17 | unsigned short x, y, z; 18 | }; 19 | 20 | class SAMPAPI_EXPORT CVector { 21 | public: 22 | float x, y, z; 23 | 24 | CVector(); 25 | CVector(float x, float y, float z); 26 | 27 | void Set(float x, float y, float z); 28 | float GetLength() const; 29 | float GetLengthSquared() const; 30 | void Normalize(); 31 | float Dot(const CVector& vec) const; 32 | CVector Cross(const CVector& vec) const; 33 | void ZeroNearZero(); 34 | }; 35 | 36 | SAMPAPI_END_COMMON 37 | -------------------------------------------------------------------------------- /include/sampapi/CVehicle.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/CVehicle.h" 3 | #include "sampapi/0.3.7-R3-1/CVehicle.h" 4 | #include "sampapi/0.3.7-R5-1/CVehicle.h" 5 | #include "sampapi/0.3.DL-1/CVehicle.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/CVehiclePool.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/CVehiclePool.h" 3 | #include "sampapi/0.3.7-R3-1/CVehiclePool.h" 4 | #include "sampapi/0.3.7-R5-1/CVehiclePool.h" 5 | #include "sampapi/0.3.DL-1/CVehicle.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/Commands.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/Commands.h" 3 | #include "sampapi/0.3.7-R3-1/Commands.h" 4 | #include "sampapi/0.3.7-R5-1/Commands.h" 5 | #include "sampapi/0.3.DL-1/Commands.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/ControllerState.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/ControllerState.h" 3 | #include "sampapi/0.3.7-R3-1/ControllerState.h" 4 | #include "sampapi/0.3.7-R5-1/ControllerState.h" 5 | #include "sampapi/0.3.DL-1/ControllerState.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/Debug.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/Debug.h" 3 | -------------------------------------------------------------------------------- /include/sampapi/DebugScript.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/DebugScript.h" 3 | #include "sampapi/0.3.7-R3-1/DebugScript.h" 4 | #include "sampapi/0.3.7-R5-1/DebugScript.h" 5 | #include "sampapi/0.3.DL-1/DebugScript.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/Exception.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/Exception.h" 3 | #include "sampapi/0.3.7-R3-1/Exception.h" 4 | #include "sampapi/0.3.7-R5-1/Exception.h" 5 | #include "sampapi/0.3.DL-1/Exception.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/GUI.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/GUI.h" 3 | #include "sampapi/0.3.7-R3-1/GUI.h" 4 | #include "sampapi/0.3.7-R5-1/GUI.h" 5 | #include "sampapi/0.3.DL-1/GUI.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/InputHandler.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/InputHandler.h" 3 | #include "sampapi/0.3.7-R3-1/InputHandler.h" 4 | #include "sampapi/0.3.7-R5-1/InputHandler.h" 5 | #include "sampapi/0.3.DL-1/InputHandler.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/KeyStuff.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/KeyStuff.h" 3 | #include "sampapi/0.3.7-R3-1/KeyStuff.h" 4 | #include "sampapi/0.3.7-R5-1/KeyStuff.h" 5 | #include "sampapi/0.3.DL-1/KeyStuff.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/RPC.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/RPC.h" 3 | -------------------------------------------------------------------------------- /include/sampapi/RPCHandlers.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R3-1/RPCHandlers.h" 3 | #include "sampapi/0.3.7-R5-1/RPCHandlers.h" 4 | #include "sampapi/0.3.DL-1/RPCHandlers.h" 5 | -------------------------------------------------------------------------------- /include/sampapi/Scripting.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/Scripting.h" 3 | #include "sampapi/0.3.7-R3-1/Scripting.h" 4 | #include "sampapi/0.3.7-R5-1/Scripting.h" 5 | #include "sampapi/0.3.DL-1/Scripting.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/Settings.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/Settings.h" 3 | #include "sampapi/0.3.7-R3-1/Settings.h" 4 | #include "sampapi/0.3.7-R5-1/Settings.h" 5 | #include "sampapi/0.3.DL-1/Settings.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/SpecialAction.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/SpecialAction.h" 3 | #include "sampapi/0.3.7-R3-1/SpecialAction.h" 4 | #include "sampapi/0.3.7-R5-1/SpecialAction.h" 5 | #include "sampapi/0.3.DL-1/SpecialAction.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/Synchronization.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/Synchronization.h" 3 | #include "sampapi/0.3.7-R3-1/Synchronization.h" 4 | #include "sampapi/0.3.7-R5-1/Synchronization.h" 5 | #include "sampapi/0.3.DL-1/Synchronization.h" 6 | -------------------------------------------------------------------------------- /include/sampapi/VehicleSelection.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "sampapi/0.3.7-R1/VehicleSelection.h" 3 | -------------------------------------------------------------------------------- /src/sampapi/0.3.7-R1/CAudio.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R1) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.7-R1/CAudio.h" 11 | 12 | SAMPAPI_BEGIN_V037R1 13 | 14 | void CAudio::Play(int nSound, CVector location) { 15 | ((void(__thiscall*)(CAudio*, int, CVector))GetAddress(0x9D730))(this, nSound, location); 16 | } 17 | 18 | void CAudio::StartRadio(unsigned char nStation) { 19 | ((void(__thiscall*)(CAudio*, unsigned char))GetAddress(0x9D860))(this, nStation); 20 | } 21 | 22 | float CAudio::GetRadioVolume() { 23 | return ((float(__thiscall*)(CAudio*))GetAddress(0x9D8A0))(this); 24 | } 25 | 26 | SAMPAPI_END 27 | -------------------------------------------------------------------------------- /src/sampapi/0.3.7-R1/CChatBubble.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R1) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.7-R1/CChatBubble.h" 11 | 12 | SAMPAPI_BEGIN_V037R1 13 | 14 | SAMPAPI_VAR CChatBubble*& RefChatBubble() { 15 | return *(CChatBubble**)GetAddress(0x21A0DC); 16 | } 17 | 18 | CChatBubble::CChatBubble() { 19 | ((void(__thiscall*)(CChatBubble*))GetAddress(0x63220))(this); 20 | } 21 | 22 | void CChatBubble::Add(ID nPlayer, const char* szText, D3DCOLOR color, float fDrawDistance, int lifeSpan) { 23 | ((void(__thiscall*)(CChatBubble*, ID, const char*, D3DCOLOR, float, int))GetAddress(0x63250))(this, nPlayer, szText, color, fDrawDistance, lifeSpan); 24 | } 25 | 26 | void CChatBubble::Draw() { 27 | ((void(__thiscall*)(CChatBubble*))GetAddress(0x63310))(this); 28 | } 29 | 30 | SAMPAPI_END 31 | -------------------------------------------------------------------------------- /src/sampapi/0.3.7-R1/CHelpDialog.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R1) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.7-R1/CHelpDialog.h" 11 | 12 | SAMPAPI_BEGIN_V037R1 13 | 14 | SAMPAPI_VAR CHelpDialog*& RefHelpDialog() { 15 | return *(CHelpDialog**)GetAddress(0x21A0D8); 16 | } 17 | 18 | CHelpDialog::CHelpDialog(IDirect3DDevice9* pDevice) { 19 | ((void(__thiscall*)(CHelpDialog*, IDirect3DDevice9*))GetAddress(0x67440))(this, pDevice); 20 | } 21 | 22 | void CHelpDialog::Show() { 23 | ((void(__thiscall*)(CHelpDialog*))GetAddress(0x67450))(this); 24 | } 25 | 26 | SAMPAPI_END 27 | -------------------------------------------------------------------------------- /src/sampapi/0.3.7-R1/CLabelPool.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R1) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.7-R1/CLabelPool.h" 11 | 12 | SAMPAPI_BEGIN_V037R1 13 | 14 | CLabelPool::CLabelPool() { 15 | ((void(__thiscall*)(CLabelPool*))GetAddress(0x1180))(this); 16 | } 17 | 18 | CLabelPool::~CLabelPool() { 19 | ((void(__thiscall*)(CLabelPool*))GetAddress(0x15D0))(this); 20 | } 21 | 22 | void CLabelPool::Create(ID nId, const char* szText, D3DCOLOR color, CVector position, float fDrawDistance, bool bBehindWalls, ID nAttachedToPlayer, ID nAttachedToVehicle) { 23 | ((void(__thiscall*)(CLabelPool*, ID, const char*, D3DCOLOR, CVector, float, bool, ID, ID))GetAddress(0x11C0))(this, nId, szText, color, position, fDrawDistance, bBehindWalls, nAttachedToPlayer, nAttachedToVehicle); 24 | } 25 | 26 | BOOL CLabelPool::Delete(ID nId) { 27 | return ((BOOL(__thiscall*)(CLabelPool*, ID))GetAddress(0x12D0))(this, nId); 28 | } 29 | 30 | void CLabelPool::Draw() { 31 | ((void(__thiscall*)(CLabelPool*))GetAddress(0x1340))(this); 32 | } 33 | 34 | SAMPAPI_END 35 | -------------------------------------------------------------------------------- /src/sampapi/0.3.7-R1/CLicensePlate.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R1) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.7-R1/CLicensePlate.h" 11 | 12 | SAMPAPI_BEGIN_V037R1 13 | 14 | SAMPAPI_VAR CLicensePlate*& RefLicensePlateManager() { 15 | return *(CLicensePlate**)GetAddress(0x21A100); 16 | } 17 | 18 | CLicensePlate::CLicensePlate(IDirect3DDevice9* pDevice) { 19 | ((void(__thiscall*)(CLicensePlate*, IDirect3DDevice9*))GetAddress(0x692D0))(this, pDevice); 20 | } 21 | 22 | CLicensePlate::~CLicensePlate() { 23 | ((void(__thiscall*)(CLicensePlate*))GetAddress(0x69300))(this); 24 | } 25 | 26 | void CLicensePlate::OnLostDevice() { 27 | ((void(__thiscall*)(CLicensePlate*))GetAddress(0x690D0))(this); 28 | } 29 | 30 | void CLicensePlate::OnResetDevice() { 31 | ((void(__thiscall*)(CLicensePlate*))GetAddress(0x69120))(this); 32 | } 33 | 34 | IDirect3DTexture9* CLicensePlate::Create(const char* szText) { 35 | return ((IDirect3DTexture9 * (__thiscall*)(CLicensePlate*, const char*)) GetAddress(0x691A0))(this, szText); 36 | } 37 | 38 | SAMPAPI_END 39 | -------------------------------------------------------------------------------- /src/sampapi/0.3.7-R1/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | target_sources(sampapi 2 | PRIVATE 3 | AimStuff.cpp 4 | CActor.cpp 5 | CActorPool.cpp 6 | CAudio.cpp 7 | CAudioStream.cpp 8 | CCamera.cpp 9 | CChat.cpp 10 | CConfig.cpp 11 | CDeathWindow.cpp 12 | CDialog.cpp 13 | CEntity.cpp 14 | CFonts.cpp 15 | CGame.cpp 16 | CGangZonePool.cpp 17 | CHttpClient.cpp 18 | CInput.cpp 19 | CLabel.cpp 20 | CLabelPool.cpp 21 | CLicensePlate.cpp 22 | CLocalPlayer.cpp 23 | CMenu.cpp 24 | CMenuPool.cpp 25 | CNetGame.cpp 26 | CNetStats.cpp 27 | CObject.cpp 28 | CObjectPool.cpp 29 | CObjectSelection.cpp 30 | Commands.cpp 31 | CPed.cpp 32 | CPickupPool.cpp 33 | CPlayerInfo.cpp 34 | CPlayerPool.cpp 35 | CPlayerTags.cpp 36 | CRemotePlayer.cpp 37 | CScoreboard.cpp 38 | CSpawnScreen.cpp 39 | CTextDraw.cpp 40 | CTextDrawPool.cpp 41 | CTextDrawSelection.cpp 42 | CVehicle.cpp 43 | CVehiclePool.cpp 44 | Debug.cpp 45 | DebugScript.cpp 46 | Exception.cpp 47 | GUI.cpp 48 | InputHandler.cpp 49 | KeyStuff.cpp 50 | RPC.cpp 51 | Scripting.cpp 52 | Settings.cpp 53 | VehicleSelection.cpp 54 | CChatBubble.cpp 55 | CHelpDialog.cpp 56 | CObjectMaterialText.cpp 57 | CSrvNetStats.cpp 58 | CObjectEdit.cpp 59 | ) 60 | -------------------------------------------------------------------------------- /src/sampapi/0.3.7-R1/CNetStats.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R1) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.7-R1/CNetStats.h" 11 | 12 | SAMPAPI_BEGIN_V037R1 13 | 14 | SAMPAPI_VAR CNetStats*& RefNetStats() { 15 | return *(CNetStats**)GetAddress(0x21A0D0); 16 | } 17 | 18 | CNetStats::CNetStats(IDirect3DDevice9* pDevice) { 19 | ((void(__thiscall*)(CNetStats*, IDirect3DDevice9*))GetAddress(0x5D220))(this, pDevice); 20 | } 21 | 22 | void CNetStats::Draw() { 23 | ((void(__thiscall*)(CNetStats*))GetAddress(0x5D250))(this); 24 | } 25 | 26 | SAMPAPI_END 27 | -------------------------------------------------------------------------------- /src/sampapi/0.3.7-R1/CPlayerInfo.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R1) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.7-R1/CPlayerInfo.h" 11 | 12 | SAMPAPI_BEGIN_V037R1 13 | 14 | CPlayerInfo::CPlayerInfo(const char* szName, BOOL bIsNPC) { 15 | ((void(__thiscall*)(CPlayerInfo*, const char*, BOOL))GetAddress(0x10CB0))(this, szName, bIsNPC); 16 | } 17 | 18 | CPlayerInfo::~CPlayerInfo() { 19 | ((void(__thiscall*)(CPlayerInfo*))GetAddress(0x10A50))(this); 20 | } 21 | 22 | SAMPAPI_END 23 | -------------------------------------------------------------------------------- /src/sampapi/0.3.7-R1/CSpawnScreen.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R1) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.7-R1/CSpawnScreen.h" 11 | 12 | SAMPAPI_BEGIN_V037R1 13 | 14 | SAMPAPI_VAR CSpawnScreen*& RefSpawnScreen() { 15 | return *(CSpawnScreen**)GetAddress(0x21A0F4); 16 | } 17 | 18 | void CSpawnScreen::SetText(const char* szText) { 19 | ((void(__thiscall*)(CSpawnScreen*, const char*))GetAddress(0x6C5B0))(this, szText); 20 | } 21 | 22 | void CSpawnScreen::OnResetDevice() { 23 | ((void(__thiscall*)(CSpawnScreen*))GetAddress(0x6C610))(this); 24 | } 25 | 26 | void CSpawnScreen::OnLostDevice() { 27 | ((void(__thiscall*)(CSpawnScreen*))GetAddress(0x6C8C0))(this); 28 | } 29 | 30 | CSpawnScreen::CSpawnScreen(IDirect3DDevice9* pDevice) { 31 | ((void(__thiscall*)(CSpawnScreen*, IDirect3DDevice9*))GetAddress(0x6C910))(this, pDevice); 32 | } 33 | 34 | CSpawnScreen::~CSpawnScreen() { 35 | ((void(__thiscall*)(CSpawnScreen*))GetAddress(0x6C950))(this); 36 | } 37 | 38 | void CSpawnScreen::Draw() { 39 | ((void(__thiscall*)(CSpawnScreen*))GetAddress(0x6C9B0))(this); 40 | } 41 | 42 | SAMPAPI_END 43 | -------------------------------------------------------------------------------- /src/sampapi/0.3.7-R1/CSrvNetStats.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R1) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.7-R1/CSrvNetStats.h" 11 | 12 | SAMPAPI_BEGIN_V037R1 13 | 14 | SAMPAPI_VAR CSrvNetStats*& RefServerNetStatistics() { 15 | return *(CSrvNetStats**)GetAddress(0x21A0D4); 16 | } 17 | 18 | CSrvNetStats::CSrvNetStats(IDirect3DDevice9* pDevice) { 19 | ((void(__thiscall*)(CSrvNetStats*, IDirect3DDevice9*))GetAddress(0x6CC40))(this, pDevice); 20 | } 21 | 22 | void CSrvNetStats::Draw() { 23 | ((void(__thiscall*)(CSrvNetStats*))GetAddress(0x6CC80))(this); 24 | } 25 | 26 | SAMPAPI_END 27 | -------------------------------------------------------------------------------- /src/sampapi/0.3.7-R1/CTextDraw.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R1) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.7-R1/CTextDraw.h" 11 | 12 | SAMPAPI_BEGIN_V037R1 13 | 14 | CTextDraw::CTextDraw(Transmit* pTransmit, const char* szText) { 15 | ((void(__thiscall*)(CTextDraw*, Transmit*, const char*))GetAddress(0xACF10))(this, pTransmit, szText); 16 | } 17 | 18 | CTextDraw::~CTextDraw() { 19 | ((void(__thiscall*)(CTextDraw*))GetAddress(0xAC860))(this); 20 | } 21 | 22 | void CTextDraw::SetText(const char* szText) { 23 | ((void(__thiscall*)(CTextDraw*, const char*))GetAddress(0xAC870))(this, szText); 24 | } 25 | 26 | void CTextDraw::Draw() { 27 | ((void(__thiscall*)(CTextDraw*))GetAddress(0xACD90))(this); 28 | } 29 | 30 | SAMPAPI_END 31 | -------------------------------------------------------------------------------- /src/sampapi/0.3.7-R1/CTextDrawPool.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R1) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.7-R1/CTextDrawPool.h" 11 | 12 | SAMPAPI_BEGIN_V037R1 13 | 14 | CTextDrawPool::CTextDrawPool() { 15 | ((void(__thiscall*)(CTextDrawPool*))GetAddress(0x1ACB0))(this); 16 | } 17 | 18 | CTextDrawPool::~CTextDrawPool() { 19 | ((void(__thiscall*)(CTextDrawPool*))GetAddress(0x1ADE0))(this); 20 | } 21 | 22 | CTextDraw* CTextDrawPool::Create(int nId, CTextDraw::Transmit* pTransmit, const char* szText) { 23 | return ((CTextDraw * (__thiscall*)(CTextDrawPool*, int, CTextDraw::Transmit*, const char*)) GetAddress(0x1AE20))(this, nId, pTransmit, szText); 24 | } 25 | 26 | void CTextDrawPool::Delete(ID nId) { 27 | ((void(__thiscall*)(CTextDrawPool*, ID))GetAddress(0x1AD00))(this, nId); 28 | } 29 | 30 | void CTextDrawPool::Draw() { 31 | ((void(__thiscall*)(CTextDrawPool*))GetAddress(0x1AD40))(this); 32 | } 33 | 34 | SAMPAPI_END 35 | -------------------------------------------------------------------------------- /src/sampapi/0.3.7-R1/Debug.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R1) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.7-R1/Debug.h" 11 | 12 | SAMPAPI_BEGIN_V037R1 13 | 14 | SAMPAPI_VAR int& Debug::RefMode() { 15 | return *(int*)GetAddress(0x13BB18); 16 | } 17 | 18 | SAMPAPI_VAR void*& Debug::RefFirstEntity() { 19 | return *(void**)GetAddress(0x13BB1C); 20 | } 21 | 22 | SAMPAPI_VAR void*& Debug::RefSecondEntity() { 23 | return *(void**)GetAddress(0x13BB20); 24 | } 25 | 26 | void Debug::SetProperties(void* pFirstEntity, void* pSecondEntity, int nMode) { 27 | ((void(__cdecl*)(void*, void*, int))GetAddress(0x996E0))(pFirstEntity, pSecondEntity, nMode); 28 | } 29 | 30 | void Debug::Disable() { 31 | ((void(__cdecl*)())GetAddress(0x99700))(); 32 | } 33 | 34 | SAMPAPI_END 35 | -------------------------------------------------------------------------------- /src/sampapi/0.3.7-R1/DebugScript.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R1) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.7-R1/DebugScript.h" 11 | 12 | SAMPAPI_BEGIN_V037R1 13 | 14 | SAMPAPI_VAR CObjectPool*& DebugScript::RefPrivateObjectPool() { 15 | return *(CObjectPool**)GetAddress(0x13BB74); 16 | } 17 | 18 | SAMPAPI_VAR unsigned short& DebugScript::RefObjectCount() { 19 | return *(unsigned short*)GetAddress(0x13BB78); 20 | } 21 | 22 | SAMPAPI_VAR CVector& DebugScript::RefNewCameraPos() { 23 | return *(CVector*)GetAddress(0x13BB68); 24 | } 25 | 26 | void DebugScript::Initialize(const char* szFile) { 27 | ((void(__cdecl*)(const char*))GetAddress(0x99FF0))(szFile); 28 | } 29 | 30 | void DebugScript::ProcessLine(const char* szLine) { 31 | ((void(__cdecl*)(const char*))GetAddress(0x99EE0))(szLine); 32 | } 33 | 34 | char* DebugScript::GetCommandParams(char* szLine) { 35 | return ((char*(__cdecl*)(char*))GetAddress(0x99AF0))(szLine); 36 | } 37 | 38 | void DebugScript::CreateVehicle(const char* szParams) { 39 | ((void(__cdecl*)(const char*))GetAddress(0x99C50))(szParams); 40 | } 41 | 42 | SAMPAPI_END 43 | -------------------------------------------------------------------------------- /src/sampapi/0.3.7-R1/InputHandler.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R1) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.7-R1/InputHandler.h" 11 | 12 | SAMPAPI_BEGIN_V037R1 13 | 14 | SAMPAPI_VAR void*& InputHandler::RefPrevWindowProc() { 15 | return *(void**)GetAddress(0x119CB8); 16 | } 17 | 18 | SAMPAPI_VAR unsigned int& InputHandler::RefAntiCheatDetectCount() { 19 | return *(unsigned int*)GetAddress(0x21A130); 20 | } 21 | 22 | int InputHandler::WindowProc(unsigned int uMsg, unsigned int wParam, long lParam) { 23 | return ((int(__stdcall*)(unsigned int, unsigned int, long))GetAddress(0x5DB40))(uMsg, wParam, lParam); 24 | } 25 | 26 | BOOL InputHandler::KeyPressHandler(unsigned int nKey) { 27 | return ((BOOL(__cdecl*)(unsigned int))GetAddress(0x5D850))(nKey); 28 | } 29 | 30 | BOOL InputHandler::CharInputHandler(unsigned int nChar) { 31 | return ((BOOL(__cdecl*)(unsigned int))GetAddress(0x5DA80))(nChar); 32 | } 33 | 34 | BOOL InputHandler::Initialize() { 35 | return ((BOOL(__cdecl*)())GetAddress(0x5E3B0))(); 36 | } 37 | 38 | void SwitchWindowedMode() { 39 | ((void(__cdecl*)())GetAddress(0x5D800))(); 40 | } 41 | 42 | SAMPAPI_END 43 | -------------------------------------------------------------------------------- /src/sampapi/0.3.7-R1/RPC.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R1) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.7-R1/RPC.h" 11 | 12 | SAMPAPI_BEGIN_V037R1 13 | 14 | int RPC::Outcoming::ClassRequest::ID = 128; 15 | int RPC::Outcoming::DeathNotification::ID = 53; 16 | int RPC::Outcoming::InteriorChangeNotification::ID = 118; 17 | int RPC::Outcoming::Spawn::ID = 52; 18 | int RPC::Outcoming::SpawnRequest::ID = 129; 19 | int RPC::Outcoming::UpdateVehicleDamage::ID = 106; 20 | int RPC::Outcoming::EnterVehicleNotification::ID = 26; 21 | int RPC::Outcoming::ExitVehicleNotification::ID = 154; 22 | int RPC::Outcoming::UpdatePlayersInfo::ID = 155; 23 | int RPC::Outcoming::ClickPlayer::ID = 23; 24 | 25 | SAMPAPI_END 26 | -------------------------------------------------------------------------------- /src/sampapi/0.3.7-R1/Settings.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R1) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.7-R1/Settings.h" 11 | 12 | SAMPAPI_BEGIN_V037R1 13 | 14 | SAMPAPI_VAR Settings& RefSettings() { 15 | return *(Settings*)GetAddress(0x219760); 16 | } 17 | 18 | void Settings::Initialize() { 19 | ((void(__cdecl*)())GetAddress(0xB2FF0))(); 20 | } 21 | 22 | void Settings::GetFromCommandLine(const char* szLine, char* szString) { 23 | ((void(__cdecl*)(const char*, char*))GetAddress(0xB28F0))(szLine, szString); 24 | } 25 | 26 | void Settings::GetFromQuotes(const char* szLine, char* szString) { 27 | ((void(__cdecl*)(const char*, char*))GetAddress(0xB2940))(szLine, szString); 28 | } 29 | 30 | SAMPAPI_END 31 | -------------------------------------------------------------------------------- /src/sampapi/0.3.7-R1/VehicleSelection.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R1) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.7-R1/VehicleSelection.h" 11 | 12 | SAMPAPI_BEGIN_V037R1 13 | 14 | SAMPAPI_VAR CCamera*& VehicleSelection::RefCamera() { 15 | return *(CCamera**)GetAddress(0x13BA7C); 16 | } 17 | 18 | SAMPAPI_VAR CVehicle*& VehicleSelection::RefVehicle() { 19 | return *(CVehicle**)GetAddress(0x13BB64); 20 | } 21 | 22 | SAMPAPI_VAR CPad*& VehicleSelection::RefControls() { 23 | return *(CPad**)GetAddress(0x13BA78); 24 | } 25 | 26 | SAMPAPI_VAR BOOL& VehicleSelection::RefInitialized() { 27 | return *(BOOL*)GetAddress(0x13BB60); 28 | } 29 | 30 | SAMPAPI_VAR int& VehicleSelection::RefSelectedModel() { 31 | return *(int*)GetAddress(0x1014B4); 32 | } 33 | 34 | void VehicleSelection::ResetVehicle() { 35 | ((void(__cdecl*)())GetAddress(0x99710))(); 36 | } 37 | 38 | void VehicleSelection::Process() { 39 | ((void(__cdecl*)())GetAddress(0x99AD0))(); 40 | } 41 | 42 | SAMPAPI_END 43 | -------------------------------------------------------------------------------- /src/sampapi/0.3.7-R3-1/CChatBubble.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R3) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.7-R3-1/CChatBubble.h" 11 | 12 | SAMPAPI_BEGIN_V037R3_1 13 | 14 | SAMPAPI_VAR CChatBubble*& RefChatBubble() { 15 | return *(CChatBubble**)GetAddress(0x26E8C0); 16 | } 17 | 18 | CChatBubble::CChatBubble() { 19 | ((void(__thiscall*)(CChatBubble*))GetAddress(0x66670))(this); 20 | } 21 | 22 | void CChatBubble::Add(ID nPlayer, const char* szText, D3DCOLOR color, float fDrawDistance, int lifeSpan) { 23 | ((void(__thiscall*)(CChatBubble*, ID, const char*, D3DCOLOR, float, int))GetAddress(0x666A0))(this, nPlayer, szText, color, fDrawDistance, lifeSpan); 24 | } 25 | 26 | void CChatBubble::Draw() { 27 | ((void(__thiscall*)(CChatBubble*))GetAddress(0x66760))(this); 28 | } 29 | 30 | SAMPAPI_END 31 | -------------------------------------------------------------------------------- /src/sampapi/0.3.7-R3-1/CFont.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R3) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.7-R3-1/CFont.h" 11 | 12 | SAMPAPI_BEGIN_V037R3_1 13 | 14 | CFont::CFont() { 15 | ((void(__thiscall*)(CFont*))GetAddress(0x6B160))(this); 16 | } 17 | 18 | CFont::CFont(ID3DXFont* pFont) { 19 | *(void**)this = (void*)GetAddress(0xEA3B8); 20 | m_pFont = pFont; 21 | } 22 | 23 | SAMPAPI_END 24 | -------------------------------------------------------------------------------- /src/sampapi/0.3.7-R3-1/CHelpDialog.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R3) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.7-R3-1/CHelpDialog.h" 11 | 12 | SAMPAPI_BEGIN_V037R3_1 13 | 14 | SAMPAPI_VAR CHelpDialog*& RefHelpDialog() { 15 | return *(CHelpDialog**)GetAddress(0x26E8BC); 16 | } 17 | 18 | CHelpDialog::CHelpDialog(IDirect3DDevice9* pDevice) { 19 | ((void(__thiscall*)(CHelpDialog*, IDirect3DDevice9*))GetAddress(0x6B3B0))(this, pDevice); 20 | } 21 | 22 | void CHelpDialog::Show() { 23 | ((void(__thiscall*)(CHelpDialog*))GetAddress(0x6B3C0))(this); 24 | } 25 | 26 | SAMPAPI_END 27 | -------------------------------------------------------------------------------- /src/sampapi/0.3.7-R3-1/CLabelPool.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R3) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.7-R3-1/CLabelPool.h" 11 | 12 | SAMPAPI_BEGIN_V037R3_1 13 | 14 | CLabelPool::CLabelPool() { 15 | ((void(__thiscall*)(CLabelPool*))GetAddress(0x1180))(this); 16 | } 17 | 18 | CLabelPool::~CLabelPool() { 19 | ((void(__thiscall*)(CLabelPool*))GetAddress(0x15D0))(this); 20 | } 21 | 22 | void CLabelPool::Create(ID nId, const char* szText, D3DCOLOR color, CVector position, float fDrawDistance, bool bBehindWalls, ID nAttachedToPlayer, ID nAttachedToVehicle) { 23 | ((void(__thiscall*)(CLabelPool*, ID, const char*, D3DCOLOR, CVector, float, bool, ID, ID))GetAddress(0x11C0))(this, nId, szText, color, position, fDrawDistance, bBehindWalls, nAttachedToPlayer, nAttachedToVehicle); 24 | } 25 | 26 | BOOL CLabelPool::Delete(ID nId) { 27 | return ((BOOL(__thiscall*)(CLabelPool*, ID))GetAddress(0x12D0))(this, nId); 28 | } 29 | 30 | void CLabelPool::Draw() { 31 | ((void(__thiscall*)(CLabelPool*))GetAddress(0x1340))(this); 32 | } 33 | 34 | SAMPAPI_END 35 | -------------------------------------------------------------------------------- /src/sampapi/0.3.7-R3-1/CLicensePlate.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R3) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.7-R3-1/CLicensePlate.h" 11 | 12 | SAMPAPI_BEGIN_V037R3_1 13 | 14 | SAMPAPI_VAR CLicensePlate*& RefLicensePlateManager() { 15 | return *(CLicensePlate**)GetAddress(0x26E8E8); 16 | } 17 | 18 | CLicensePlate::CLicensePlate(IDirect3DDevice9* pDevice) { 19 | ((void(__thiscall*)(CLicensePlate*, IDirect3DDevice9*))GetAddress(0x6D240))(this, pDevice); 20 | } 21 | 22 | CLicensePlate::~CLicensePlate() { 23 | ((void(__thiscall*)(CLicensePlate*))GetAddress(0x6D270))(this); 24 | } 25 | 26 | void CLicensePlate::OnLostDevice() { 27 | ((void(__thiscall*)(CLicensePlate*))GetAddress(0x6D040))(this); 28 | } 29 | 30 | void CLicensePlate::OnResetDevice() { 31 | ((void(__thiscall*)(CLicensePlate*))GetAddress(0x6D090))(this); 32 | } 33 | 34 | IDirect3DTexture9* CLicensePlate::Create(const char* szText) { 35 | return ((IDirect3DTexture9 * (__thiscall*)(CLicensePlate*, const char*)) GetAddress(0x6D110))(this, szText); 36 | } 37 | 38 | SAMPAPI_END 39 | -------------------------------------------------------------------------------- /src/sampapi/0.3.7-R3-1/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | target_sources(sampapi 2 | PRIVATE 3 | AimStuff.cpp 4 | CActor.cpp 5 | CActorPool.cpp 6 | CAudio.cpp 7 | CAudioStream.cpp 8 | CCamera.cpp 9 | CChat.cpp 10 | CChatBubble.cpp 11 | CConfig.cpp 12 | CDeathWindow.cpp 13 | CDialog.cpp 14 | CEntity.cpp 15 | CFont.cpp 16 | CFonts.cpp 17 | CGame.cpp 18 | CGangZonePool.cpp 19 | CHelpDialog.cpp 20 | CHttpClient.cpp 21 | CInput.cpp 22 | CLabel.cpp 23 | CLabelPool.cpp 24 | CLicensePlate.cpp 25 | CLocalPlayer.cpp 26 | CMenu.cpp 27 | CMenuPool.cpp 28 | CNetGame.cpp 29 | CNetStats.cpp 30 | CObject.cpp 31 | CObjectMaterialText.cpp 32 | CObjectPool.cpp 33 | CObjectSelection.cpp 34 | Commands.cpp 35 | CPed.cpp 36 | CPickupPool.cpp 37 | CPlayerInfo.cpp 38 | CPlayerPool.cpp 39 | CPlayerTags.cpp 40 | CRemotePlayer.cpp 41 | CScoreboard.cpp 42 | CSpawnScreen.cpp 43 | CSrvNetStats.cpp 44 | CTextDraw.cpp 45 | CTextDrawPool.cpp 46 | CTextDrawSelection.cpp 47 | CVehicle.cpp 48 | CVehiclePool.cpp 49 | DebugScript.cpp 50 | Exception.cpp 51 | GUI.cpp 52 | KeyStuff.cpp 53 | Scripting.cpp 54 | Settings.cpp 55 | InputHandler.cpp 56 | CObjectEdit.cpp 57 | RPCHandlers.cpp 58 | ) 59 | -------------------------------------------------------------------------------- /src/sampapi/0.3.7-R3-1/CNetStats.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R3) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.7-R3-1/CNetStats.h" 11 | 12 | SAMPAPI_BEGIN_V037R3_1 13 | 14 | SAMPAPI_VAR CNetStats*& RefNetStats() { 15 | return *(CNetStats**)GetAddress(0x26E8B4); 16 | } 17 | 18 | CNetStats::CNetStats(IDirect3DDevice9* pDevice) { 19 | ((void(__thiscall*)(CNetStats*, IDirect3DDevice9*))GetAddress(0x605C0))(this, pDevice); 20 | } 21 | 22 | void CNetStats::Draw() { 23 | ((void(__thiscall*)(CNetStats*))GetAddress(0x605F0))(this); 24 | } 25 | 26 | SAMPAPI_END 27 | -------------------------------------------------------------------------------- /src/sampapi/0.3.7-R3-1/CPlayerInfo.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R3) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.7-R3-1/CPlayerInfo.h" 11 | 12 | SAMPAPI_BEGIN_V037R3_1 13 | 14 | CPlayerInfo::CPlayerInfo(const char* szName, BOOL bIsNPC) { 15 | ((void(__thiscall*)(CPlayerInfo*, const char*, BOOL))GetAddress(0x13DE0))(this, szName, bIsNPC); 16 | } 17 | 18 | CPlayerInfo::~CPlayerInfo() { 19 | ((void(__thiscall*)(CPlayerInfo*))GetAddress(0x13B60))(this); 20 | } 21 | 22 | SAMPAPI_END 23 | -------------------------------------------------------------------------------- /src/sampapi/0.3.7-R3-1/CSpawnScreen.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R3) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.7-R3-1/CSpawnScreen.h" 11 | 12 | SAMPAPI_BEGIN_V037R3_1 13 | 14 | SAMPAPI_VAR CSpawnScreen*& RefSpawnScreen() { 15 | return *(CSpawnScreen**)GetAddress(0x26E8D8); 16 | } 17 | 18 | CSpawnScreen::CSpawnScreen(IDirect3DDevice9* pDevice) { 19 | ((void(__thiscall*)(CSpawnScreen*, IDirect3DDevice9*))GetAddress(0x70800))(this, pDevice); 20 | } 21 | 22 | CSpawnScreen::~CSpawnScreen() { 23 | ((void(__thiscall*)(CSpawnScreen*))GetAddress(0x70840))(this); 24 | } 25 | 26 | void CSpawnScreen::SetText(const char* szString) { 27 | ((void(__thiscall*)(CSpawnScreen*, const char*))GetAddress(0x704A0))(this, szString); 28 | } 29 | 30 | void CSpawnScreen::OnResetDevice() { 31 | ((void(__thiscall*)(CSpawnScreen*))GetAddress(0x70500))(this); 32 | } 33 | 34 | void CSpawnScreen::OnLostDevice() { 35 | ((void(__thiscall*)(CSpawnScreen*))GetAddress(0x707B0))(this); 36 | } 37 | 38 | void CSpawnScreen::Draw() { 39 | ((void(__thiscall*)(CSpawnScreen*))GetAddress(0x708A0))(this); 40 | } 41 | 42 | SAMPAPI_END 43 | -------------------------------------------------------------------------------- /src/sampapi/0.3.7-R3-1/CSrvNetStats.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R3) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.7-R3-1/CSrvNetStats.h" 11 | 12 | SAMPAPI_BEGIN_V037R3_1 13 | 14 | SAMPAPI_VAR CSrvNetStats*& RefServerNetStatistics() { 15 | return *(CSrvNetStats**)GetAddress(0x26E8B8); 16 | } 17 | 18 | CSrvNetStats::CSrvNetStats(IDirect3DDevice9* pDevice) { 19 | ((void(__thiscall*)(CSrvNetStats*, IDirect3DDevice9*))GetAddress(0x70B30))(this, pDevice); 20 | } 21 | 22 | void CSrvNetStats::Draw() { 23 | ((void(__thiscall*)(CSrvNetStats*))GetAddress(0x70B70))(this); 24 | } 25 | 26 | SAMPAPI_END 27 | -------------------------------------------------------------------------------- /src/sampapi/0.3.7-R3-1/CTextDraw.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R3) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.7-R3-1/CTextDraw.h" 11 | 12 | SAMPAPI_BEGIN_V037R3_1 13 | 14 | CTextDraw::CTextDraw(Transmit* pData, const char* szText) { 15 | ((void(__thiscall*)(CTextDraw*, Transmit*, const char*))GetAddress(0xB2E50))(this, pData, szText); 16 | } 17 | 18 | CTextDraw::~CTextDraw() { 19 | ((void(__thiscall*)(CTextDraw*))GetAddress(0xB26C0))(this); 20 | } 21 | 22 | void CTextDraw::SetText(const char* szText) { 23 | ((void(__thiscall*)(CTextDraw*, const char*))GetAddress(0xB26D0))(this, szText); 24 | } 25 | 26 | void CTextDraw::Draw() { 27 | ((void(__thiscall*)(CTextDraw*))GetAddress(0xB2BF0))(this); 28 | } 29 | 30 | SAMPAPI_END 31 | -------------------------------------------------------------------------------- /src/sampapi/0.3.7-R3-1/CTextDrawPool.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R3) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.7-R3-1/CTextDrawPool.h" 11 | 12 | SAMPAPI_BEGIN_V037R3_1 13 | 14 | CTextDrawPool::CTextDrawPool() { 15 | ((void(__thiscall*)(CTextDrawPool*))GetAddress(0x1E050))(this); 16 | } 17 | 18 | CTextDrawPool::~CTextDrawPool() { 19 | ((void(__thiscall*)(CTextDrawPool*))GetAddress(0x1E180))(this); 20 | } 21 | 22 | void CTextDrawPool::Delete(ID nId) { 23 | ((void(__thiscall*)(CTextDrawPool*, ID))GetAddress(0x1E0A0))(this, nId); 24 | } 25 | 26 | void CTextDrawPool::Draw() { 27 | ((void(__thiscall*)(CTextDrawPool*))GetAddress(0x1E0E0))(this); 28 | } 29 | 30 | CTextDraw* CTextDrawPool::Create(int nId, CTextDraw::Transmit* pData, const char* szText) { 31 | return ((CTextDraw * (__thiscall*)(CTextDrawPool*, int, CTextDraw::Transmit*, const char*)) GetAddress(0x1E1C0))(this, nId, pData, szText); 32 | } 33 | 34 | SAMPAPI_END 35 | -------------------------------------------------------------------------------- /src/sampapi/0.3.7-R3-1/InputHandler.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R3) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.7-R3-1/InputHandler.h" 11 | 12 | SAMPAPI_BEGIN_V037R3_1 13 | 14 | SAMPAPI_VAR void*& InputHandler::RefPrevWindowProc() { 15 | return *(void**)GetAddress(0x12DD38); 16 | } 17 | 18 | SAMPAPI_VAR unsigned int& InputHandler::RefAntiCheatDetectCount() { 19 | return *(unsigned int*)GetAddress(0x26E918); 20 | } 21 | 22 | int InputHandler::WindowProc(unsigned int uMsg, unsigned int wParam, long lParam) { 23 | return ((int(__stdcall*)(unsigned int, unsigned int, long))GetAddress(0x60EE0))(uMsg, wParam, lParam); 24 | } 25 | 26 | BOOL InputHandler::KeyPressHandler(unsigned int nKey) { 27 | return ((BOOL(__cdecl*)(unsigned int))GetAddress(0x60BF0))(nKey); 28 | } 29 | 30 | BOOL InputHandler::CharInputHandler(unsigned int nChar) { 31 | return ((BOOL(__cdecl*)(unsigned int))GetAddress(0x60E20))(nChar); 32 | } 33 | 34 | BOOL InputHandler::Initialize() { 35 | return ((BOOL(__cdecl*)())GetAddress(0x61750))(); 36 | } 37 | 38 | void SwitchWindowedMode() { 39 | ((void(__cdecl*)())GetAddress(0x60BA0))(); 40 | } 41 | 42 | SAMPAPI_END 43 | -------------------------------------------------------------------------------- /src/sampapi/0.3.7-R3-1/Settings.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R3) API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.7-R3-1/Settings.h" 11 | 12 | SAMPAPI_BEGIN_V037R3_1 13 | 14 | SAMPAPI_VAR Settings& RefSettings() { 15 | return *(Settings*)GetAddress(0x26DD30); 16 | } 17 | 18 | void Settings::Initialize() { 19 | ((void(__cdecl*)())GetAddress(0xC4E40))(); 20 | } 21 | 22 | void Settings::GetFromCommandLine(const char* szLine, char* szBuffer) { 23 | ((void(__cdecl*)(const char*, char*))GetAddress(0xC4740))(szLine, szBuffer); 24 | } 25 | 26 | void Settings::GetFromQuotes(const char* szLine, char* szBuffer) { 27 | ((void(__cdecl*)(const char*, char*))GetAddress(0xC4790))(szLine, szBuffer); 28 | } 29 | 30 | SAMPAPI_END 31 | -------------------------------------------------------------------------------- /src/sampapi/0.3.7-R5-1/CChatBubble.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R5) API project file. 3 | Developers: LUCHARE , Northn 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.7-R5-1/CChatBubble.h" 11 | 12 | SAMPAPI_BEGIN_V037R5_1 13 | 14 | SAMPAPI_VAR CChatBubble*& RefChatBubble() { 15 | return *(CChatBubble**)GetAddress(0x26EB78); 16 | } 17 | 18 | CChatBubble::CChatBubble() { 19 | ((void(__thiscall*)(CChatBubble*))GetAddress(0x66DE0))(this); 20 | } 21 | 22 | void CChatBubble::Add(ID nPlayer, const char* szText, D3DCOLOR color, float fDrawDistance, int lifeSpan) { 23 | ((void(__thiscall*)(CChatBubble*, ID, const char*, D3DCOLOR, float, int))GetAddress(0x66E10))(this, nPlayer, szText, color, fDrawDistance, lifeSpan); 24 | } 25 | 26 | void CChatBubble::Draw() { 27 | ((void(__thiscall*)(CChatBubble*))GetAddress(0x66ED0))(this); 28 | } 29 | 30 | SAMPAPI_END 31 | -------------------------------------------------------------------------------- /src/sampapi/0.3.7-R5-1/CFont.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R5) API project file. 3 | Developers: LUCHARE , Northn 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.7-R5-1/CFont.h" 11 | 12 | SAMPAPI_BEGIN_V037R5_1 13 | 14 | CFont::CFont() { 15 | ((void(__thiscall*)(CFont*))GetAddress(0x6B8D0))(this); 16 | } 17 | 18 | CFont::CFont(ID3DXFont* pFont) { 19 | *(void**)this = (void*)GetAddress(0xEA410); 20 | m_pFont = pFont; 21 | } 22 | 23 | SAMPAPI_END 24 | -------------------------------------------------------------------------------- /src/sampapi/0.3.7-R5-1/CHelpDialog.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R5) API project file. 3 | Developers: LUCHARE , Northn 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.7-R5-1/CHelpDialog.h" 11 | 12 | SAMPAPI_BEGIN_V037R5_1 13 | 14 | SAMPAPI_VAR CHelpDialog*& RefHelpDialog() { 15 | return *(CHelpDialog**)GetAddress(0x26EB74); 16 | } 17 | 18 | CHelpDialog::CHelpDialog(IDirect3DDevice9* pDevice) { 19 | ((void(__thiscall*)(CHelpDialog*, IDirect3DDevice9*))GetAddress(0x83D0))(this, pDevice); 20 | } 21 | 22 | void CHelpDialog::Show() { 23 | ((void(__thiscall*)(CHelpDialog*))GetAddress(0x6BB30))(this); 24 | } 25 | 26 | SAMPAPI_END 27 | -------------------------------------------------------------------------------- /src/sampapi/0.3.7-R5-1/CLabelPool.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R5) API project file. 3 | Developers: LUCHARE , Northn 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.7-R5-1/CLabelPool.h" 11 | 12 | SAMPAPI_BEGIN_V037R5_1 13 | 14 | CLabelPool::CLabelPool() { 15 | ((void(__thiscall*)(CLabelPool*))GetAddress(0x1190))(this); 16 | } 17 | 18 | CLabelPool::~CLabelPool() { 19 | ((void(__thiscall*)(CLabelPool*))GetAddress(0x15E0))(this); 20 | } 21 | 22 | void CLabelPool::Create(ID nId, const char* szText, D3DCOLOR color, CVector position, float fDrawDistance, bool bBehindWalls, ID nAttachedToPlayer, ID nAttachedToVehicle) { 23 | ((void(__thiscall*)(CLabelPool*, ID, const char*, D3DCOLOR, CVector, float, bool, ID, ID))GetAddress(0x11D0))(this, nId, szText, color, position, fDrawDistance, bBehindWalls, nAttachedToPlayer, nAttachedToVehicle); 24 | } 25 | 26 | BOOL CLabelPool::Delete(ID nId) { 27 | return ((BOOL(__thiscall*)(CLabelPool*, ID))GetAddress(0x12E0))(this, nId); 28 | } 29 | 30 | void CLabelPool::Draw() { 31 | ((void(__thiscall*)(CLabelPool*))GetAddress(0x1350))(this); 32 | } 33 | 34 | SAMPAPI_END 35 | -------------------------------------------------------------------------------- /src/sampapi/0.3.7-R5-1/CLicensePlate.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R5) API project file. 3 | Developers: LUCHARE , Northn 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.7-R5-1/CLicensePlate.h" 11 | 12 | SAMPAPI_BEGIN_V037R5_1 13 | 14 | SAMPAPI_VAR CLicensePlate*& RefLicensePlateManager() { 15 | return *(CLicensePlate**)GetAddress(0x26EBA0); 16 | } 17 | 18 | CLicensePlate::CLicensePlate(IDirect3DDevice9* pDevice) { 19 | ((void(__thiscall*)(CLicensePlate*, IDirect3DDevice9*))GetAddress(0x6D9B0))(this, pDevice); 20 | } 21 | 22 | CLicensePlate::~CLicensePlate() { 23 | ((void(__thiscall*)(CLicensePlate*))GetAddress(0x6D9E0))(this); 24 | } 25 | 26 | void CLicensePlate::OnLostDevice() { 27 | ((void(__thiscall*)(CLicensePlate*))GetAddress(0x6D7B0))(this); 28 | } 29 | 30 | void CLicensePlate::OnResetDevice() { 31 | ((void(__thiscall*)(CLicensePlate*))GetAddress(0x6D800))(this); 32 | } 33 | 34 | IDirect3DTexture9* CLicensePlate::Create(const char* szText) { 35 | return ((IDirect3DTexture9 * (__thiscall*)(CLicensePlate*, const char*)) GetAddress(0x6D880))(this, szText); 36 | } 37 | 38 | SAMPAPI_END 39 | -------------------------------------------------------------------------------- /src/sampapi/0.3.7-R5-1/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | target_sources(sampapi 2 | PRIVATE 3 | AimStuff.cpp 4 | CActor.cpp 5 | CActorPool.cpp 6 | CAudio.cpp 7 | CAudioStream.cpp 8 | CCamera.cpp 9 | CChat.cpp 10 | CChatBubble.cpp 11 | CConfig.cpp 12 | CDeathWindow.cpp 13 | CDialog.cpp 14 | CEntity.cpp 15 | CFont.cpp 16 | CFonts.cpp 17 | CGame.cpp 18 | CGangZonePool.cpp 19 | CHelpDialog.cpp 20 | CHttpClient.cpp 21 | CInput.cpp 22 | CLabel.cpp 23 | CLabelPool.cpp 24 | CLicensePlate.cpp 25 | CLocalPlayer.cpp 26 | CMenu.cpp 27 | CMenuPool.cpp 28 | CNetGame.cpp 29 | CNetStats.cpp 30 | CObject.cpp 31 | CObjectMaterialText.cpp 32 | CObjectPool.cpp 33 | CObjectSelection.cpp 34 | Commands.cpp 35 | CPed.cpp 36 | CPickupPool.cpp 37 | CPlayerInfo.cpp 38 | CPlayerPool.cpp 39 | CPlayerTags.cpp 40 | CRemotePlayer.cpp 41 | CScoreboard.cpp 42 | CSpawnScreen.cpp 43 | CSrvNetStats.cpp 44 | CTextDraw.cpp 45 | CTextDrawPool.cpp 46 | CTextDrawSelection.cpp 47 | CVehicle.cpp 48 | CVehiclePool.cpp 49 | DebugScript.cpp 50 | Exception.cpp 51 | GUI.cpp 52 | KeyStuff.cpp 53 | Scripting.cpp 54 | Settings.cpp 55 | CObjectMaterialText.cpp 56 | InputHandler.cpp 57 | CObjectEdit.cpp 58 | RPCHandlers.cpp 59 | ) 60 | -------------------------------------------------------------------------------- /src/sampapi/0.3.7-R5-1/CNetStats.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R5) API project file. 3 | Developers: LUCHARE , Northn 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.7-R5-1/CNetStats.h" 11 | 12 | SAMPAPI_BEGIN_V037R5_1 13 | 14 | SAMPAPI_VAR CNetStats*& RefNetStats() { 15 | return *(CNetStats**)GetAddress(0x26EB6C); 16 | } 17 | 18 | CNetStats::CNetStats(IDirect3DDevice9* pDevice) { 19 | ((void(__thiscall*)(CNetStats*, IDirect3DDevice9*))GetAddress(0x60D40))(this, pDevice); 20 | } 21 | 22 | void CNetStats::Draw() { 23 | ((void(__thiscall*)(CNetStats*))GetAddress(0x60D70))(this); 24 | } 25 | 26 | SAMPAPI_END 27 | -------------------------------------------------------------------------------- /src/sampapi/0.3.7-R5-1/CPlayerInfo.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R5) API project file. 3 | Developers: LUCHARE , Northn 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.7-R5-1/CPlayerInfo.h" 11 | 12 | SAMPAPI_BEGIN_V037R5_1 13 | 14 | CPlayerInfo::CPlayerInfo(const char* szName, BOOL bIsNPC) { 15 | ((void(__thiscall*)(CPlayerInfo*, const char*, BOOL))GetAddress(0x141B0))(this, szName, bIsNPC); 16 | } 17 | 18 | CPlayerInfo::~CPlayerInfo() { 19 | ((void(__thiscall*)(CPlayerInfo*))GetAddress(0x13F60))(this); 20 | } 21 | 22 | SAMPAPI_END 23 | -------------------------------------------------------------------------------- /src/sampapi/0.3.7-R5-1/CSpawnScreen.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R5) API project file. 3 | Developers: LUCHARE , Northn 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.7-R5-1/CSpawnScreen.h" 11 | 12 | SAMPAPI_BEGIN_V037R5_1 13 | 14 | SAMPAPI_VAR CSpawnScreen*& RefSpawnScreen() { 15 | return *(CSpawnScreen**)GetAddress(0x26EB90); 16 | } 17 | 18 | CSpawnScreen::CSpawnScreen(IDirect3DDevice9* pDevice) { 19 | ((void(__thiscall*)(CSpawnScreen*, IDirect3DDevice9*))GetAddress(0x70EF0))(this, pDevice); 20 | } 21 | 22 | CSpawnScreen::~CSpawnScreen() { 23 | ((void(__thiscall*)(CSpawnScreen*))GetAddress(0x70F30))(this); 24 | } 25 | 26 | void CSpawnScreen::SetText(const char* szString) { 27 | ((void(__thiscall*)(CSpawnScreen*, const char*))GetAddress(0x70B90))(this, szString); 28 | } 29 | 30 | void CSpawnScreen::OnResetDevice() { 31 | ((void(__thiscall*)(CSpawnScreen*))GetAddress(0x70BF0))(this); 32 | } 33 | 34 | void CSpawnScreen::OnLostDevice() { 35 | ((void(__thiscall*)(CSpawnScreen*))GetAddress(0x70EA0))(this); 36 | } 37 | 38 | void CSpawnScreen::Draw() { 39 | ((void(__thiscall*)(CSpawnScreen*))GetAddress(0x70F90))(this); 40 | } 41 | 42 | SAMPAPI_END 43 | -------------------------------------------------------------------------------- /src/sampapi/0.3.7-R5-1/CSrvNetStats.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R5) API project file. 3 | Developers: LUCHARE , Northn 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.7-R5-1/CSrvNetStats.h" 11 | 12 | SAMPAPI_BEGIN_V037R5_1 13 | 14 | SAMPAPI_VAR CSrvNetStats*& RefServerNetStatistics() { 15 | return *(CSrvNetStats**)GetAddress(0x26EB70); 16 | } 17 | 18 | CSrvNetStats::CSrvNetStats(IDirect3DDevice9* pDevice) { 19 | ((void(__thiscall*)(CSrvNetStats*, IDirect3DDevice9*))GetAddress(0x71220))(this, pDevice); 20 | } 21 | 22 | void CSrvNetStats::Draw() { 23 | ((void(__thiscall*)(CSrvNetStats*))GetAddress(0x71260))(this); 24 | } 25 | 26 | SAMPAPI_END 27 | -------------------------------------------------------------------------------- /src/sampapi/0.3.7-R5-1/CTextDraw.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R5) API project file. 3 | Developers: LUCHARE , Northn 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.7-R5-1/CTextDraw.h" 11 | 12 | SAMPAPI_BEGIN_V037R5_1 13 | 14 | CTextDraw::CTextDraw(Transmit* pData, const char* szText) { 15 | ((void(__thiscall*)(CTextDraw*, Transmit*, const char*))GetAddress(0xB36E0))(this, pData, szText); 16 | } 17 | 18 | CTextDraw::~CTextDraw() { 19 | ((void(__thiscall*)(CTextDraw*))GetAddress(0xB2F50))(this); 20 | } 21 | 22 | void CTextDraw::SetText(const char* szText) { 23 | ((void(__thiscall*)(CTextDraw*, const char*))GetAddress(0xB36E0))(this, szText); 24 | } 25 | 26 | void CTextDraw::Draw() { 27 | ((void(__thiscall*)(CTextDraw*))GetAddress(0xB3480))(this); 28 | } 29 | 30 | SAMPAPI_END 31 | -------------------------------------------------------------------------------- /src/sampapi/0.3.7-R5-1/CTextDrawPool.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R5) API project file. 3 | Developers: LUCHARE , Northn 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.7-R5-1/CTextDrawPool.h" 11 | 12 | SAMPAPI_BEGIN_V037R5_1 13 | 14 | CTextDrawPool::CTextDrawPool() { 15 | ((void(__thiscall*)(CTextDrawPool*))GetAddress(0x1E7A0))(this); 16 | } 17 | 18 | CTextDrawPool::~CTextDrawPool() { 19 | ((void(__thiscall*)(CTextDrawPool*))GetAddress(0x1E8D0))(this); 20 | } 21 | 22 | void CTextDrawPool::Delete(ID nId) { 23 | ((void(__thiscall*)(CTextDrawPool*, ID))GetAddress(0x1E7F0))(this, nId); 24 | } 25 | 26 | void CTextDrawPool::Draw() { 27 | ((void(__thiscall*)(CTextDrawPool*))GetAddress(0x1E830))(this); 28 | } 29 | 30 | CTextDraw* CTextDrawPool::Create(int nId, CTextDraw::Transmit* pData, const char* szText) { 31 | return ((CTextDraw * (__thiscall*)(CTextDrawPool*, int, CTextDraw::Transmit*, const char*)) GetAddress(0x1E910))(this, nId, pData, szText); 32 | } 33 | 34 | SAMPAPI_END 35 | -------------------------------------------------------------------------------- /src/sampapi/0.3.7-R5-1/InputHandler.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R5) API project file. 3 | Developers: LUCHARE , Northn 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.7-R5-1/InputHandler.h" 11 | 12 | SAMPAPI_BEGIN_V037R5_1 13 | 14 | SAMPAPI_VAR void*& InputHandler::RefPrevWindowProc() { 15 | return *(void**)GetAddress(0x12DE60); 16 | } 17 | 18 | SAMPAPI_VAR unsigned int& InputHandler::RefAntiCheatDetectCount() { 19 | return *(unsigned int*)GetAddress(0x26EBD0); 20 | } 21 | 22 | int InputHandler::WindowProc(unsigned int uMsg, unsigned int wParam, long lParam) { 23 | return ((int(__stdcall*)(unsigned int, unsigned int, long))GetAddress(0x61650))(uMsg, wParam, lParam); 24 | } 25 | 26 | BOOL InputHandler::KeyPressHandler(unsigned int nKey) { 27 | return ((BOOL(__cdecl*)(unsigned int))GetAddress(0x61360))(nKey); 28 | } 29 | 30 | BOOL InputHandler::CharInputHandler(unsigned int nChar) { 31 | return ((BOOL(__cdecl*)(unsigned int))GetAddress(0x61590))(nChar); 32 | } 33 | 34 | BOOL InputHandler::Initialize() { 35 | return ((BOOL(__cdecl*)())GetAddress(0x61EC0))(); 36 | } 37 | 38 | void SwitchWindowedMode() { 39 | ((void(__cdecl*)())GetAddress(0x61310))(); 40 | } 41 | 42 | SAMPAPI_END 43 | -------------------------------------------------------------------------------- /src/sampapi/0.3.7-R5-1/Settings.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.7-R5) API project file. 3 | Developers: LUCHARE , Northn 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.7-R5-1/Settings.h" 11 | 12 | SAMPAPI_BEGIN_V037R5_1 13 | 14 | SAMPAPI_VAR Settings& RefSettings() { 15 | return *(Settings*)GetAddress(0x26DFE8); 16 | } 17 | 18 | void Settings::Initialize() { 19 | ((void(__cdecl*)())GetAddress(0xC45B0))(); 20 | } 21 | 22 | void Settings::GetFromCommandLine(const char* szLine, char* szBuffer) { 23 | ((void(__cdecl*)(const char*, char*))GetAddress(0xC3EC0))(szLine, szBuffer); 24 | } 25 | 26 | void Settings::GetFromQuotes(const char* szLine, char* szBuffer) { 27 | ((void(__cdecl*)(const char*, char*))GetAddress(0xC3F10))(szLine, szBuffer); 28 | } 29 | 30 | SAMPAPI_END 31 | -------------------------------------------------------------------------------- /src/sampapi/0.3.DL-1/CChatBubble.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.DL-1) API project file. 3 | Developers: LUCHARE , ARMOR 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.DL-1/CChatBubble.h" 11 | 12 | SAMPAPI_BEGIN_V03DL_1 13 | 14 | SAMPAPI_VAR CChatBubble*& RefChatBubble() { 15 | return *(CChatBubble**)GetAddress(0x2ACA08); 16 | } 17 | 18 | CChatBubble::CChatBubble() { 19 | ((void(__thiscall*)(CChatBubble*))GetAddress(0x66860))(this); 20 | } 21 | 22 | void CChatBubble::Add(ID nPlayer, const char* szText, D3DCOLOR color, float fDrawDistance, int lifeSpan) { 23 | ((void(__thiscall*)(CChatBubble*, ID, const char*, D3DCOLOR, float, int))GetAddress(0x66890))(this, nPlayer, szText, color, fDrawDistance, lifeSpan); 24 | } 25 | 26 | void CChatBubble::Draw() { 27 | ((void(__thiscall*)(CChatBubble*))GetAddress(0x66950))(this); 28 | } 29 | 30 | SAMPAPI_END 31 | -------------------------------------------------------------------------------- /src/sampapi/0.3.DL-1/CFont.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.DL-1) API project file. 3 | Developers: LUCHARE , ARMOR 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.DL-1/CFont.h" 11 | 12 | SAMPAPI_BEGIN_V03DL_1 13 | 14 | CFont::CFont() { 15 | ((void(__thiscall*)(CFont*))GetAddress(0x6B8D0))(this); 16 | } 17 | 18 | CFont::CFont(ID3DXFont* pFont) { 19 | *(void**)this = (void*)GetAddress(0xEA410); 20 | m_pFont = pFont; 21 | } 22 | 23 | SAMPAPI_END 24 | -------------------------------------------------------------------------------- /src/sampapi/0.3.DL-1/CHelpDialog.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.DL-1) API project file. 3 | Developers: LUCHARE , ARMOR 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.DL-1/CHelpDialog.h" 11 | 12 | SAMPAPI_BEGIN_V03DL_1 13 | 14 | SAMPAPI_VAR CHelpDialog*& RefHelpDialog() { 15 | return *(CHelpDialog**)GetAddress(0x2ACA04); 16 | } 17 | 18 | CHelpDialog::CHelpDialog(IDirect3DDevice9* pDevice) { 19 | ((void(__thiscall*)(CHelpDialog*, IDirect3DDevice9*))GetAddress(0x6B566))(this, pDevice); 20 | } 21 | 22 | void CHelpDialog::Show() { 23 | ((void(__thiscall*)(CHelpDialog*))GetAddress(0x6B570))(this); 24 | } 25 | 26 | SAMPAPI_END 27 | -------------------------------------------------------------------------------- /src/sampapi/0.3.DL-1/CLabelPool.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.DL-1) API project file. 3 | Developers: LUCHARE , ARMOR 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.DL-1/CLabelPool.h" 11 | 12 | SAMPAPI_BEGIN_V03DL_1 13 | 14 | CLabelPool::CLabelPool() { 15 | ((void(__thiscall*)(CLabelPool*))GetAddress(0x1190))(this); 16 | } 17 | 18 | CLabelPool::~CLabelPool() { 19 | ((void(__thiscall*)(CLabelPool*))GetAddress(0x15E0))(this); 20 | } 21 | 22 | void CLabelPool::Create(ID nId, const char* szText, D3DCOLOR color, CVector position, float fDrawDistance, bool bBehindWalls, ID nAttachedToPlayer, ID nAttachedToVehicle) { 23 | ((void(__thiscall*)(CLabelPool*, ID, const char*, D3DCOLOR, CVector, float, bool, ID, ID))GetAddress(0x11D0))(this, nId, szText, color, position, fDrawDistance, bBehindWalls, nAttachedToPlayer, nAttachedToVehicle); 24 | } 25 | 26 | BOOL CLabelPool::Delete(ID nId) { 27 | return ((BOOL(__thiscall*)(CLabelPool*, ID))GetAddress(0x12E0))(this, nId); 28 | } 29 | 30 | void CLabelPool::Draw() { 31 | ((void(__thiscall*)(CLabelPool*))GetAddress(0x1350))(this); 32 | } 33 | 34 | SAMPAPI_END 35 | -------------------------------------------------------------------------------- /src/sampapi/0.3.DL-1/CLicensePlate.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.DL-1) API project file. 3 | Developers: LUCHARE , ARMOR 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.DL-1/CLicensePlate.h" 11 | 12 | SAMPAPI_BEGIN_V03DL_1 13 | 14 | SAMPAPI_VAR CLicensePlate*& RefLicensePlateManager() { 15 | return *(CLicensePlate**)GetAddress(0x2ACA30); 16 | } 17 | 18 | CLicensePlate::CLicensePlate(IDirect3DDevice9* pDevice) { 19 | ((void(__thiscall*)(CLicensePlate*, IDirect3DDevice9*))GetAddress(0x6D3F0))(this, pDevice); 20 | } 21 | 22 | CLicensePlate::~CLicensePlate() { 23 | ((void(__thiscall*)(CLicensePlate*))GetAddress(0x6D420))(this); 24 | } 25 | 26 | void CLicensePlate::OnLostDevice() { 27 | ((void(__thiscall*)(CLicensePlate*))GetAddress(0x6D1F0))(this); 28 | } 29 | 30 | void CLicensePlate::OnResetDevice() { 31 | ((void(__thiscall*)(CLicensePlate*))GetAddress(0x6D240))(this); 32 | } 33 | 34 | IDirect3DTexture9* CLicensePlate::Create(const char* szText) { 35 | return ((IDirect3DTexture9 * (__thiscall*)(CLicensePlate*, const char*)) GetAddress(0x6D2C0))(this, szText); 36 | } 37 | 38 | SAMPAPI_END 39 | -------------------------------------------------------------------------------- /src/sampapi/0.3.DL-1/CNetStats.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.DL-1) API project file. 3 | Developers: LUCHARE , ARMOR 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.DL-1/CNetStats.h" 11 | 12 | SAMPAPI_BEGIN_V03DL_1 13 | 14 | SAMPAPI_VAR CNetStats*& RefNetStats() { 15 | return *(CNetStats**)GetAddress(0x2AC9FC); 16 | } 17 | 18 | CNetStats::CNetStats(IDirect3DDevice9* pDevice) { 19 | ((void(__thiscall*)(CNetStats*, IDirect3DDevice9*))GetAddress(0x607C0))(this, pDevice); 20 | } 21 | 22 | void CNetStats::Draw() { 23 | ((void(__thiscall*)(CNetStats*))GetAddress(0x607F0))(this); 24 | } 25 | 26 | SAMPAPI_END 27 | -------------------------------------------------------------------------------- /src/sampapi/0.3.DL-1/CPlayerInfo.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.DL-1) API project file. 3 | Developers: LUCHARE , ARMOR 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.DL-1/CPlayerInfo.h" 11 | 12 | SAMPAPI_BEGIN_V03DL_1 13 | 14 | CPlayerInfo::CPlayerInfo(const char* szName, BOOL bIsNPC) { 15 | ((void(__thiscall*)(CPlayerInfo*, const char*, BOOL))GetAddress(0x14060))(this, szName, bIsNPC); 16 | } 17 | 18 | CPlayerInfo::~CPlayerInfo() { 19 | ((void(__thiscall*)(CPlayerInfo*))GetAddress(0x13E10))(this); 20 | } 21 | 22 | SAMPAPI_END 23 | -------------------------------------------------------------------------------- /src/sampapi/0.3.DL-1/CSpawnScreen.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.DL-1) API project file. 3 | Developers: LUCHARE , ARMOR 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.DL-1/CSpawnScreen.h" 11 | 12 | SAMPAPI_BEGIN_V03DL_1 13 | 14 | SAMPAPI_VAR CSpawnScreen*& RefSpawnScreen() { 15 | return *(CSpawnScreen**)GetAddress(0x2ACA20); 16 | } 17 | 18 | CSpawnScreen::CSpawnScreen(IDirect3DDevice9* pDevice) { 19 | ((void(__thiscall*)(CSpawnScreen*, IDirect3DDevice9*))GetAddress(0x70990))(this, pDevice); 20 | } 21 | 22 | CSpawnScreen::~CSpawnScreen() { 23 | ((void(__thiscall*)(CSpawnScreen*))GetAddress(0x709D0))(this); 24 | } 25 | 26 | void CSpawnScreen::SetText(const char* szString) { 27 | ((void(__thiscall*)(CSpawnScreen*, const char*))GetAddress(0x70630))(this, szString); 28 | } 29 | 30 | void CSpawnScreen::OnResetDevice() { 31 | ((void(__thiscall*)(CSpawnScreen*))GetAddress(0x70690))(this); 32 | } 33 | 34 | void CSpawnScreen::OnLostDevice() { 35 | ((void(__thiscall*)(CSpawnScreen*))GetAddress(0x70940))(this); 36 | } 37 | 38 | void CSpawnScreen::Draw() { 39 | ((void(__thiscall*)(CSpawnScreen*))GetAddress(0x70A30))(this); 40 | } 41 | 42 | SAMPAPI_END 43 | -------------------------------------------------------------------------------- /src/sampapi/0.3.DL-1/CSrvNetStats.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.DL-1) API project file. 3 | Developers: LUCHARE , ARMOR 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.DL-1/CSrvNetStats.h" 11 | 12 | SAMPAPI_BEGIN_V03DL_1 13 | 14 | SAMPAPI_VAR CSrvNetStats*& RefServerNetStatistics() { 15 | return *(CSrvNetStats**)GetAddress(0x2ACA00); 16 | } 17 | 18 | CSrvNetStats::CSrvNetStats(IDirect3DDevice9* pDevice) { 19 | ((void(__thiscall*)(CSrvNetStats*, IDirect3DDevice9*))GetAddress(0x70CC0))(this, pDevice); 20 | } 21 | 22 | void CSrvNetStats::Draw() { 23 | ((void(__thiscall*)(CSrvNetStats*))GetAddress(0x70D00))(this); 24 | } 25 | 26 | SAMPAPI_END 27 | -------------------------------------------------------------------------------- /src/sampapi/0.3.DL-1/CTextDraw.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.DL-1) API project file. 3 | Developers: LUCHARE , ARMOR 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.DL-1/CTextDraw.h" 11 | 12 | SAMPAPI_BEGIN_V03DL_1 13 | 14 | CTextDraw::CTextDraw(Transmit* pData, const char* szText) { 15 | ((void(__thiscall*)(CTextDraw*, Transmit*, const char*))GetAddress(0xB32E0))(this, pData, szText); 16 | } 17 | 18 | CTextDraw::~CTextDraw() { 19 | ((void(__thiscall*)(CTextDraw*))GetAddress(0xB2B50))(this); 20 | } 21 | 22 | void CTextDraw::SetText(const char* szText) { 23 | ((void(__thiscall*)(CTextDraw*, const char*))GetAddress(0xB2B60))(this, szText); 24 | } 25 | 26 | void CTextDraw::Draw() { 27 | ((void(__thiscall*)(CTextDraw*))GetAddress(0xB3080))(this); 28 | } 29 | 30 | SAMPAPI_END 31 | -------------------------------------------------------------------------------- /src/sampapi/0.3.DL-1/CTextDrawPool.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.DL-1) API project file. 3 | Developers: LUCHARE , ARMOR 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.DL-1/CTextDrawPool.h" 11 | 12 | SAMPAPI_BEGIN_V03DL_1 13 | 14 | CTextDrawPool::CTextDrawPool() { 15 | ((void(__thiscall*)(CTextDrawPool*))GetAddress(0x1E260))(this); 16 | } 17 | 18 | CTextDrawPool::~CTextDrawPool() { 19 | ((void(__thiscall*)(CTextDrawPool*))GetAddress(0x1E390))(this); 20 | } 21 | 22 | void CTextDrawPool::Delete(ID nId) { 23 | ((void(__thiscall*)(CTextDrawPool*, ID))GetAddress(0x1E2B0))(this, nId); 24 | } 25 | 26 | void CTextDrawPool::Draw() { 27 | ((void(__thiscall*)(CTextDrawPool*))GetAddress(0x1E2F0))(this); 28 | } 29 | 30 | CTextDraw* CTextDrawPool::Create(int nId, CTextDraw::Transmit* pData, const char* szText) { 31 | return ((CTextDraw * (__thiscall*)(CTextDrawPool*, int, CTextDraw::Transmit*, const char*)) GetAddress(0x1E3D0))(this, nId, pData, szText); 32 | } 33 | 34 | SAMPAPI_END 35 | -------------------------------------------------------------------------------- /src/sampapi/0.3.DL-1/InputHandler.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.DL-1) API project file. 3 | Developers: LUCHARE , ARMOR 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.DL-1/InputHandler.h" 11 | 12 | SAMPAPI_BEGIN_V03DL_1 13 | 14 | SAMPAPI_VAR void*& InputHandler::RefPrevWindowProc() { 15 | return *(void**)GetAddress(0x16BE78); 16 | } 17 | 18 | SAMPAPI_VAR unsigned int& InputHandler::RefAntiCheatDetectCount() { 19 | return *(unsigned int*)GetAddress(0x2ACA60); 20 | } 21 | 22 | int InputHandler::WindowProc(unsigned int uMsg, unsigned int wParam, long lParam) { 23 | return ((int(__stdcall*)(unsigned int, unsigned int, long))GetAddress(0x610D0))(uMsg, wParam, lParam); 24 | } 25 | 26 | BOOL InputHandler::KeyPressHandler(unsigned int nKey) { 27 | return ((BOOL(__cdecl*)(unsigned int))GetAddress(0x60DE0))(nKey); 28 | } 29 | 30 | BOOL InputHandler::CharInputHandler(unsigned int nChar) { 31 | return ((BOOL(__cdecl*)(unsigned int))GetAddress(0x61010))(nChar); 32 | } 33 | 34 | BOOL InputHandler::Initialize() { 35 | return ((BOOL(__cdecl*)())GetAddress(0x61940))(); 36 | } 37 | 38 | void SwitchWindowedMode() { 39 | ((void(__cdecl*)())GetAddress(0x60D90))(); 40 | } 41 | 42 | SAMPAPI_END 43 | -------------------------------------------------------------------------------- /src/sampapi/0.3.DL-1/Settings.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP (0.3.DL-1) API project file. 3 | Developers: LUCHARE , ARMOR 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/0.3.DL-1/Settings.h" 11 | 12 | SAMPAPI_BEGIN_V03DL_1 13 | 14 | SAMPAPI_VAR Settings& RefSettings() { 15 | return *(Settings*)GetAddress(0x2ABE78); 16 | } 17 | 18 | void Settings::Initialize() { 19 | ((void(__cdecl*)())GetAddress(0xC5C90))(); 20 | } 21 | 22 | void Settings::GetFromCommandLine(const char* szLine, char* szBuffer) { 23 | ((void(__cdecl*)(const char*, char*))GetAddress(0xC5590))(szLine, szBuffer); 24 | } 25 | 26 | void Settings::GetFromQuotes(const char* szLine, char* szBuffer) { 27 | ((void(__cdecl*)(const char*, char*))GetAddress(0xC55E0))(szLine, szBuffer); 28 | } 29 | 30 | SAMPAPI_END 31 | -------------------------------------------------------------------------------- /src/sampapi/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_subdirectory(0.3.7-R1) 2 | add_subdirectory(0.3.7-R3-1) 3 | add_subdirectory(0.3.7-R5-1) 4 | add_subdirectory(0.3.DL-1) 5 | 6 | target_sources(sampapi 7 | PRIVATE 8 | sampapi.cpp 9 | CRect.cpp 10 | CVector.cpp 11 | CPoint.cpp 12 | ) 13 | -------------------------------------------------------------------------------- /src/sampapi/CPoint.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/CPoint.h" 11 | 12 | SAMPAPI_BEGIN_COMMON 13 | 14 | CPoint::CPoint() 15 | : x(0), 16 | y(0) { 17 | } 18 | 19 | CPoint::CPoint(long x, long y) 20 | : x(x), 21 | y(y) { 22 | } 23 | 24 | SAMPAPI_END_COMMON 25 | -------------------------------------------------------------------------------- /src/sampapi/sampapi.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This is a SAMP API project file. 3 | Developer: LUCHARE 4 | 5 | See more here https://github.com/LUCHARE/SAMP-API 6 | 7 | Copyright (c) 2018 BlastHack Team . All rights reserved. 8 | */ 9 | 10 | #include "sampapi/sampapi.h" 11 | #include 12 | 13 | SAMPAPI_BEGIN_COMMON 14 | 15 | unsigned long GetBase() { 16 | static auto handle = reinterpret_cast(GetModuleHandleA("samp.dll")); 17 | return handle; 18 | } 19 | 20 | unsigned int GetAPIVersion() { 21 | return SAMPAPI_VERSION; 22 | } 23 | 24 | SAMPAPI_END_COMMON 25 | -------------------------------------------------------------------------------- /tools/make_headers.py: -------------------------------------------------------------------------------- 1 | from pathlib import Path, PurePosixPath 2 | from collections import defaultdict 3 | 4 | include_root = Path('include') 5 | sampapi_includes = include_root / 'sampapi' 6 | 7 | includes = defaultdict(lambda: []) 8 | for dir in sampapi_includes.iterdir(): 9 | for path in dir.glob('**/*.h'): 10 | header_path = sampapi_includes / path.name 11 | include_str = str(PurePosixPath(path.relative_to(include_root))) 12 | includes[header_path].append(f'#include "{include_str}"\n') 13 | 14 | for path in sampapi_includes.glob('*.h'): 15 | if path not in includes: 16 | print('[common]', path) 17 | 18 | for path, inc_list in includes.items(): 19 | with path.open('w') as f: 20 | f.write('#pragma once\n' + ''.join(inc_list)) 21 | --------------------------------------------------------------------------------