[saco] Implement and match CPlayerPed::SetActionTrigger(...)

This commit is contained in:
RD42 2024-05-05 22:16:50 +08:00
parent 526dff8889
commit 9c4d7692a6
2 changed files with 10 additions and 0 deletions

View File

@ -237,6 +237,15 @@ BYTE CPlayerPed::GetActionTrigger()
//-----------------------------------------------------------
void CPlayerPed::SetActionTrigger(BYTE byteTrigger)
{
if(!m_pPed) return;
m_pPed->dwAction = byteTrigger;
}
//-----------------------------------------------------------
void CPlayerPed::GiveWeapon(int iWeaponID, int iAmmo)
{
if(!m_pPed) return;

View File

@ -36,6 +36,7 @@ public:
void SetStateFlags(DWORD dwStateFlags);
BOOL IsDead();
BYTE GetActionTrigger();
void SetActionTrigger(BYTE byteTrigger);
WORD GetAmmo();