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-12-18 23:15:52 +01:00
|
|
|
if (!g.vehicle.ls_customs)
|
2022-01-21 23:13:43 +01:00
|
|
|
{
|
2023-03-01 21:27:15 +00: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));
|
2022-01-21 23:13:43 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
inline void SET_ENTITY_HEADING(rage::scrNativeCallContext* src)
|
|
|
|
{
|
2022-12-18 23:15:52 +01:00
|
|
|
if (!g.vehicle.ls_customs)
|
2022-01-21 23:13:43 +01:00
|
|
|
{
|
2023-03-01 21:27:15 +00:00
|
|
|
ENTITY::SET_ENTITY_HEADING(src->get_arg<Entity>(0), src->get_arg<float>(1));
|
2022-01-21 23:13:43 +01:00
|
|
|
}
|
|
|
|
}
|
2022-01-26 15:19:56 +01:00
|
|
|
|
|
|
|
inline void SET_VEHICLE_LIGHTS(rage::scrNativeCallContext* src)
|
|
|
|
{
|
2022-12-18 23:15:52 +01:00
|
|
|
if (!g.vehicle.ls_customs)
|
2022-01-26 15:19:56 +01:00
|
|
|
{
|
2023-03-01 21:27:15 +00:00
|
|
|
VEHICLE::SET_VEHICLE_LIGHTS(src->get_arg<Vehicle>(0), src->get_arg<int>(1));
|
2022-01-26 15:19:56 +01:00
|
|
|
}
|
|
|
|
}
|
2023-03-09 12:23:01 +00:00
|
|
|
|
|
|
|
inline void DISABLE_ALL_CONTROL_ACTIONS(rage::scrNativeCallContext* src)
|
|
|
|
{
|
|
|
|
if (!g.vehicle.ls_customs)
|
|
|
|
{
|
|
|
|
PAD::DISABLE_ALL_CONTROL_ACTIONS(src->get_arg<int>(0));
|
|
|
|
}
|
|
|
|
}
|
2022-01-21 23:13:43 +01:00
|
|
|
}
|
2024-03-12 09:42:11 +01:00
|
|
|
}
|