[saco] Implement/match CPlayerPed::HoldItem(...)

This commit is contained in:
RD42 2024-10-31 19:15:00 +08:00
parent fd3ffe3de8
commit 74e2a5f12a
2 changed files with 17 additions and 0 deletions

View File

@ -941,6 +941,22 @@ BOOL CPlayerPed::HasHandsUp()
//----------------------------------------------------------- //-----------------------------------------------------------
void CPlayerPed::HoldItem(int iObject)
{
if(!m_pPed) return;
if(!IsAdded()) return;
if(!GamePool_Ped_GetAt(m_dwGTAId)) return;
DWORD dwPed = (DWORD)m_pPed;
_asm push 1
_asm push iObject
_asm mov ecx, dwPed
_asm mov ebx, 0x5E4390
_asm call ebx
}
//-----------------------------------------------------------
void CPlayerPed::StartJetpack() void CPlayerPed::StartJetpack()
{ {
if(!m_pPed) return; if(!m_pPed) return;

View File

@ -99,6 +99,7 @@ public:
void HandsUp(); void HandsUp();
BOOL HasHandsUp(); BOOL HasHandsUp();
void HoldItem(int iObject);
float GetAimZ(); float GetAimZ();
void SetAimZ(float fAimZ); void SetAimZ(float fAimZ);