mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-16 14:27:44 +08:00
42 lines
1021 B
C++
42 lines
1021 B
C++
#pragma once
|
|
#include "native_hooks.hpp"
|
|
#include "natives.hpp"
|
|
|
|
namespace big
|
|
{
|
|
namespace carmod_shop
|
|
{
|
|
inline void SET_ENTITY_COORDS(rage::scrNativeCallContext* src)
|
|
{
|
|
if (!g.vehicle.ls_customs)
|
|
{
|
|
ENTITY::SET_ENTITY_COORDS(src->get_arg<Entity>(0), src->get_arg<float>(1), src->get_arg<float>(2), src->get_arg<float>(3), src->get_arg<BOOL>(4), src->get_arg<BOOL>(5), src->get_arg<BOOL>(6), src->get_arg<BOOL>(7));
|
|
}
|
|
}
|
|
|
|
inline void SET_ENTITY_HEADING(rage::scrNativeCallContext* src)
|
|
{
|
|
if (!g.vehicle.ls_customs)
|
|
{
|
|
ENTITY::SET_ENTITY_HEADING(src->get_arg<Entity>(0), src->get_arg<float>(1));
|
|
}
|
|
}
|
|
|
|
inline void SET_VEHICLE_LIGHTS(rage::scrNativeCallContext* src)
|
|
{
|
|
if (!g.vehicle.ls_customs)
|
|
{
|
|
VEHICLE::SET_VEHICLE_LIGHTS(src->get_arg<Vehicle>(0), src->get_arg<int>(1));
|
|
}
|
|
}
|
|
|
|
inline void DISABLE_ALL_CONTROL_ACTIONS(rage::scrNativeCallContext* src)
|
|
{
|
|
if (!g.vehicle.ls_customs)
|
|
{
|
|
PAD::DISABLE_ALL_CONTROL_ACTIONS(src->get_arg<int>(0));
|
|
}
|
|
}
|
|
}
|
|
}
|