This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
YimMenu/src/backend/looped/system/self_globals.cpp

24 lines
417 B
C++
Raw Normal View History

#include "backend/looped/looped.hpp"
#include "natives.hpp"
namespace big
{
void looped::system_self_globals()
{
self::id = PLAYER::PLAYER_ID();
self::ped = PLAYER::PLAYER_PED_ID();
self::pos = ENTITY::GET_ENTITY_COORDS(self::ped, false /*Unused*/);
if (PED::IS_PED_IN_ANY_VEHICLE(self::ped, 0))
{
self::veh = PED::GET_VEHICLE_PED_IS_IN(self::ped, false);
}
else
{
self::veh = 0;
}
}
}