[saco] Implement/match CPlayerPed::GetShopName()

This commit is contained in:
RD42 2024-10-28 20:01:44 +08:00
parent 48f6041de6
commit e6e9fc67e2
2 changed files with 20 additions and 0 deletions

View File

@ -1028,3 +1028,20 @@ void CPlayerPed::LoadShoppingDataSubsection(PCHAR szSectionName)
//-----------------------------------------------------------
PCHAR CPlayerPed::GetShopName()
{
if(!m_pPed) return NULL;
if(!GamePool_Ped_GetAt(m_dwGTAId)) return NULL;
DWORD dwPedPtr = (DWORD)m_pPed;
PCHAR szResult = NULL;
_asm mov eax, dwPedPtr
_asm mov ebx, [eax+1932]
_asm mov szResult, ebx
return szResult;
}
//-----------------------------------------------------------

View File

@ -99,6 +99,9 @@ public:
PCHAR GetLoadedShopName();
void LoadShoppingDataSubsection(PCHAR szSectionName);
PCHAR GetShopName();
//char _gap0[813];
//char _gap0[741];
int field_48;