mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 14:37:29 +08:00
[saco] Implement/match CPlayerPed::HoldItem(...)
This commit is contained in:
parent
fd3ffe3de8
commit
74e2a5f12a
@ -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()
|
||||
{
|
||||
if(!m_pPed) return;
|
||||
|
@ -99,6 +99,7 @@ public:
|
||||
|
||||
void HandsUp();
|
||||
BOOL HasHandsUp();
|
||||
void HoldItem(int iObject);
|
||||
|
||||
float GetAimZ();
|
||||
void SetAimZ(float fAimZ);
|
||||
|
Loading…
Reference in New Issue
Block a user