2022-01-21 23:13:43 +01:00
|
|
|
#pragma once
|
|
|
|
#include "native_hooks.hpp"
|
|
|
|
#include "natives.hpp"
|
|
|
|
|
|
|
|
namespace big
|
|
|
|
{
|
|
|
|
namespace carmod_shop
|
|
|
|
{
|
|
|
|
inline void SET_ENTITY_COORDS(rage::scrNativeCallContext* src)
|
|
|
|
{
|
2022-02-22 01:18:49 +01:00
|
|
|
if (!g->vehicle.ls_customs)
|
2022-01-21 23:13:43 +01:00
|
|
|
{
|
|
|
|
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)
|
|
|
|
{
|
2022-02-22 01:18:49 +01:00
|
|
|
if (!g->vehicle.ls_customs)
|
2022-01-21 23:13:43 +01:00
|
|
|
{
|
|
|
|
ENTITY::SET_ENTITY_HEADING(
|
|
|
|
src->get_arg<Entity>(0),
|
|
|
|
src->get_arg<float>(1)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
2022-01-26 15:19:56 +01:00
|
|
|
|
|
|
|
inline void SET_VEHICLE_LIGHTS(rage::scrNativeCallContext* src)
|
|
|
|
{
|
2022-02-22 01:18:49 +01:00
|
|
|
if (!g->vehicle.ls_customs)
|
2022-01-26 15:19:56 +01:00
|
|
|
{
|
|
|
|
VEHICLE::SET_VEHICLE_LIGHTS(
|
|
|
|
src->get_arg<Vehicle>(0),
|
|
|
|
src->get_arg<int>(1)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
2022-01-21 23:13:43 +01:00
|
|
|
}
|
|
|
|
}
|