2019-06-15 01:34:19 +02:00
|
|
|
#include "common.h"
|
|
|
|
#include "patcher.h"
|
2019-07-25 22:34:29 +02:00
|
|
|
#include "PlayerPed.h"
|
2019-06-15 01:34:19 +02:00
|
|
|
#include "PlayerInfo.h"
|
2019-07-10 09:57:08 +02:00
|
|
|
#include "Frontend.h"
|
2019-07-25 22:34:29 +02:00
|
|
|
#include "Vehicle.h"
|
2019-07-04 00:16:24 +02:00
|
|
|
|
2019-07-09 23:49:44 +02:00
|
|
|
WRAPPER void CPlayerInfo::MakePlayerSafe(bool) { EAXJMP(0x4A1400); }
|
2019-07-10 09:57:08 +02:00
|
|
|
WRAPPER void CPlayerInfo::LoadPlayerSkin() { EAXJMP(0x4A1700); }
|
2019-07-09 23:49:44 +02:00
|
|
|
WRAPPER void CPlayerInfo::AwardMoneyForExplosion(CVehicle *vehicle) { EAXJMP(0x4A15F0); }
|
2019-07-10 09:57:08 +02:00
|
|
|
|
|
|
|
void CPlayerInfo::SetPlayerSkin(char *skin)
|
|
|
|
{
|
|
|
|
strncpy(m_aSkinName, skin, 32);
|
|
|
|
LoadPlayerSkin();
|
|
|
|
}
|
2019-07-25 22:34:29 +02:00
|
|
|
|
|
|
|
CVector& CPlayerInfo::GetPos()
|
|
|
|
{
|
|
|
|
if (m_pPed->bInVehicle && m_pPed->m_pMyVehicle)
|
|
|
|
return m_pPed->m_pMyVehicle->GetPosition();
|
|
|
|
return m_pPed->GetPosition();
|
|
|
|
}
|