mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2024-12-22 20:17:24 +08:00
lua natives: try to handle Any* parameters properly (#2785)
This commit is contained in:
parent
061484e828
commit
a29cca838c
@ -24,13 +24,17 @@ def print_hpp(text):
|
||||
class Arg:
|
||||
def __init__(self, name, type_):
|
||||
self.name = name
|
||||
self.type_ = type_.replace("BOOL", "bool")
|
||||
self.type_ = type_.replace("BOOL", "bool").replace("Any*", "uintptr_t")
|
||||
if self.type_ == "uintptr_t":
|
||||
self.is_any_ptr = True
|
||||
else:
|
||||
self.is_any_ptr = False
|
||||
if self.type_ == "const char*":
|
||||
self.type_ = self.type_.replace("const char*", "sol::stack_object")
|
||||
self.is_string = True
|
||||
else:
|
||||
self.is_string = False
|
||||
self.is_pointer_arg = "*" in type_ and "const char" not in type_
|
||||
self.is_pointer_arg = "*" in self.type_ and "const char" not in self.type_
|
||||
self.type_no_star = self.type_.replace("*", "")
|
||||
|
||||
def __str__(self) -> str:
|
||||
@ -43,7 +47,7 @@ class NativeFunc:
|
||||
self.lua_name = lua_name
|
||||
self.cpp_name = cpp_name
|
||||
self.args = args
|
||||
self.return_type = return_type.replace("BOOL", "bool")
|
||||
self.return_type = return_type.replace("BOOL", "bool").replace("Any*", "uintptr_t")
|
||||
|
||||
self.out_params = []
|
||||
if self.return_type != "void":
|
||||
@ -126,11 +130,15 @@ class NativeFunc:
|
||||
|
||||
if len(self.args) > 0:
|
||||
for arg in self.args:
|
||||
if arg.is_any_ptr:
|
||||
call_native += "(Any*)"
|
||||
|
||||
if arg.is_pointer_arg:
|
||||
if arg.type_ == "bool*":
|
||||
call_native += "(BOOL*)"
|
||||
call_native += "&"
|
||||
|
||||
|
||||
if arg.is_string:
|
||||
call_native += f'{arg.name}.is<const char*>() ? {arg.name}.as<const char*>() : nullptr, '
|
||||
else:
|
||||
@ -167,6 +175,9 @@ class NativeFunc:
|
||||
if returning_multiple_values:
|
||||
return_statement = "return return_values;"
|
||||
elif self.return_type != "void":
|
||||
if self.return_type == "uintptr_t":
|
||||
return_statement = "return (uintptr_t)retval;"
|
||||
else:
|
||||
return_statement = "return retval;"
|
||||
else:
|
||||
for arg in self.args:
|
||||
|
@ -157,13 +157,10 @@ namespace lua::native
|
||||
AUDIO::INTERRUPT_CONVERSATION_AND_PAUSE(ped, p1.is<const char*>() ? p1.as<const char*>() : nullptr, speaker.is<const char*>() ? speaker.as<const char*>() : nullptr);
|
||||
}
|
||||
|
||||
static std::tuple<int, Any> LUA_NATIVE_AUDIO_GET_VARIATION_CHOSEN_FOR_SCRIPTED_LINE(Any p0)
|
||||
static int LUA_NATIVE_AUDIO_GET_VARIATION_CHOSEN_FOR_SCRIPTED_LINE(uintptr_t p0)
|
||||
{
|
||||
std::tuple<int, Any> return_values;
|
||||
std::get<0>(return_values) = AUDIO::GET_VARIATION_CHOSEN_FOR_SCRIPTED_LINE(&p0);
|
||||
std::get<1>(return_values) = p0;
|
||||
|
||||
return return_values;
|
||||
auto retval = AUDIO::GET_VARIATION_CHOSEN_FOR_SCRIPTED_LINE((Any*)p0);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_AUDIO_SET_NO_DUCKING_FOR_CONVERSATION(bool p0)
|
||||
|
@ -43,13 +43,10 @@ namespace lua::native
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any> LUA_NATIVE_DATAFILE_UGC_CREATE_CONTENT(Any data, int dataCount, sol::stack_object contentName, sol::stack_object description, sol::stack_object tagsCsv, sol::stack_object contentTypeName, bool publish, Any p7)
|
||||
static bool LUA_NATIVE_DATAFILE_UGC_CREATE_CONTENT(uintptr_t data, int dataCount, sol::stack_object contentName, sol::stack_object description, sol::stack_object tagsCsv, sol::stack_object contentTypeName, bool publish, Any p7)
|
||||
{
|
||||
std::tuple<bool, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)DATAFILE::UGC_CREATE_CONTENT(&data, dataCount, contentName.is<const char*>() ? contentName.as<const char*>() : nullptr, description.is<const char*>() ? description.as<const char*>() : nullptr, tagsCsv.is<const char*>() ? tagsCsv.as<const char*>() : nullptr, contentTypeName.is<const char*>() ? contentTypeName.as<const char*>() : nullptr, publish, p7);
|
||||
std::get<1>(return_values) = data;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)DATAFILE::UGC_CREATE_CONTENT((Any*)data, dataCount, contentName.is<const char*>() ? contentName.as<const char*>() : nullptr, description.is<const char*>() ? description.as<const char*>() : nullptr, tagsCsv.is<const char*>() ? tagsCsv.as<const char*>() : nullptr, contentTypeName.is<const char*>() ? contentTypeName.as<const char*>() : nullptr, publish, p7);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static bool LUA_NATIVE_DATAFILE_UGC_CREATE_MISSION(sol::stack_object contentName, sol::stack_object description, sol::stack_object tagsCsv, sol::stack_object contentTypeName, bool publish, Any p5)
|
||||
@ -58,13 +55,10 @@ namespace lua::native
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any> LUA_NATIVE_DATAFILE_UGC_UPDATE_CONTENT(sol::stack_object contentId, Any data, int dataCount, sol::stack_object contentName, sol::stack_object description, sol::stack_object tagsCsv, sol::stack_object contentTypeName, Any p7)
|
||||
static bool LUA_NATIVE_DATAFILE_UGC_UPDATE_CONTENT(sol::stack_object contentId, uintptr_t data, int dataCount, sol::stack_object contentName, sol::stack_object description, sol::stack_object tagsCsv, sol::stack_object contentTypeName, Any p7)
|
||||
{
|
||||
std::tuple<bool, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)DATAFILE::UGC_UPDATE_CONTENT(contentId.is<const char*>() ? contentId.as<const char*>() : nullptr, &data, dataCount, contentName.is<const char*>() ? contentName.as<const char*>() : nullptr, description.is<const char*>() ? description.as<const char*>() : nullptr, tagsCsv.is<const char*>() ? tagsCsv.as<const char*>() : nullptr, contentTypeName.is<const char*>() ? contentTypeName.as<const char*>() : nullptr, p7);
|
||||
std::get<1>(return_values) = data;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)DATAFILE::UGC_UPDATE_CONTENT(contentId.is<const char*>() ? contentId.as<const char*>() : nullptr, (Any*)data, dataCount, contentName.is<const char*>() ? contentName.as<const char*>() : nullptr, description.is<const char*>() ? description.as<const char*>() : nullptr, tagsCsv.is<const char*>() ? tagsCsv.as<const char*>() : nullptr, contentTypeName.is<const char*>() ? contentTypeName.as<const char*>() : nullptr, p7);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static bool LUA_NATIVE_DATAFILE_UGC_UPDATE_MISSION(sol::stack_object contentId, sol::stack_object contentName, sol::stack_object description, sol::stack_object tagsCsv, sol::stack_object contentTypeName, Any p5)
|
||||
@ -129,10 +123,10 @@ namespace lua::native
|
||||
DATAFILE::DATAFILE_FLUSH_MISSION_HEADER();
|
||||
}
|
||||
|
||||
static Any* LUA_NATIVE_DATAFILE_DATAFILE_GET_FILE_DICT(int p0)
|
||||
static uintptr_t LUA_NATIVE_DATAFILE_DATAFILE_GET_FILE_DICT(int p0)
|
||||
{
|
||||
auto retval = DATAFILE::DATAFILE_GET_FILE_DICT(p0);
|
||||
return retval;
|
||||
return (uintptr_t)retval;
|
||||
}
|
||||
|
||||
static bool LUA_NATIVE_DATAFILE_DATAFILE_START_SAVE_TO_CLOUD(sol::stack_object filename, Any p1)
|
||||
@ -167,241 +161,174 @@ namespace lua::native
|
||||
DATAFILE::DATAFILE_DELETE_FOR_ADDITIONAL_DATA_FILE(p0);
|
||||
}
|
||||
|
||||
static Any* LUA_NATIVE_DATAFILE_DATAFILE_GET_FILE_DICT_FOR_ADDITIONAL_DATA_FILE(Any p0)
|
||||
static uintptr_t LUA_NATIVE_DATAFILE_DATAFILE_GET_FILE_DICT_FOR_ADDITIONAL_DATA_FILE(Any p0)
|
||||
{
|
||||
auto retval = DATAFILE::DATAFILE_GET_FILE_DICT_FOR_ADDITIONAL_DATA_FILE(p0);
|
||||
return (uintptr_t)retval;
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_DATAFILE_DATADICT_SET_BOOL(uintptr_t objectData, sol::stack_object key, bool value)
|
||||
{
|
||||
DATAFILE::DATADICT_SET_BOOL((Any*)objectData, key.is<const char*>() ? key.as<const char*>() : nullptr, value);
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_DATAFILE_DATADICT_SET_INT(uintptr_t objectData, sol::stack_object key, int value)
|
||||
{
|
||||
DATAFILE::DATADICT_SET_INT((Any*)objectData, key.is<const char*>() ? key.as<const char*>() : nullptr, value);
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_DATAFILE_DATADICT_SET_FLOAT(uintptr_t objectData, sol::stack_object key, float value)
|
||||
{
|
||||
DATAFILE::DATADICT_SET_FLOAT((Any*)objectData, key.is<const char*>() ? key.as<const char*>() : nullptr, value);
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_DATAFILE_DATADICT_SET_STRING(uintptr_t objectData, sol::stack_object key, sol::stack_object value)
|
||||
{
|
||||
DATAFILE::DATADICT_SET_STRING((Any*)objectData, key.is<const char*>() ? key.as<const char*>() : nullptr, value.is<const char*>() ? value.as<const char*>() : nullptr);
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_DATAFILE_DATADICT_SET_VECTOR(uintptr_t objectData, sol::stack_object key, float valueX, float valueY, float valueZ)
|
||||
{
|
||||
DATAFILE::DATADICT_SET_VECTOR((Any*)objectData, key.is<const char*>() ? key.as<const char*>() : nullptr, valueX, valueY, valueZ);
|
||||
}
|
||||
|
||||
static uintptr_t LUA_NATIVE_DATAFILE_DATADICT_CREATE_DICT(uintptr_t objectData, sol::stack_object key)
|
||||
{
|
||||
auto retval = DATAFILE::DATADICT_CREATE_DICT((Any*)objectData, key.is<const char*>() ? key.as<const char*>() : nullptr);
|
||||
return (uintptr_t)retval;
|
||||
}
|
||||
|
||||
static uintptr_t LUA_NATIVE_DATAFILE_DATADICT_CREATE_ARRAY(uintptr_t objectData, sol::stack_object key)
|
||||
{
|
||||
auto retval = DATAFILE::DATADICT_CREATE_ARRAY((Any*)objectData, key.is<const char*>() ? key.as<const char*>() : nullptr);
|
||||
return (uintptr_t)retval;
|
||||
}
|
||||
|
||||
static bool LUA_NATIVE_DATAFILE_DATADICT_GET_BOOL(uintptr_t objectData, sol::stack_object key)
|
||||
{
|
||||
auto retval = (bool)DATAFILE::DATADICT_GET_BOOL((Any*)objectData, key.is<const char*>() ? key.as<const char*>() : nullptr);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_DATAFILE_DATADICT_SET_BOOL(Any objectData, sol::stack_object key, bool value)
|
||||
static int LUA_NATIVE_DATAFILE_DATADICT_GET_INT(uintptr_t objectData, sol::stack_object key)
|
||||
{
|
||||
DATAFILE::DATADICT_SET_BOOL(&objectData, key.is<const char*>() ? key.as<const char*>() : nullptr, value);
|
||||
return objectData;
|
||||
auto retval = DATAFILE::DATADICT_GET_INT((Any*)objectData, key.is<const char*>() ? key.as<const char*>() : nullptr);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_DATAFILE_DATADICT_SET_INT(Any objectData, sol::stack_object key, int value)
|
||||
static float LUA_NATIVE_DATAFILE_DATADICT_GET_FLOAT(uintptr_t objectData, sol::stack_object key)
|
||||
{
|
||||
DATAFILE::DATADICT_SET_INT(&objectData, key.is<const char*>() ? key.as<const char*>() : nullptr, value);
|
||||
return objectData;
|
||||
auto retval = DATAFILE::DATADICT_GET_FLOAT((Any*)objectData, key.is<const char*>() ? key.as<const char*>() : nullptr);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_DATAFILE_DATADICT_SET_FLOAT(Any objectData, sol::stack_object key, float value)
|
||||
static const char* LUA_NATIVE_DATAFILE_DATADICT_GET_STRING(uintptr_t objectData, sol::stack_object key)
|
||||
{
|
||||
DATAFILE::DATADICT_SET_FLOAT(&objectData, key.is<const char*>() ? key.as<const char*>() : nullptr, value);
|
||||
return objectData;
|
||||
auto retval = DATAFILE::DATADICT_GET_STRING((Any*)objectData, key.is<const char*>() ? key.as<const char*>() : nullptr);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_DATAFILE_DATADICT_SET_STRING(Any objectData, sol::stack_object key, sol::stack_object value)
|
||||
static Vector3 LUA_NATIVE_DATAFILE_DATADICT_GET_VECTOR(uintptr_t objectData, sol::stack_object key)
|
||||
{
|
||||
DATAFILE::DATADICT_SET_STRING(&objectData, key.is<const char*>() ? key.as<const char*>() : nullptr, value.is<const char*>() ? value.as<const char*>() : nullptr);
|
||||
return objectData;
|
||||
auto retval = DATAFILE::DATADICT_GET_VECTOR((Any*)objectData, key.is<const char*>() ? key.as<const char*>() : nullptr);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_DATAFILE_DATADICT_SET_VECTOR(Any objectData, sol::stack_object key, float valueX, float valueY, float valueZ)
|
||||
static uintptr_t LUA_NATIVE_DATAFILE_DATADICT_GET_DICT(uintptr_t objectData, sol::stack_object key)
|
||||
{
|
||||
DATAFILE::DATADICT_SET_VECTOR(&objectData, key.is<const char*>() ? key.as<const char*>() : nullptr, valueX, valueY, valueZ);
|
||||
return objectData;
|
||||
auto retval = DATAFILE::DATADICT_GET_DICT((Any*)objectData, key.is<const char*>() ? key.as<const char*>() : nullptr);
|
||||
return (uintptr_t)retval;
|
||||
}
|
||||
|
||||
static std::tuple<Any*, Any> LUA_NATIVE_DATAFILE_DATADICT_CREATE_DICT(Any objectData, sol::stack_object key)
|
||||
static uintptr_t LUA_NATIVE_DATAFILE_DATADICT_GET_ARRAY(uintptr_t objectData, sol::stack_object key)
|
||||
{
|
||||
std::tuple<Any*, Any> return_values;
|
||||
std::get<0>(return_values) = DATAFILE::DATADICT_CREATE_DICT(&objectData, key.is<const char*>() ? key.as<const char*>() : nullptr);
|
||||
std::get<1>(return_values) = objectData;
|
||||
|
||||
return return_values;
|
||||
auto retval = DATAFILE::DATADICT_GET_ARRAY((Any*)objectData, key.is<const char*>() ? key.as<const char*>() : nullptr);
|
||||
return (uintptr_t)retval;
|
||||
}
|
||||
|
||||
static std::tuple<Any*, Any> LUA_NATIVE_DATAFILE_DATADICT_CREATE_ARRAY(Any objectData, sol::stack_object key)
|
||||
static int LUA_NATIVE_DATAFILE_DATADICT_GET_TYPE(uintptr_t objectData, sol::stack_object key)
|
||||
{
|
||||
std::tuple<Any*, Any> return_values;
|
||||
std::get<0>(return_values) = DATAFILE::DATADICT_CREATE_ARRAY(&objectData, key.is<const char*>() ? key.as<const char*>() : nullptr);
|
||||
std::get<1>(return_values) = objectData;
|
||||
|
||||
return return_values;
|
||||
auto retval = DATAFILE::DATADICT_GET_TYPE((Any*)objectData, key.is<const char*>() ? key.as<const char*>() : nullptr);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any> LUA_NATIVE_DATAFILE_DATADICT_GET_BOOL(Any objectData, sol::stack_object key)
|
||||
static void LUA_NATIVE_DATAFILE_DATAARRAY_ADD_BOOL(uintptr_t arrayData, bool value)
|
||||
{
|
||||
std::tuple<bool, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)DATAFILE::DATADICT_GET_BOOL(&objectData, key.is<const char*>() ? key.as<const char*>() : nullptr);
|
||||
std::get<1>(return_values) = objectData;
|
||||
|
||||
return return_values;
|
||||
DATAFILE::DATAARRAY_ADD_BOOL((Any*)arrayData, value);
|
||||
}
|
||||
|
||||
static std::tuple<int, Any> LUA_NATIVE_DATAFILE_DATADICT_GET_INT(Any objectData, sol::stack_object key)
|
||||
static void LUA_NATIVE_DATAFILE_DATAARRAY_ADD_INT(uintptr_t arrayData, int value)
|
||||
{
|
||||
std::tuple<int, Any> return_values;
|
||||
std::get<0>(return_values) = DATAFILE::DATADICT_GET_INT(&objectData, key.is<const char*>() ? key.as<const char*>() : nullptr);
|
||||
std::get<1>(return_values) = objectData;
|
||||
|
||||
return return_values;
|
||||
DATAFILE::DATAARRAY_ADD_INT((Any*)arrayData, value);
|
||||
}
|
||||
|
||||
static std::tuple<float, Any> LUA_NATIVE_DATAFILE_DATADICT_GET_FLOAT(Any objectData, sol::stack_object key)
|
||||
static void LUA_NATIVE_DATAFILE_DATAARRAY_ADD_FLOAT(uintptr_t arrayData, float value)
|
||||
{
|
||||
std::tuple<float, Any> return_values;
|
||||
std::get<0>(return_values) = DATAFILE::DATADICT_GET_FLOAT(&objectData, key.is<const char*>() ? key.as<const char*>() : nullptr);
|
||||
std::get<1>(return_values) = objectData;
|
||||
|
||||
return return_values;
|
||||
DATAFILE::DATAARRAY_ADD_FLOAT((Any*)arrayData, value);
|
||||
}
|
||||
|
||||
static std::tuple<const char*, Any> LUA_NATIVE_DATAFILE_DATADICT_GET_STRING(Any objectData, sol::stack_object key)
|
||||
static void LUA_NATIVE_DATAFILE_DATAARRAY_ADD_STRING(uintptr_t arrayData, sol::stack_object value)
|
||||
{
|
||||
std::tuple<const char*, Any> return_values;
|
||||
std::get<0>(return_values) = DATAFILE::DATADICT_GET_STRING(&objectData, key.is<const char*>() ? key.as<const char*>() : nullptr);
|
||||
std::get<1>(return_values) = objectData;
|
||||
|
||||
return return_values;
|
||||
DATAFILE::DATAARRAY_ADD_STRING((Any*)arrayData, value.is<const char*>() ? value.as<const char*>() : nullptr);
|
||||
}
|
||||
|
||||
static std::tuple<Vector3, Any> LUA_NATIVE_DATAFILE_DATADICT_GET_VECTOR(Any objectData, sol::stack_object key)
|
||||
static void LUA_NATIVE_DATAFILE_DATAARRAY_ADD_VECTOR(uintptr_t arrayData, float valueX, float valueY, float valueZ)
|
||||
{
|
||||
std::tuple<Vector3, Any> return_values;
|
||||
std::get<0>(return_values) = DATAFILE::DATADICT_GET_VECTOR(&objectData, key.is<const char*>() ? key.as<const char*>() : nullptr);
|
||||
std::get<1>(return_values) = objectData;
|
||||
|
||||
return return_values;
|
||||
DATAFILE::DATAARRAY_ADD_VECTOR((Any*)arrayData, valueX, valueY, valueZ);
|
||||
}
|
||||
|
||||
static std::tuple<Any*, Any> LUA_NATIVE_DATAFILE_DATADICT_GET_DICT(Any objectData, sol::stack_object key)
|
||||
static uintptr_t LUA_NATIVE_DATAFILE_DATAARRAY_ADD_DICT(uintptr_t arrayData)
|
||||
{
|
||||
std::tuple<Any*, Any> return_values;
|
||||
std::get<0>(return_values) = DATAFILE::DATADICT_GET_DICT(&objectData, key.is<const char*>() ? key.as<const char*>() : nullptr);
|
||||
std::get<1>(return_values) = objectData;
|
||||
|
||||
return return_values;
|
||||
auto retval = DATAFILE::DATAARRAY_ADD_DICT((Any*)arrayData);
|
||||
return (uintptr_t)retval;
|
||||
}
|
||||
|
||||
static std::tuple<Any*, Any> LUA_NATIVE_DATAFILE_DATADICT_GET_ARRAY(Any objectData, sol::stack_object key)
|
||||
static bool LUA_NATIVE_DATAFILE_DATAARRAY_GET_BOOL(uintptr_t arrayData, int arrayIndex)
|
||||
{
|
||||
std::tuple<Any*, Any> return_values;
|
||||
std::get<0>(return_values) = DATAFILE::DATADICT_GET_ARRAY(&objectData, key.is<const char*>() ? key.as<const char*>() : nullptr);
|
||||
std::get<1>(return_values) = objectData;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)DATAFILE::DATAARRAY_GET_BOOL((Any*)arrayData, arrayIndex);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<int, Any> LUA_NATIVE_DATAFILE_DATADICT_GET_TYPE(Any objectData, sol::stack_object key)
|
||||
static int LUA_NATIVE_DATAFILE_DATAARRAY_GET_INT(uintptr_t arrayData, int arrayIndex)
|
||||
{
|
||||
std::tuple<int, Any> return_values;
|
||||
std::get<0>(return_values) = DATAFILE::DATADICT_GET_TYPE(&objectData, key.is<const char*>() ? key.as<const char*>() : nullptr);
|
||||
std::get<1>(return_values) = objectData;
|
||||
|
||||
return return_values;
|
||||
auto retval = DATAFILE::DATAARRAY_GET_INT((Any*)arrayData, arrayIndex);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_DATAFILE_DATAARRAY_ADD_BOOL(Any arrayData, bool value)
|
||||
static float LUA_NATIVE_DATAFILE_DATAARRAY_GET_FLOAT(uintptr_t arrayData, int arrayIndex)
|
||||
{
|
||||
DATAFILE::DATAARRAY_ADD_BOOL(&arrayData, value);
|
||||
return arrayData;
|
||||
auto retval = DATAFILE::DATAARRAY_GET_FLOAT((Any*)arrayData, arrayIndex);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_DATAFILE_DATAARRAY_ADD_INT(Any arrayData, int value)
|
||||
static const char* LUA_NATIVE_DATAFILE_DATAARRAY_GET_STRING(uintptr_t arrayData, int arrayIndex)
|
||||
{
|
||||
DATAFILE::DATAARRAY_ADD_INT(&arrayData, value);
|
||||
return arrayData;
|
||||
auto retval = DATAFILE::DATAARRAY_GET_STRING((Any*)arrayData, arrayIndex);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_DATAFILE_DATAARRAY_ADD_FLOAT(Any arrayData, float value)
|
||||
static Vector3 LUA_NATIVE_DATAFILE_DATAARRAY_GET_VECTOR(uintptr_t arrayData, int arrayIndex)
|
||||
{
|
||||
DATAFILE::DATAARRAY_ADD_FLOAT(&arrayData, value);
|
||||
return arrayData;
|
||||
auto retval = DATAFILE::DATAARRAY_GET_VECTOR((Any*)arrayData, arrayIndex);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_DATAFILE_DATAARRAY_ADD_STRING(Any arrayData, sol::stack_object value)
|
||||
static uintptr_t LUA_NATIVE_DATAFILE_DATAARRAY_GET_DICT(uintptr_t arrayData, int arrayIndex)
|
||||
{
|
||||
DATAFILE::DATAARRAY_ADD_STRING(&arrayData, value.is<const char*>() ? value.as<const char*>() : nullptr);
|
||||
return arrayData;
|
||||
auto retval = DATAFILE::DATAARRAY_GET_DICT((Any*)arrayData, arrayIndex);
|
||||
return (uintptr_t)retval;
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_DATAFILE_DATAARRAY_ADD_VECTOR(Any arrayData, float valueX, float valueY, float valueZ)
|
||||
static int LUA_NATIVE_DATAFILE_DATAARRAY_GET_COUNT(uintptr_t arrayData)
|
||||
{
|
||||
DATAFILE::DATAARRAY_ADD_VECTOR(&arrayData, valueX, valueY, valueZ);
|
||||
return arrayData;
|
||||
auto retval = DATAFILE::DATAARRAY_GET_COUNT((Any*)arrayData);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<Any*, Any> LUA_NATIVE_DATAFILE_DATAARRAY_ADD_DICT(Any arrayData)
|
||||
static int LUA_NATIVE_DATAFILE_DATAARRAY_GET_TYPE(uintptr_t arrayData, int arrayIndex)
|
||||
{
|
||||
std::tuple<Any*, Any> return_values;
|
||||
std::get<0>(return_values) = DATAFILE::DATAARRAY_ADD_DICT(&arrayData);
|
||||
std::get<1>(return_values) = arrayData;
|
||||
|
||||
return return_values;
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any> LUA_NATIVE_DATAFILE_DATAARRAY_GET_BOOL(Any arrayData, int arrayIndex)
|
||||
{
|
||||
std::tuple<bool, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)DATAFILE::DATAARRAY_GET_BOOL(&arrayData, arrayIndex);
|
||||
std::get<1>(return_values) = arrayData;
|
||||
|
||||
return return_values;
|
||||
}
|
||||
|
||||
static std::tuple<int, Any> LUA_NATIVE_DATAFILE_DATAARRAY_GET_INT(Any arrayData, int arrayIndex)
|
||||
{
|
||||
std::tuple<int, Any> return_values;
|
||||
std::get<0>(return_values) = DATAFILE::DATAARRAY_GET_INT(&arrayData, arrayIndex);
|
||||
std::get<1>(return_values) = arrayData;
|
||||
|
||||
return return_values;
|
||||
}
|
||||
|
||||
static std::tuple<float, Any> LUA_NATIVE_DATAFILE_DATAARRAY_GET_FLOAT(Any arrayData, int arrayIndex)
|
||||
{
|
||||
std::tuple<float, Any> return_values;
|
||||
std::get<0>(return_values) = DATAFILE::DATAARRAY_GET_FLOAT(&arrayData, arrayIndex);
|
||||
std::get<1>(return_values) = arrayData;
|
||||
|
||||
return return_values;
|
||||
}
|
||||
|
||||
static std::tuple<const char*, Any> LUA_NATIVE_DATAFILE_DATAARRAY_GET_STRING(Any arrayData, int arrayIndex)
|
||||
{
|
||||
std::tuple<const char*, Any> return_values;
|
||||
std::get<0>(return_values) = DATAFILE::DATAARRAY_GET_STRING(&arrayData, arrayIndex);
|
||||
std::get<1>(return_values) = arrayData;
|
||||
|
||||
return return_values;
|
||||
}
|
||||
|
||||
static std::tuple<Vector3, Any> LUA_NATIVE_DATAFILE_DATAARRAY_GET_VECTOR(Any arrayData, int arrayIndex)
|
||||
{
|
||||
std::tuple<Vector3, Any> return_values;
|
||||
std::get<0>(return_values) = DATAFILE::DATAARRAY_GET_VECTOR(&arrayData, arrayIndex);
|
||||
std::get<1>(return_values) = arrayData;
|
||||
|
||||
return return_values;
|
||||
}
|
||||
|
||||
static std::tuple<Any*, Any> LUA_NATIVE_DATAFILE_DATAARRAY_GET_DICT(Any arrayData, int arrayIndex)
|
||||
{
|
||||
std::tuple<Any*, Any> return_values;
|
||||
std::get<0>(return_values) = DATAFILE::DATAARRAY_GET_DICT(&arrayData, arrayIndex);
|
||||
std::get<1>(return_values) = arrayData;
|
||||
|
||||
return return_values;
|
||||
}
|
||||
|
||||
static std::tuple<int, Any> LUA_NATIVE_DATAFILE_DATAARRAY_GET_COUNT(Any arrayData)
|
||||
{
|
||||
std::tuple<int, Any> return_values;
|
||||
std::get<0>(return_values) = DATAFILE::DATAARRAY_GET_COUNT(&arrayData);
|
||||
std::get<1>(return_values) = arrayData;
|
||||
|
||||
return return_values;
|
||||
}
|
||||
|
||||
static std::tuple<int, Any> LUA_NATIVE_DATAFILE_DATAARRAY_GET_TYPE(Any arrayData, int arrayIndex)
|
||||
{
|
||||
std::tuple<int, Any> return_values;
|
||||
std::get<0>(return_values) = DATAFILE::DATAARRAY_GET_TYPE(&arrayData, arrayIndex);
|
||||
std::get<1>(return_values) = arrayData;
|
||||
|
||||
return return_values;
|
||||
auto retval = DATAFILE::DATAARRAY_GET_TYPE((Any*)arrayData, arrayIndex);
|
||||
return retval;
|
||||
}
|
||||
|
||||
void init_native_binding_DATAFILE(sol::state& L)
|
||||
|
@ -663,14 +663,10 @@ namespace lua::native
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any, Any> LUA_NATIVE_ENTITY_FIND_ANIM_EVENT_PHASE(sol::stack_object animDictionary, sol::stack_object animName, sol::stack_object p2, Any p3, Any p4)
|
||||
static bool LUA_NATIVE_ENTITY_FIND_ANIM_EVENT_PHASE(sol::stack_object animDictionary, sol::stack_object animName, sol::stack_object p2, uintptr_t p3, uintptr_t p4)
|
||||
{
|
||||
std::tuple<bool, Any, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)ENTITY::FIND_ANIM_EVENT_PHASE(animDictionary.is<const char*>() ? animDictionary.as<const char*>() : nullptr, animName.is<const char*>() ? animName.as<const char*>() : nullptr, p2.is<const char*>() ? p2.as<const char*>() : nullptr, &p3, &p4);
|
||||
std::get<1>(return_values) = p3;
|
||||
std::get<2>(return_values) = p4;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)ENTITY::FIND_ANIM_EVENT_PHASE(animDictionary.is<const char*>() ? animDictionary.as<const char*>() : nullptr, animName.is<const char*>() ? animName.as<const char*>() : nullptr, p2.is<const char*>() ? p2.as<const char*>() : nullptr, (Any*)p3, (Any*)p4);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_ENTITY_SET_ENTITY_ANIM_CURRENT_TIME(Entity entity, sol::stack_object animDictionary, sol::stack_object animName, float time)
|
||||
|
@ -9,13 +9,10 @@ namespace lua::native
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any> LUA_NATIVE_FILES_GET_TATTOO_SHOP_DLC_ITEM_DATA(int characterType, int decorationIndex, Any outComponent)
|
||||
static bool LUA_NATIVE_FILES_GET_TATTOO_SHOP_DLC_ITEM_DATA(int characterType, int decorationIndex, uintptr_t outComponent)
|
||||
{
|
||||
std::tuple<bool, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)FILES::GET_TATTOO_SHOP_DLC_ITEM_DATA(characterType, decorationIndex, &outComponent);
|
||||
std::get<1>(return_values) = outComponent;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)FILES::GET_TATTOO_SHOP_DLC_ITEM_DATA(characterType, decorationIndex, (Any*)outComponent);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static int LUA_NATIVE_FILES_GET_TATTOO_SHOP_DLC_ITEM_INDEX(Hash overlayHash, Any p1, int character)
|
||||
@ -24,16 +21,14 @@ namespace lua::native
|
||||
return retval;
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_FILES_INIT_SHOP_PED_COMPONENT(Any outComponent)
|
||||
static void LUA_NATIVE_FILES_INIT_SHOP_PED_COMPONENT(uintptr_t outComponent)
|
||||
{
|
||||
FILES::INIT_SHOP_PED_COMPONENT(&outComponent);
|
||||
return outComponent;
|
||||
FILES::INIT_SHOP_PED_COMPONENT((Any*)outComponent);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_FILES_INIT_SHOP_PED_PROP(Any outProp)
|
||||
static void LUA_NATIVE_FILES_INIT_SHOP_PED_PROP(uintptr_t outProp)
|
||||
{
|
||||
FILES::INIT_SHOP_PED_PROP(&outProp);
|
||||
return outProp;
|
||||
FILES::INIT_SHOP_PED_PROP((Any*)outProp);
|
||||
}
|
||||
|
||||
static int LUA_NATIVE_FILES_SETUP_SHOP_PED_APPAREL_QUERY(int p0, int p1, int p2, int p3)
|
||||
@ -48,10 +43,9 @@ namespace lua::native
|
||||
return retval;
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_FILES_GET_SHOP_PED_QUERY_COMPONENT(int componentId, Any outComponent)
|
||||
static void LUA_NATIVE_FILES_GET_SHOP_PED_QUERY_COMPONENT(int componentId, uintptr_t outComponent)
|
||||
{
|
||||
FILES::GET_SHOP_PED_QUERY_COMPONENT(componentId, &outComponent);
|
||||
return outComponent;
|
||||
FILES::GET_SHOP_PED_QUERY_COMPONENT(componentId, (Any*)outComponent);
|
||||
}
|
||||
|
||||
static int LUA_NATIVE_FILES_GET_SHOP_PED_QUERY_COMPONENT_INDEX(Hash componentHash)
|
||||
@ -60,16 +54,14 @@ namespace lua::native
|
||||
return retval;
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_FILES_GET_SHOP_PED_COMPONENT(Hash componentHash, Any outComponent)
|
||||
static void LUA_NATIVE_FILES_GET_SHOP_PED_COMPONENT(Hash componentHash, uintptr_t outComponent)
|
||||
{
|
||||
FILES::GET_SHOP_PED_COMPONENT(componentHash, &outComponent);
|
||||
return outComponent;
|
||||
FILES::GET_SHOP_PED_COMPONENT(componentHash, (Any*)outComponent);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_FILES_GET_SHOP_PED_QUERY_PROP(int componentId, Any outProp)
|
||||
static void LUA_NATIVE_FILES_GET_SHOP_PED_QUERY_PROP(int componentId, uintptr_t outProp)
|
||||
{
|
||||
FILES::GET_SHOP_PED_QUERY_PROP(componentId, &outProp);
|
||||
return outProp;
|
||||
FILES::GET_SHOP_PED_QUERY_PROP(componentId, (Any*)outProp);
|
||||
}
|
||||
|
||||
static int LUA_NATIVE_FILES_GET_SHOP_PED_QUERY_PROP_INDEX(Hash componentHash)
|
||||
@ -78,10 +70,9 @@ namespace lua::native
|
||||
return retval;
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_FILES_GET_SHOP_PED_PROP(Hash componentHash, Any outProp)
|
||||
static void LUA_NATIVE_FILES_GET_SHOP_PED_PROP(Hash componentHash, uintptr_t outProp)
|
||||
{
|
||||
FILES::GET_SHOP_PED_PROP(componentHash, &outProp);
|
||||
return outProp;
|
||||
FILES::GET_SHOP_PED_PROP(componentHash, (Any*)outProp);
|
||||
}
|
||||
|
||||
static Hash LUA_NATIVE_FILES_GET_HASH_NAME_FOR_COMPONENT(Entity entity, int componentId, int drawableVariant, int textureVariant)
|
||||
@ -188,16 +179,14 @@ namespace lua::native
|
||||
return retval;
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_FILES_GET_SHOP_PED_QUERY_OUTFIT(int outfitIndex, Any outfit)
|
||||
static void LUA_NATIVE_FILES_GET_SHOP_PED_QUERY_OUTFIT(int outfitIndex, uintptr_t outfit)
|
||||
{
|
||||
FILES::GET_SHOP_PED_QUERY_OUTFIT(outfitIndex, &outfit);
|
||||
return outfit;
|
||||
FILES::GET_SHOP_PED_QUERY_OUTFIT(outfitIndex, (Any*)outfit);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_FILES_GET_SHOP_PED_OUTFIT(Any p0, Any p1)
|
||||
static void LUA_NATIVE_FILES_GET_SHOP_PED_OUTFIT(Any p0, uintptr_t p1)
|
||||
{
|
||||
FILES::GET_SHOP_PED_OUTFIT(p0, &p1);
|
||||
return p1;
|
||||
FILES::GET_SHOP_PED_OUTFIT(p0, (Any*)p1);
|
||||
}
|
||||
|
||||
static int LUA_NATIVE_FILES_GET_SHOP_PED_OUTFIT_LOCATE(Any p0)
|
||||
@ -206,22 +195,16 @@ namespace lua::native
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any> LUA_NATIVE_FILES_GET_SHOP_PED_OUTFIT_PROP_VARIANT(Hash outfitHash, int variantIndex, Any outPropVariant)
|
||||
static bool LUA_NATIVE_FILES_GET_SHOP_PED_OUTFIT_PROP_VARIANT(Hash outfitHash, int variantIndex, uintptr_t outPropVariant)
|
||||
{
|
||||
std::tuple<bool, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)FILES::GET_SHOP_PED_OUTFIT_PROP_VARIANT(outfitHash, variantIndex, &outPropVariant);
|
||||
std::get<1>(return_values) = outPropVariant;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)FILES::GET_SHOP_PED_OUTFIT_PROP_VARIANT(outfitHash, variantIndex, (Any*)outPropVariant);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any> LUA_NATIVE_FILES_GET_SHOP_PED_OUTFIT_COMPONENT_VARIANT(Hash outfitHash, int variantIndex, Any outComponentVariant)
|
||||
static bool LUA_NATIVE_FILES_GET_SHOP_PED_OUTFIT_COMPONENT_VARIANT(Hash outfitHash, int variantIndex, uintptr_t outComponentVariant)
|
||||
{
|
||||
std::tuple<bool, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)FILES::GET_SHOP_PED_OUTFIT_COMPONENT_VARIANT(outfitHash, variantIndex, &outComponentVariant);
|
||||
std::get<1>(return_values) = outComponentVariant;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)FILES::GET_SHOP_PED_OUTFIT_COMPONENT_VARIANT(outfitHash, variantIndex, (Any*)outComponentVariant);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static int LUA_NATIVE_FILES_GET_NUM_DLC_VEHICLES()
|
||||
@ -236,13 +219,10 @@ namespace lua::native
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any> LUA_NATIVE_FILES_GET_DLC_VEHICLE_DATA(int dlcVehicleIndex, Any outData)
|
||||
static bool LUA_NATIVE_FILES_GET_DLC_VEHICLE_DATA(int dlcVehicleIndex, uintptr_t outData)
|
||||
{
|
||||
std::tuple<bool, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)FILES::GET_DLC_VEHICLE_DATA(dlcVehicleIndex, &outData);
|
||||
std::get<1>(return_values) = outData;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)FILES::GET_DLC_VEHICLE_DATA(dlcVehicleIndex, (Any*)outData);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static int LUA_NATIVE_FILES_GET_DLC_VEHICLE_FLAGS(int dlcVehicleIndex)
|
||||
@ -263,22 +243,16 @@ namespace lua::native
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any> LUA_NATIVE_FILES_GET_DLC_WEAPON_DATA(int dlcWeaponIndex, Any outData)
|
||||
static bool LUA_NATIVE_FILES_GET_DLC_WEAPON_DATA(int dlcWeaponIndex, uintptr_t outData)
|
||||
{
|
||||
std::tuple<bool, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)FILES::GET_DLC_WEAPON_DATA(dlcWeaponIndex, &outData);
|
||||
std::get<1>(return_values) = outData;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)FILES::GET_DLC_WEAPON_DATA(dlcWeaponIndex, (Any*)outData);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any> LUA_NATIVE_FILES_GET_DLC_WEAPON_DATA_SP(int dlcWeaponIndex, Any outData)
|
||||
static bool LUA_NATIVE_FILES_GET_DLC_WEAPON_DATA_SP(int dlcWeaponIndex, uintptr_t outData)
|
||||
{
|
||||
std::tuple<bool, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)FILES::GET_DLC_WEAPON_DATA_SP(dlcWeaponIndex, &outData);
|
||||
std::get<1>(return_values) = outData;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)FILES::GET_DLC_WEAPON_DATA_SP(dlcWeaponIndex, (Any*)outData);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static int LUA_NATIVE_FILES_GET_NUM_DLC_WEAPON_COMPONENTS(int dlcWeaponIndex)
|
||||
@ -293,22 +267,16 @@ namespace lua::native
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any> LUA_NATIVE_FILES_GET_DLC_WEAPON_COMPONENT_DATA(int dlcWeaponIndex, int dlcWeapCompIndex, Any ComponentDataPtr)
|
||||
static bool LUA_NATIVE_FILES_GET_DLC_WEAPON_COMPONENT_DATA(int dlcWeaponIndex, int dlcWeapCompIndex, uintptr_t ComponentDataPtr)
|
||||
{
|
||||
std::tuple<bool, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)FILES::GET_DLC_WEAPON_COMPONENT_DATA(dlcWeaponIndex, dlcWeapCompIndex, &ComponentDataPtr);
|
||||
std::get<1>(return_values) = ComponentDataPtr;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)FILES::GET_DLC_WEAPON_COMPONENT_DATA(dlcWeaponIndex, dlcWeapCompIndex, (Any*)ComponentDataPtr);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any> LUA_NATIVE_FILES_GET_DLC_WEAPON_COMPONENT_DATA_SP(int dlcWeaponIndex, int dlcWeapCompIndex, Any ComponentDataPtr)
|
||||
static bool LUA_NATIVE_FILES_GET_DLC_WEAPON_COMPONENT_DATA_SP(int dlcWeaponIndex, int dlcWeapCompIndex, uintptr_t ComponentDataPtr)
|
||||
{
|
||||
std::tuple<bool, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)FILES::GET_DLC_WEAPON_COMPONENT_DATA_SP(dlcWeaponIndex, dlcWeapCompIndex, &ComponentDataPtr);
|
||||
std::get<1>(return_values) = ComponentDataPtr;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)FILES::GET_DLC_WEAPON_COMPONENT_DATA_SP(dlcWeaponIndex, dlcWeapCompIndex, (Any*)ComponentDataPtr);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static bool LUA_NATIVE_FILES_IS_CONTENT_ITEM_LOCKED(Hash itemHash)
|
||||
|
@ -90,22 +90,16 @@ namespace lua::native
|
||||
GRAPHICS::FREE_MEMORY_FOR_MISSION_CREATOR_PHOTO();
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any> LUA_NATIVE_GRAPHICS_LOAD_MISSION_CREATOR_PHOTO(Any p0, Any p1, Any p2, Any p3)
|
||||
static bool LUA_NATIVE_GRAPHICS_LOAD_MISSION_CREATOR_PHOTO(uintptr_t p0, Any p1, Any p2, Any p3)
|
||||
{
|
||||
std::tuple<bool, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)GRAPHICS::LOAD_MISSION_CREATOR_PHOTO(&p0, p1, p2, p3);
|
||||
std::get<1>(return_values) = p0;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)GRAPHICS::LOAD_MISSION_CREATOR_PHOTO((Any*)p0, p1, p2, p3);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<int, Any> LUA_NATIVE_GRAPHICS_GET_STATUS_OF_LOAD_MISSION_CREATOR_PHOTO(Any p0)
|
||||
static int LUA_NATIVE_GRAPHICS_GET_STATUS_OF_LOAD_MISSION_CREATOR_PHOTO(uintptr_t p0)
|
||||
{
|
||||
std::tuple<int, Any> return_values;
|
||||
std::get<0>(return_values) = GRAPHICS::GET_STATUS_OF_LOAD_MISSION_CREATOR_PHOTO(&p0);
|
||||
std::get<1>(return_values) = p0;
|
||||
|
||||
return return_values;
|
||||
auto retval = GRAPHICS::GET_STATUS_OF_LOAD_MISSION_CREATOR_PHOTO((Any*)p0);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static bool LUA_NATIVE_GRAPHICS_BEGIN_CREATE_MISSION_CREATOR_PHOTO_PREVIEW()
|
||||
|
@ -61,15 +61,10 @@ namespace lua::native
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any, Any, Any> LUA_NATIVE_HUD_GET_MOUSE_EVENT(int scaleformHandle, Any p1, Any p2, Any p3)
|
||||
static bool LUA_NATIVE_HUD_GET_MOUSE_EVENT(int scaleformHandle, uintptr_t p1, uintptr_t p2, uintptr_t p3)
|
||||
{
|
||||
std::tuple<bool, Any, Any, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)HUD::GET_MOUSE_EVENT(scaleformHandle, &p1, &p2, &p3);
|
||||
std::get<1>(return_values) = p1;
|
||||
std::get<2>(return_values) = p2;
|
||||
std::get<3>(return_values) = p3;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)HUD::GET_MOUSE_EVENT(scaleformHandle, (Any*)p1, (Any*)p2, (Any*)p3);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_HUD_THEFEED_ONLY_SHOW_TOOLTIPS(bool toggle)
|
||||
@ -2206,14 +2201,9 @@ namespace lua::native
|
||||
HUD::SET_WARNING_MESSAGE(titleMsg.is<const char*>() ? titleMsg.as<const char*>() : nullptr, flags, promptMsg.is<const char*>() ? promptMsg.as<const char*>() : nullptr, p3, p4, p5.is<const char*>() ? p5.as<const char*>() : nullptr, p6.is<const char*>() ? p6.as<const char*>() : nullptr, showBackground, errorCode);
|
||||
}
|
||||
|
||||
static std::tuple<Any, Any> LUA_NATIVE_HUD_SET_WARNING_MESSAGE_WITH_HEADER(sol::stack_object entryHeader, sol::stack_object entryLine1, int instructionalKey, sol::stack_object entryLine2, bool p4, Any p5, Any showBackground, Any p7, bool p8, Any p9)
|
||||
static void LUA_NATIVE_HUD_SET_WARNING_MESSAGE_WITH_HEADER(sol::stack_object entryHeader, sol::stack_object entryLine1, int instructionalKey, sol::stack_object entryLine2, bool p4, Any p5, uintptr_t showBackground, uintptr_t p7, bool p8, Any p9)
|
||||
{
|
||||
std::tuple<Any, Any> return_values;
|
||||
HUD::SET_WARNING_MESSAGE_WITH_HEADER(entryHeader.is<const char*>() ? entryHeader.as<const char*>() : nullptr, entryLine1.is<const char*>() ? entryLine1.as<const char*>() : nullptr, instructionalKey, entryLine2.is<const char*>() ? entryLine2.as<const char*>() : nullptr, p4, p5, &showBackground, &p7, p8, p9);
|
||||
std::get<0>(return_values) = showBackground;
|
||||
std::get<1>(return_values) = p7;
|
||||
|
||||
return return_values;
|
||||
HUD::SET_WARNING_MESSAGE_WITH_HEADER(entryHeader.is<const char*>() ? entryHeader.as<const char*>() : nullptr, entryLine1.is<const char*>() ? entryLine1.as<const char*>() : nullptr, instructionalKey, entryLine2.is<const char*>() ? entryLine2.as<const char*>() : nullptr, p4, p5, (Any*)showBackground, (Any*)p7, p8, p9);
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_HUD_SET_WARNING_MESSAGE_WITH_HEADER_AND_SUBSTRING_FLAGS(sol::stack_object entryHeader, sol::stack_object entryLine1, int instructionalKey, sol::stack_object entryLine2, bool p4, Any p5, Any additionalIntInfo, sol::stack_object additionalTextInfoLine1, sol::stack_object additionalTextInfoLine2, bool showBackground, int errorCode)
|
||||
@ -2221,14 +2211,9 @@ namespace lua::native
|
||||
HUD::SET_WARNING_MESSAGE_WITH_HEADER_AND_SUBSTRING_FLAGS(entryHeader.is<const char*>() ? entryHeader.as<const char*>() : nullptr, entryLine1.is<const char*>() ? entryLine1.as<const char*>() : nullptr, instructionalKey, entryLine2.is<const char*>() ? entryLine2.as<const char*>() : nullptr, p4, p5, additionalIntInfo, additionalTextInfoLine1.is<const char*>() ? additionalTextInfoLine1.as<const char*>() : nullptr, additionalTextInfoLine2.is<const char*>() ? additionalTextInfoLine2.as<const char*>() : nullptr, showBackground, errorCode);
|
||||
}
|
||||
|
||||
static std::tuple<Any, Any> LUA_NATIVE_HUD_SET_WARNING_MESSAGE_WITH_HEADER_EXTENDED(sol::stack_object entryHeader, sol::stack_object entryLine1, int flags, sol::stack_object entryLine2, bool p4, Any p5, Any p6, Any p7, bool showBg, Any p9, Any p10)
|
||||
static void LUA_NATIVE_HUD_SET_WARNING_MESSAGE_WITH_HEADER_EXTENDED(sol::stack_object entryHeader, sol::stack_object entryLine1, int flags, sol::stack_object entryLine2, bool p4, Any p5, uintptr_t p6, uintptr_t p7, bool showBg, Any p9, Any p10)
|
||||
{
|
||||
std::tuple<Any, Any> return_values;
|
||||
HUD::SET_WARNING_MESSAGE_WITH_HEADER_EXTENDED(entryHeader.is<const char*>() ? entryHeader.as<const char*>() : nullptr, entryLine1.is<const char*>() ? entryLine1.as<const char*>() : nullptr, flags, entryLine2.is<const char*>() ? entryLine2.as<const char*>() : nullptr, p4, p5, &p6, &p7, showBg, p9, p10);
|
||||
std::get<0>(return_values) = p6;
|
||||
std::get<1>(return_values) = p7;
|
||||
|
||||
return return_values;
|
||||
HUD::SET_WARNING_MESSAGE_WITH_HEADER_EXTENDED(entryHeader.is<const char*>() ? entryHeader.as<const char*>() : nullptr, entryLine1.is<const char*>() ? entryLine1.as<const char*>() : nullptr, flags, entryLine2.is<const char*>() ? entryLine2.as<const char*>() : nullptr, p4, p5, (Any*)p6, (Any*)p7, showBg, p9, p10);
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_HUD_SET_WARNING_MESSAGE_WITH_HEADER_AND_SUBSTRING_FLAGS_EXTENDED(sol::stack_object labelTitle, sol::stack_object labelMessage, int p2, int p3, sol::stack_object labelMessage2, bool p5, int p6, int p7, sol::stack_object p8, sol::stack_object p9, bool background, int errorCode)
|
||||
@ -2449,15 +2434,10 @@ namespace lua::native
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any, Any, Any> LUA_NATIVE_HUD_PAUSE_MENU_GET_MOUSE_CLICK_EVENT(Any p0, Any p1, Any p2)
|
||||
static bool LUA_NATIVE_HUD_PAUSE_MENU_GET_MOUSE_CLICK_EVENT(uintptr_t p0, uintptr_t p1, uintptr_t p2)
|
||||
{
|
||||
std::tuple<bool, Any, Any, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)HUD::PAUSE_MENU_GET_MOUSE_CLICK_EVENT(&p0, &p1, &p2);
|
||||
std::get<1>(return_values) = p0;
|
||||
std::get<2>(return_values) = p1;
|
||||
std::get<3>(return_values) = p2;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)HUD::PAUSE_MENU_GET_MOUSE_CLICK_EVENT((Any*)p0, (Any*)p1, (Any*)p2);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_HUD_PAUSE_MENU_REDRAW_INSTRUCTIONAL_BUTTONS(int p0)
|
||||
@ -2558,22 +2538,16 @@ namespace lua::native
|
||||
return return_values;
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any> LUA_NATIVE_HUD_GET_MENU_PED_INT_STAT(Any p0, Any p1)
|
||||
static bool LUA_NATIVE_HUD_GET_MENU_PED_INT_STAT(Any p0, uintptr_t p1)
|
||||
{
|
||||
std::tuple<bool, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)HUD::GET_MENU_PED_INT_STAT(p0, &p1);
|
||||
std::get<1>(return_values) = p1;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)HUD::GET_MENU_PED_INT_STAT(p0, (Any*)p1);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any> LUA_NATIVE_HUD_GET_CHARACTER_MENU_PED_INT_STAT(Any p0, Any p1, Any p2)
|
||||
static bool LUA_NATIVE_HUD_GET_CHARACTER_MENU_PED_INT_STAT(Any p0, uintptr_t p1, Any p2)
|
||||
{
|
||||
std::tuple<bool, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)HUD::GET_CHARACTER_MENU_PED_INT_STAT(p0, &p1, p2);
|
||||
std::get<1>(return_values) = p1;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)HUD::GET_CHARACTER_MENU_PED_INT_STAT(p0, (Any*)p1, p2);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<bool, int> LUA_NATIVE_HUD_GET_MENU_PED_MASKED_INT_STAT(Hash statHash, int outValue, int mask, bool p3)
|
||||
@ -2585,13 +2559,10 @@ namespace lua::native
|
||||
return return_values;
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any> LUA_NATIVE_HUD_GET_CHARACTER_MENU_PED_MASKED_INT_STAT(Hash statHash, Any outValue, int p2, int mask, bool p4)
|
||||
static bool LUA_NATIVE_HUD_GET_CHARACTER_MENU_PED_MASKED_INT_STAT(Hash statHash, uintptr_t outValue, int p2, int mask, bool p4)
|
||||
{
|
||||
std::tuple<bool, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)HUD::GET_CHARACTER_MENU_PED_MASKED_INT_STAT(statHash, &outValue, p2, mask, p4);
|
||||
std::get<1>(return_values) = outValue;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)HUD::GET_CHARACTER_MENU_PED_MASKED_INT_STAT(statHash, (Any*)outValue, p2, mask, p4);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<bool, float> LUA_NATIVE_HUD_GET_MENU_PED_FLOAT_STAT(Hash statHash, float outValue)
|
||||
|
@ -119,14 +119,10 @@ namespace lua::native
|
||||
MISC::INFORM_CODE_OF_CONTENT_ID_OF_CURRENT_UGC_MISSION(p0.is<const char*>() ? p0.as<const char*>() : nullptr);
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any, Any> LUA_NATIVE_MISC_GET_BASE_ELEMENT_LOCATION_FROM_METADATA_BLOCK(Any p0, Any p1, Any p2, bool p3)
|
||||
static bool LUA_NATIVE_MISC_GET_BASE_ELEMENT_LOCATION_FROM_METADATA_BLOCK(uintptr_t p0, uintptr_t p1, Any p2, bool p3)
|
||||
{
|
||||
std::tuple<bool, Any, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)MISC::GET_BASE_ELEMENT_LOCATION_FROM_METADATA_BLOCK(&p0, &p1, p2, p3);
|
||||
std::get<1>(return_values) = p0;
|
||||
std::get<2>(return_values) = p1;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)MISC::GET_BASE_ELEMENT_LOCATION_FROM_METADATA_BLOCK((Any*)p0, (Any*)p1, p2, p3);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static Hash LUA_NATIVE_MISC_GET_PREV_WEATHER_TYPE_HASH_NAME()
|
||||
@ -1302,10 +1298,9 @@ namespace lua::native
|
||||
MISC::SET_GRAVITY_LEVEL(level);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_MISC_START_SAVE_DATA(Any p0, Any p1, bool p2)
|
||||
static void LUA_NATIVE_MISC_START_SAVE_DATA(uintptr_t p0, Any p1, bool p2)
|
||||
{
|
||||
MISC::START_SAVE_DATA(&p0, p1, p2);
|
||||
return p0;
|
||||
MISC::START_SAVE_DATA((Any*)p0, p1, p2);
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_MISC_STOP_SAVE_DATA()
|
||||
@ -1319,70 +1314,59 @@ namespace lua::native
|
||||
return retval;
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_MISC_REGISTER_INT_TO_SAVE(Any p0, sol::stack_object name)
|
||||
static void LUA_NATIVE_MISC_REGISTER_INT_TO_SAVE(uintptr_t p0, sol::stack_object name)
|
||||
{
|
||||
MISC::REGISTER_INT_TO_SAVE(&p0, name.is<const char*>() ? name.as<const char*>() : nullptr);
|
||||
return p0;
|
||||
MISC::REGISTER_INT_TO_SAVE((Any*)p0, name.is<const char*>() ? name.as<const char*>() : nullptr);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_MISC_REGISTER_INT64_TO_SAVE(Any p0, sol::stack_object name)
|
||||
static void LUA_NATIVE_MISC_REGISTER_INT64_TO_SAVE(uintptr_t p0, sol::stack_object name)
|
||||
{
|
||||
MISC::REGISTER_INT64_TO_SAVE(&p0, name.is<const char*>() ? name.as<const char*>() : nullptr);
|
||||
return p0;
|
||||
MISC::REGISTER_INT64_TO_SAVE((Any*)p0, name.is<const char*>() ? name.as<const char*>() : nullptr);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_MISC_REGISTER_ENUM_TO_SAVE(Any p0, sol::stack_object name)
|
||||
static void LUA_NATIVE_MISC_REGISTER_ENUM_TO_SAVE(uintptr_t p0, sol::stack_object name)
|
||||
{
|
||||
MISC::REGISTER_ENUM_TO_SAVE(&p0, name.is<const char*>() ? name.as<const char*>() : nullptr);
|
||||
return p0;
|
||||
MISC::REGISTER_ENUM_TO_SAVE((Any*)p0, name.is<const char*>() ? name.as<const char*>() : nullptr);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_MISC_REGISTER_FLOAT_TO_SAVE(Any p0, sol::stack_object name)
|
||||
static void LUA_NATIVE_MISC_REGISTER_FLOAT_TO_SAVE(uintptr_t p0, sol::stack_object name)
|
||||
{
|
||||
MISC::REGISTER_FLOAT_TO_SAVE(&p0, name.is<const char*>() ? name.as<const char*>() : nullptr);
|
||||
return p0;
|
||||
MISC::REGISTER_FLOAT_TO_SAVE((Any*)p0, name.is<const char*>() ? name.as<const char*>() : nullptr);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_MISC_REGISTER_BOOL_TO_SAVE(Any p0, sol::stack_object name)
|
||||
static void LUA_NATIVE_MISC_REGISTER_BOOL_TO_SAVE(uintptr_t p0, sol::stack_object name)
|
||||
{
|
||||
MISC::REGISTER_BOOL_TO_SAVE(&p0, name.is<const char*>() ? name.as<const char*>() : nullptr);
|
||||
return p0;
|
||||
MISC::REGISTER_BOOL_TO_SAVE((Any*)p0, name.is<const char*>() ? name.as<const char*>() : nullptr);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_MISC_REGISTER_TEXT_LABEL_TO_SAVE(Any p0, sol::stack_object name)
|
||||
static void LUA_NATIVE_MISC_REGISTER_TEXT_LABEL_TO_SAVE(uintptr_t p0, sol::stack_object name)
|
||||
{
|
||||
MISC::REGISTER_TEXT_LABEL_TO_SAVE(&p0, name.is<const char*>() ? name.as<const char*>() : nullptr);
|
||||
return p0;
|
||||
MISC::REGISTER_TEXT_LABEL_TO_SAVE((Any*)p0, name.is<const char*>() ? name.as<const char*>() : nullptr);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_MISC_REGISTER_TEXT_LABEL_15_TO_SAVE(Any p0, sol::stack_object name)
|
||||
static void LUA_NATIVE_MISC_REGISTER_TEXT_LABEL_15_TO_SAVE(uintptr_t p0, sol::stack_object name)
|
||||
{
|
||||
MISC::REGISTER_TEXT_LABEL_15_TO_SAVE(&p0, name.is<const char*>() ? name.as<const char*>() : nullptr);
|
||||
return p0;
|
||||
MISC::REGISTER_TEXT_LABEL_15_TO_SAVE((Any*)p0, name.is<const char*>() ? name.as<const char*>() : nullptr);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_MISC_REGISTER_TEXT_LABEL_23_TO_SAVE(Any p0, sol::stack_object name)
|
||||
static void LUA_NATIVE_MISC_REGISTER_TEXT_LABEL_23_TO_SAVE(uintptr_t p0, sol::stack_object name)
|
||||
{
|
||||
MISC::REGISTER_TEXT_LABEL_23_TO_SAVE(&p0, name.is<const char*>() ? name.as<const char*>() : nullptr);
|
||||
return p0;
|
||||
MISC::REGISTER_TEXT_LABEL_23_TO_SAVE((Any*)p0, name.is<const char*>() ? name.as<const char*>() : nullptr);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_MISC_REGISTER_TEXT_LABEL_31_TO_SAVE(Any p0, sol::stack_object name)
|
||||
static void LUA_NATIVE_MISC_REGISTER_TEXT_LABEL_31_TO_SAVE(uintptr_t p0, sol::stack_object name)
|
||||
{
|
||||
MISC::REGISTER_TEXT_LABEL_31_TO_SAVE(&p0, name.is<const char*>() ? name.as<const char*>() : nullptr);
|
||||
return p0;
|
||||
MISC::REGISTER_TEXT_LABEL_31_TO_SAVE((Any*)p0, name.is<const char*>() ? name.as<const char*>() : nullptr);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_MISC_REGISTER_TEXT_LABEL_63_TO_SAVE(Any p0, sol::stack_object name)
|
||||
static void LUA_NATIVE_MISC_REGISTER_TEXT_LABEL_63_TO_SAVE(uintptr_t p0, sol::stack_object name)
|
||||
{
|
||||
MISC::REGISTER_TEXT_LABEL_63_TO_SAVE(&p0, name.is<const char*>() ? name.as<const char*>() : nullptr);
|
||||
return p0;
|
||||
MISC::REGISTER_TEXT_LABEL_63_TO_SAVE((Any*)p0, name.is<const char*>() ? name.as<const char*>() : nullptr);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_MISC_START_SAVE_STRUCT_WITH_SIZE(Any p0, int size, sol::stack_object structName)
|
||||
static void LUA_NATIVE_MISC_START_SAVE_STRUCT_WITH_SIZE(uintptr_t p0, int size, sol::stack_object structName)
|
||||
{
|
||||
MISC::START_SAVE_STRUCT_WITH_SIZE(&p0, size, structName.is<const char*>() ? structName.as<const char*>() : nullptr);
|
||||
return p0;
|
||||
MISC::START_SAVE_STRUCT_WITH_SIZE((Any*)p0, size, structName.is<const char*>() ? structName.as<const char*>() : nullptr);
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_MISC_STOP_SAVE_STRUCT()
|
||||
@ -1390,10 +1374,9 @@ namespace lua::native
|
||||
MISC::STOP_SAVE_STRUCT();
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_MISC_START_SAVE_ARRAY_WITH_SIZE(Any p0, int size, sol::stack_object arrayName)
|
||||
static void LUA_NATIVE_MISC_START_SAVE_ARRAY_WITH_SIZE(uintptr_t p0, int size, sol::stack_object arrayName)
|
||||
{
|
||||
MISC::START_SAVE_ARRAY_WITH_SIZE(&p0, size, arrayName.is<const char*>() ? arrayName.as<const char*>() : nullptr);
|
||||
return p0;
|
||||
MISC::START_SAVE_ARRAY_WITH_SIZE((Any*)p0, size, arrayName.is<const char*>() ? arrayName.as<const char*>() : nullptr);
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_MISC_STOP_SAVE_ARRAY()
|
||||
@ -1401,14 +1384,9 @@ namespace lua::native
|
||||
MISC::STOP_SAVE_ARRAY();
|
||||
}
|
||||
|
||||
static std::tuple<Any, Any> LUA_NATIVE_MISC_COPY_SCRIPT_STRUCT(Any dst, Any src, int size)
|
||||
static void LUA_NATIVE_MISC_COPY_SCRIPT_STRUCT(uintptr_t dst, uintptr_t src, int size)
|
||||
{
|
||||
std::tuple<Any, Any> return_values;
|
||||
MISC::COPY_SCRIPT_STRUCT(&dst, &src, size);
|
||||
std::get<0>(return_values) = dst;
|
||||
std::get<1>(return_values) = src;
|
||||
|
||||
return return_values;
|
||||
MISC::COPY_SCRIPT_STRUCT((Any*)dst, (Any*)src, size);
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_MISC_ENABLE_DISPATCH_SERVICE(int dispatchService, bool toggle)
|
||||
@ -1641,10 +1619,9 @@ namespace lua::native
|
||||
MISC::SET_RIOT_MODE_ENABLED(toggle);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_MISC_DISPLAY_ONSCREEN_KEYBOARD_WITH_LONGER_INITIAL_STRING(int p0, sol::stack_object windowTitle, Any p2, sol::stack_object defaultText, sol::stack_object defaultConcat1, sol::stack_object defaultConcat2, sol::stack_object defaultConcat3, sol::stack_object defaultConcat4, sol::stack_object defaultConcat5, sol::stack_object defaultConcat6, sol::stack_object defaultConcat7, int maxInputLength)
|
||||
static void LUA_NATIVE_MISC_DISPLAY_ONSCREEN_KEYBOARD_WITH_LONGER_INITIAL_STRING(int p0, sol::stack_object windowTitle, uintptr_t p2, sol::stack_object defaultText, sol::stack_object defaultConcat1, sol::stack_object defaultConcat2, sol::stack_object defaultConcat3, sol::stack_object defaultConcat4, sol::stack_object defaultConcat5, sol::stack_object defaultConcat6, sol::stack_object defaultConcat7, int maxInputLength)
|
||||
{
|
||||
MISC::DISPLAY_ONSCREEN_KEYBOARD_WITH_LONGER_INITIAL_STRING(p0, windowTitle.is<const char*>() ? windowTitle.as<const char*>() : nullptr, &p2, defaultText.is<const char*>() ? defaultText.as<const char*>() : nullptr, defaultConcat1.is<const char*>() ? defaultConcat1.as<const char*>() : nullptr, defaultConcat2.is<const char*>() ? defaultConcat2.as<const char*>() : nullptr, defaultConcat3.is<const char*>() ? defaultConcat3.as<const char*>() : nullptr, defaultConcat4.is<const char*>() ? defaultConcat4.as<const char*>() : nullptr, defaultConcat5.is<const char*>() ? defaultConcat5.as<const char*>() : nullptr, defaultConcat6.is<const char*>() ? defaultConcat6.as<const char*>() : nullptr, defaultConcat7.is<const char*>() ? defaultConcat7.as<const char*>() : nullptr, maxInputLength);
|
||||
return p2;
|
||||
MISC::DISPLAY_ONSCREEN_KEYBOARD_WITH_LONGER_INITIAL_STRING(p0, windowTitle.is<const char*>() ? windowTitle.as<const char*>() : nullptr, (Any*)p2, defaultText.is<const char*>() ? defaultText.as<const char*>() : nullptr, defaultConcat1.is<const char*>() ? defaultConcat1.as<const char*>() : nullptr, defaultConcat2.is<const char*>() ? defaultConcat2.as<const char*>() : nullptr, defaultConcat3.is<const char*>() ? defaultConcat3.as<const char*>() : nullptr, defaultConcat4.is<const char*>() ? defaultConcat4.as<const char*>() : nullptr, defaultConcat5.is<const char*>() ? defaultConcat5.as<const char*>() : nullptr, defaultConcat6.is<const char*>() ? defaultConcat6.as<const char*>() : nullptr, defaultConcat7.is<const char*>() ? defaultConcat7.as<const char*>() : nullptr, maxInputLength);
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_MISC_DISPLAY_ONSCREEN_KEYBOARD(int p0, sol::stack_object windowTitle, sol::stack_object p2, sol::stack_object defaultText, sol::stack_object defaultConcat1, sol::stack_object defaultConcat2, sol::stack_object defaultConcat3, int maxInputLength)
|
||||
|
@ -29,16 +29,14 @@ namespace lua::native
|
||||
MONEY::NETWORK_CLEAR_CHARACTER_WALLET(characterSlot);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_MONEY_NETWORK_GIVE_PLAYER_JOBSHARE_CASH(int amount, Any gamerHandle)
|
||||
static void LUA_NATIVE_MONEY_NETWORK_GIVE_PLAYER_JOBSHARE_CASH(int amount, uintptr_t gamerHandle)
|
||||
{
|
||||
MONEY::NETWORK_GIVE_PLAYER_JOBSHARE_CASH(amount, &gamerHandle);
|
||||
return gamerHandle;
|
||||
MONEY::NETWORK_GIVE_PLAYER_JOBSHARE_CASH(amount, (Any*)gamerHandle);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_MONEY_NETWORK_RECEIVE_PLAYER_JOBSHARE_CASH(int value, Any gamerHandle)
|
||||
static void LUA_NATIVE_MONEY_NETWORK_RECEIVE_PLAYER_JOBSHARE_CASH(int value, uintptr_t gamerHandle)
|
||||
{
|
||||
MONEY::NETWORK_RECEIVE_PLAYER_JOBSHARE_CASH(value, &gamerHandle);
|
||||
return gamerHandle;
|
||||
MONEY::NETWORK_RECEIVE_PLAYER_JOBSHARE_CASH(value, (Any*)gamerHandle);
|
||||
}
|
||||
|
||||
static bool LUA_NATIVE_MONEY_NETWORK_CAN_SHARE_JOB_CASH()
|
||||
@ -174,20 +172,14 @@ namespace lua::native
|
||||
MONEY::NETWORK_EARN_FROM_BEND_JOB(amount, heistHash.is<const char*>() ? heistHash.as<const char*>() : nullptr);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_MONEY_NETWORK_EARN_FROM_CHALLENGE_WIN(Any p0, Any p1, bool p2)
|
||||
static void LUA_NATIVE_MONEY_NETWORK_EARN_FROM_CHALLENGE_WIN(Any p0, uintptr_t p1, bool p2)
|
||||
{
|
||||
MONEY::NETWORK_EARN_FROM_CHALLENGE_WIN(p0, &p1, p2);
|
||||
return p1;
|
||||
MONEY::NETWORK_EARN_FROM_CHALLENGE_WIN(p0, (Any*)p1, p2);
|
||||
}
|
||||
|
||||
static std::tuple<Any, Any> LUA_NATIVE_MONEY_NETWORK_EARN_FROM_BOUNTY(int amount, Any gamerHandle, Any p2, Any p3)
|
||||
static void LUA_NATIVE_MONEY_NETWORK_EARN_FROM_BOUNTY(int amount, uintptr_t gamerHandle, uintptr_t p2, Any p3)
|
||||
{
|
||||
std::tuple<Any, Any> return_values;
|
||||
MONEY::NETWORK_EARN_FROM_BOUNTY(amount, &gamerHandle, &p2, p3);
|
||||
std::get<0>(return_values) = gamerHandle;
|
||||
std::get<1>(return_values) = p2;
|
||||
|
||||
return return_values;
|
||||
MONEY::NETWORK_EARN_FROM_BOUNTY(amount, (Any*)gamerHandle, (Any*)p2, p3);
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_MONEY_NETWORK_EARN_FROM_IMPORT_EXPORT(int amount, Hash modelHash)
|
||||
@ -230,20 +222,14 @@ namespace lua::native
|
||||
MONEY::NETWORK_EARN_FROM_DAILY_OBJECTIVES(amount, type.is<const char*>() ? type.as<const char*>() : nullptr, characterSlot);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_MONEY_NETWORK_EARN_FROM_AMBIENT_JOB(int p0, sol::stack_object p1, Any p2)
|
||||
static void LUA_NATIVE_MONEY_NETWORK_EARN_FROM_AMBIENT_JOB(int p0, sol::stack_object p1, uintptr_t p2)
|
||||
{
|
||||
MONEY::NETWORK_EARN_FROM_AMBIENT_JOB(p0, p1.is<const char*>() ? p1.as<const char*>() : nullptr, &p2);
|
||||
return p2;
|
||||
MONEY::NETWORK_EARN_FROM_AMBIENT_JOB(p0, p1.is<const char*>() ? p1.as<const char*>() : nullptr, (Any*)p2);
|
||||
}
|
||||
|
||||
static std::tuple<Any, Any> LUA_NATIVE_MONEY_NETWORK_EARN_FROM_JOB_BONUS(Any p0, Any p1, Any p2)
|
||||
static void LUA_NATIVE_MONEY_NETWORK_EARN_FROM_JOB_BONUS(Any p0, uintptr_t p1, uintptr_t p2)
|
||||
{
|
||||
std::tuple<Any, Any> return_values;
|
||||
MONEY::NETWORK_EARN_FROM_JOB_BONUS(p0, &p1, &p2);
|
||||
std::get<0>(return_values) = p1;
|
||||
std::get<1>(return_values) = p2;
|
||||
|
||||
return return_values;
|
||||
MONEY::NETWORK_EARN_FROM_JOB_BONUS(p0, (Any*)p1, (Any*)p2);
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_MONEY_NETWORK_EARN_FROM_CRIMINAL_MASTERMIND(Any p0, Any p1, Any p2)
|
||||
@ -362,13 +348,10 @@ namespace lua::native
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any> LUA_NATIVE_MONEY_NETWORK_CAN_SPEND_MONEY2(Any p0, bool p1, bool p2, bool p3, Any p4, Any p5, Any p6)
|
||||
static bool LUA_NATIVE_MONEY_NETWORK_CAN_SPEND_MONEY2(Any p0, bool p1, bool p2, bool p3, uintptr_t p4, Any p5, Any p6)
|
||||
{
|
||||
std::tuple<bool, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)MONEY::NETWORK_CAN_SPEND_MONEY2(p0, p1, p2, p3, &p4, p5, p6);
|
||||
std::get<1>(return_values) = p4;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)MONEY::NETWORK_CAN_SPEND_MONEY2(p0, p1, p2, p3, (Any*)p4, p5, p6);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_MONEY_NETWORK_BUY_ITEM(int amount, Hash item, Any p2, Any p3, bool p4, sol::stack_object item_name, Any p6, Any p7, Any p8, bool p9)
|
||||
@ -481,10 +464,9 @@ namespace lua::native
|
||||
MONEY::NETWORK_SPENT_HIRE_MERCENARY(p0, p1, p2, p3);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_MONEY_NETWORK_SPENT_BUY_WANTEDLEVEL(Any p0, Any p1, bool p2, bool p3, Any p4)
|
||||
static void LUA_NATIVE_MONEY_NETWORK_SPENT_BUY_WANTEDLEVEL(Any p0, uintptr_t p1, bool p2, bool p3, Any p4)
|
||||
{
|
||||
MONEY::NETWORK_SPENT_BUY_WANTEDLEVEL(p0, &p1, p2, p3, p4);
|
||||
return p1;
|
||||
MONEY::NETWORK_SPENT_BUY_WANTEDLEVEL(p0, (Any*)p1, p2, p3, p4);
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_MONEY_NETWORK_SPENT_BUY_OFFTHERADAR(Any p0, bool p1, bool p2, Any p3)
|
||||
@ -537,16 +519,14 @@ namespace lua::native
|
||||
MONEY::NETWORK_SPENT_ARREST_BAIL(p0, p1, p2);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_MONEY_NETWORK_SPENT_PAY_VEHICLE_INSURANCE_PREMIUM(int amount, Hash vehicleModel, Any gamerHandle, bool notBankrupt, bool hasTheMoney)
|
||||
static void LUA_NATIVE_MONEY_NETWORK_SPENT_PAY_VEHICLE_INSURANCE_PREMIUM(int amount, Hash vehicleModel, uintptr_t gamerHandle, bool notBankrupt, bool hasTheMoney)
|
||||
{
|
||||
MONEY::NETWORK_SPENT_PAY_VEHICLE_INSURANCE_PREMIUM(amount, vehicleModel, &gamerHandle, notBankrupt, hasTheMoney);
|
||||
return gamerHandle;
|
||||
MONEY::NETWORK_SPENT_PAY_VEHICLE_INSURANCE_PREMIUM(amount, vehicleModel, (Any*)gamerHandle, notBankrupt, hasTheMoney);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_MONEY_NETWORK_SPENT_CALL_PLAYER(Any p0, Any p1, bool p2, bool p3)
|
||||
static void LUA_NATIVE_MONEY_NETWORK_SPENT_CALL_PLAYER(Any p0, uintptr_t p1, bool p2, bool p3)
|
||||
{
|
||||
MONEY::NETWORK_SPENT_CALL_PLAYER(p0, &p1, p2, p3);
|
||||
return p1;
|
||||
MONEY::NETWORK_SPENT_CALL_PLAYER(p0, (Any*)p1, p2, p3);
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_MONEY_NETWORK_SPENT_BOUNTY(Any p0, bool p1, bool p2)
|
||||
@ -702,10 +682,9 @@ namespace lua::native
|
||||
MONEY::NETWORK_SPENT_UPGRADE_WAREHOUSE_PROPERTY(p0, p1, p2, p3);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_MONEY_NETWORK_SPENT_PURCHASE_IMPEXP_WAREHOUSE_PROPERTY(int amount, Any data, bool p2, bool p3)
|
||||
static void LUA_NATIVE_MONEY_NETWORK_SPENT_PURCHASE_IMPEXP_WAREHOUSE_PROPERTY(int amount, uintptr_t data, bool p2, bool p3)
|
||||
{
|
||||
MONEY::NETWORK_SPENT_PURCHASE_IMPEXP_WAREHOUSE_PROPERTY(amount, &data, p2, p3);
|
||||
return data;
|
||||
MONEY::NETWORK_SPENT_PURCHASE_IMPEXP_WAREHOUSE_PROPERTY(amount, (Any*)data, p2, p3);
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_MONEY_NETWORK_SPENT_UPGRADE_IMPEXP_WAREHOUSE_PROPERTY(Any p0, Any p1, Any p2, Any p3)
|
||||
@ -1128,16 +1107,14 @@ namespace lua::native
|
||||
MONEY::NETWORK_SPEND_CASINO_MEMBERSHIP(amount, p1, p2, p3);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_MONEY_NETWORK_SPEND_BUY_CASINO(int amount, bool p1, bool p2, Any data)
|
||||
static void LUA_NATIVE_MONEY_NETWORK_SPEND_BUY_CASINO(int amount, bool p1, bool p2, uintptr_t data)
|
||||
{
|
||||
MONEY::NETWORK_SPEND_BUY_CASINO(amount, p1, p2, &data);
|
||||
return data;
|
||||
MONEY::NETWORK_SPEND_BUY_CASINO(amount, p1, p2, (Any*)data);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_MONEY_NETWORK_SPEND_UPGRADE_CASINO(int amount, bool p1, bool p2, Any data)
|
||||
static void LUA_NATIVE_MONEY_NETWORK_SPEND_UPGRADE_CASINO(int amount, bool p1, bool p2, uintptr_t data)
|
||||
{
|
||||
MONEY::NETWORK_SPEND_UPGRADE_CASINO(amount, p1, p2, &data);
|
||||
return data;
|
||||
MONEY::NETWORK_SPEND_UPGRADE_CASINO(amount, p1, p2, (Any*)data);
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_MONEY_NETWORK_SPEND_CASINO_GENERIC(int amount, Any p1, Any p2, Any p3, Any p4)
|
||||
@ -1510,10 +1487,9 @@ namespace lua::native
|
||||
MONEY::NETWORK_EARN_UPGRADE_AGENCY(p0, p1);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_MONEY_NETWORK_SPEND_APARTMENT_UTILITIES(int amount, bool p1, bool p2, Any data)
|
||||
static void LUA_NATIVE_MONEY_NETWORK_SPEND_APARTMENT_UTILITIES(int amount, bool p1, bool p2, uintptr_t data)
|
||||
{
|
||||
MONEY::NETWORK_SPEND_APARTMENT_UTILITIES(amount, p1, p2, &data);
|
||||
return data;
|
||||
MONEY::NETWORK_SPEND_APARTMENT_UTILITIES(amount, p1, p2, (Any*)data);
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_MONEY_NETWORK_SPEND_BUSINESS_PROPERTY_FEES(Any p0, Any p1, Any p2, Any p3)
|
||||
@ -1721,16 +1697,14 @@ namespace lua::native
|
||||
MONEY::_NETWORK_SPENT_MISSILE_JAMMER(amount, fromBank, fromBankAndWallet, p3);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_MONEY_NETWORK_SPENT_GENERIC_(int price, bool p1, bool p2, Hash stat, Hash spent, sol::stack_object p5, sol::stack_object p6, Any data)
|
||||
static void LUA_NATIVE_MONEY_NETWORK_SPENT_GENERIC_(int price, bool p1, bool p2, Hash stat, Hash spent, sol::stack_object p5, sol::stack_object p6, uintptr_t data)
|
||||
{
|
||||
MONEY::_NETWORK_SPENT_GENERIC(price, p1, p2, stat, spent, p5.is<const char*>() ? p5.as<const char*>() : nullptr, p6.is<const char*>() ? p6.as<const char*>() : nullptr, &data);
|
||||
return data;
|
||||
MONEY::_NETWORK_SPENT_GENERIC(price, p1, p2, stat, spent, p5.is<const char*>() ? p5.as<const char*>() : nullptr, p6.is<const char*>() ? p6.as<const char*>() : nullptr, (Any*)data);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_MONEY_NETWORK_EARN_GENERIC_(int amount, Hash earn, sol::stack_object p2, sol::stack_object p3, Any data)
|
||||
static void LUA_NATIVE_MONEY_NETWORK_EARN_GENERIC_(int amount, Hash earn, sol::stack_object p2, sol::stack_object p3, uintptr_t data)
|
||||
{
|
||||
MONEY::_NETWORK_EARN_GENERIC(amount, earn, p2.is<const char*>() ? p2.as<const char*>() : nullptr, p3.is<const char*>() ? p3.as<const char*>() : nullptr, &data);
|
||||
return data;
|
||||
MONEY::_NETWORK_EARN_GENERIC(amount, earn, p2.is<const char*>() ? p2.as<const char*>() : nullptr, p3.is<const char*>() ? p3.as<const char*>() : nullptr, (Any*)data);
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_MONEY_NETWORK_CLEAR_TRANSACTION_TELEMETRY_NONCE_()
|
||||
|
@ -172,13 +172,10 @@ namespace lua::native
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any> LUA_NATIVE_NETSHOPPING_NET_GAMESERVER_BASKET_ADD_ITEM(Any itemData, int quantity)
|
||||
static bool LUA_NATIVE_NETSHOPPING_NET_GAMESERVER_BASKET_ADD_ITEM(uintptr_t itemData, int quantity)
|
||||
{
|
||||
std::tuple<bool, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)NETSHOPPING::NET_GAMESERVER_BASKET_ADD_ITEM(&itemData, quantity);
|
||||
std::get<1>(return_values) = itemData;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)NETSHOPPING::NET_GAMESERVER_BASKET_ADD_ITEM((Any*)itemData, quantity);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static bool LUA_NATIVE_NETSHOPPING_NET_GAMESERVER_BASKET_IS_FULL()
|
||||
@ -187,13 +184,10 @@ namespace lua::native
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any> LUA_NATIVE_NETSHOPPING_NET_GAMESERVER_BASKET_APPLY_SERVER_DATA(Any p0, Any p1)
|
||||
static bool LUA_NATIVE_NETSHOPPING_NET_GAMESERVER_BASKET_APPLY_SERVER_DATA(Any p0, uintptr_t p1)
|
||||
{
|
||||
std::tuple<bool, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)NETSHOPPING::NET_GAMESERVER_BASKET_APPLY_SERVER_DATA(p0, &p1);
|
||||
std::get<1>(return_values) = p1;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)NETSHOPPING::NET_GAMESERVER_BASKET_APPLY_SERVER_DATA(p0, (Any*)p1);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static bool LUA_NATIVE_NETSHOPPING_NET_GAMESERVER_CHECKOUT_START(int transactionId)
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -135,15 +135,13 @@ namespace lua::native
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<bool, Vector3, Vector3, Any, Any, float> LUA_NATIVE_PATHFIND_GET_CLOSEST_ROAD(float x, float y, float z, float p3, int p4, Vector3 p5, Vector3 p6, Any p7, Any p8, float p9, bool p10)
|
||||
static std::tuple<bool, Vector3, Vector3, float> LUA_NATIVE_PATHFIND_GET_CLOSEST_ROAD(float x, float y, float z, float p3, int p4, Vector3 p5, Vector3 p6, uintptr_t p7, uintptr_t p8, float p9, bool p10)
|
||||
{
|
||||
std::tuple<bool, Vector3, Vector3, Any, Any, float> return_values;
|
||||
std::get<0>(return_values) = (bool)PATHFIND::GET_CLOSEST_ROAD(x, y, z, p3, p4, &p5, &p6, &p7, &p8, &p9, p10);
|
||||
std::tuple<bool, Vector3, Vector3, float> return_values;
|
||||
std::get<0>(return_values) = (bool)PATHFIND::GET_CLOSEST_ROAD(x, y, z, p3, p4, &p5, &p6, (Any*)p7, (Any*)p8, &p9, p10);
|
||||
std::get<1>(return_values) = p5;
|
||||
std::get<2>(return_values) = p6;
|
||||
std::get<3>(return_values) = p7;
|
||||
std::get<4>(return_values) = p8;
|
||||
std::get<5>(return_values) = p9;
|
||||
std::get<3>(return_values) = p9;
|
||||
|
||||
return return_values;
|
||||
}
|
||||
|
@ -1030,13 +1030,10 @@ namespace lua::native
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any> LUA_NATIVE_PED_GET_POS_FROM_FIRED_EVENT(Ped ped, int eventType, Any outData)
|
||||
static bool LUA_NATIVE_PED_GET_POS_FROM_FIRED_EVENT(Ped ped, int eventType, uintptr_t outData)
|
||||
{
|
||||
std::tuple<bool, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)PED::GET_POS_FROM_FIRED_EVENT(ped, eventType, &outData);
|
||||
std::get<1>(return_values) = outData;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)PED::GET_POS_FROM_FIRED_EVENT(ped, eventType, (Any*)outData);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_PED_SET_PED_FIRING_PATTERN(Ped ped, Hash patternHash)
|
||||
@ -1060,14 +1057,10 @@ namespace lua::native
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<Any, int> LUA_NATIVE_PED_GET_GROUP_SIZE(int groupID, Any p1, int sizeInMembers)
|
||||
static int LUA_NATIVE_PED_GET_GROUP_SIZE(int groupID, uintptr_t p1, int sizeInMembers)
|
||||
{
|
||||
std::tuple<Any, int> return_values;
|
||||
PED::GET_GROUP_SIZE(groupID, &p1, &sizeInMembers);
|
||||
std::get<0>(return_values) = p1;
|
||||
std::get<1>(return_values) = sizeInMembers;
|
||||
|
||||
return return_values;
|
||||
PED::GET_GROUP_SIZE(groupID, (Any*)p1, &sizeInMembers);
|
||||
return sizeInMembers;
|
||||
}
|
||||
|
||||
static bool LUA_NATIVE_PED_DOES_GROUP_EXIST(int groupId)
|
||||
@ -1504,14 +1497,10 @@ namespace lua::native
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any, Any> LUA_NATIVE_PED_GET_MP_OUTFIT_DATA_FROM_METADATA(Any p0, Any p1)
|
||||
static bool LUA_NATIVE_PED_GET_MP_OUTFIT_DATA_FROM_METADATA(uintptr_t p0, uintptr_t p1)
|
||||
{
|
||||
std::tuple<bool, Any, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)PED::GET_MP_OUTFIT_DATA_FROM_METADATA(&p0, &p1);
|
||||
std::get<1>(return_values) = p0;
|
||||
std::get<2>(return_values) = p1;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)PED::GET_MP_OUTFIT_DATA_FROM_METADATA((Any*)p0, (Any*)p1);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static int LUA_NATIVE_PED_GET_FM_MALE_SHOP_PED_APPAREL_ITEM_INDEX(int p0)
|
||||
@ -1562,13 +1551,10 @@ namespace lua::native
|
||||
PED::SET_PED_HEAD_BLEND_DATA(ped, shapeFirstID, shapeSecondID, shapeThirdID, skinFirstID, skinSecondID, skinThirdID, shapeMix, skinMix, thirdMix, isParent);
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any> LUA_NATIVE_PED_GET_PED_HEAD_BLEND_DATA(Ped ped, Any headBlendData)
|
||||
static bool LUA_NATIVE_PED_GET_PED_HEAD_BLEND_DATA(Ped ped, uintptr_t headBlendData)
|
||||
{
|
||||
std::tuple<bool, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)PED::GET_PED_HEAD_BLEND_DATA(ped, &headBlendData);
|
||||
std::get<1>(return_values) = headBlendData;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)PED::GET_PED_HEAD_BLEND_DATA(ped, (Any*)headBlendData);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_PED_UPDATE_PED_HEAD_BLEND_DATA(Ped ped, float shapeMix, float skinMix, float thirdMix)
|
||||
@ -3067,22 +3053,16 @@ namespace lua::native
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<int, Any> LUA_NATIVE_PED_GET_PED_NEARBY_VEHICLES(Ped ped, Any sizeAndVehs)
|
||||
static int LUA_NATIVE_PED_GET_PED_NEARBY_VEHICLES(Ped ped, uintptr_t sizeAndVehs)
|
||||
{
|
||||
std::tuple<int, Any> return_values;
|
||||
std::get<0>(return_values) = PED::GET_PED_NEARBY_VEHICLES(ped, &sizeAndVehs);
|
||||
std::get<1>(return_values) = sizeAndVehs;
|
||||
|
||||
return return_values;
|
||||
auto retval = PED::GET_PED_NEARBY_VEHICLES(ped, (Any*)sizeAndVehs);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<int, Any> LUA_NATIVE_PED_GET_PED_NEARBY_PEDS(Ped ped, Any sizeAndPeds, int ignore)
|
||||
static int LUA_NATIVE_PED_GET_PED_NEARBY_PEDS(Ped ped, uintptr_t sizeAndPeds, int ignore)
|
||||
{
|
||||
std::tuple<int, Any> return_values;
|
||||
std::get<0>(return_values) = PED::GET_PED_NEARBY_PEDS(ped, &sizeAndPeds, ignore);
|
||||
std::get<1>(return_values) = sizeAndPeds;
|
||||
|
||||
return return_values;
|
||||
auto retval = PED::GET_PED_NEARBY_PEDS(ped, (Any*)sizeAndPeds, ignore);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static bool LUA_NATIVE_PED_HAVE_ALL_STREAMING_REQUESTS_COMPLETED(Ped ped)
|
||||
|
@ -3,13 +3,10 @@
|
||||
|
||||
namespace lua::native
|
||||
{
|
||||
static std::tuple<int, Any> LUA_NATIVE_PHYSICS_ADD_ROPE(float x, float y, float z, float rotX, float rotY, float rotZ, float length, int ropeType, float maxLength, float minLength, float windingSpeed, bool p11, bool p12, bool rigid, float p14, bool breakWhenShot, Any unkPtr)
|
||||
static int LUA_NATIVE_PHYSICS_ADD_ROPE(float x, float y, float z, float rotX, float rotY, float rotZ, float length, int ropeType, float maxLength, float minLength, float windingSpeed, bool p11, bool p12, bool rigid, float p14, bool breakWhenShot, uintptr_t unkPtr)
|
||||
{
|
||||
std::tuple<int, Any> return_values;
|
||||
std::get<0>(return_values) = PHYSICS::ADD_ROPE(x, y, z, rotX, rotY, rotZ, length, ropeType, maxLength, minLength, windingSpeed, p11, p12, rigid, p14, breakWhenShot, &unkPtr);
|
||||
std::get<1>(return_values) = unkPtr;
|
||||
|
||||
return return_values;
|
||||
auto retval = PHYSICS::ADD_ROPE(x, y, z, rotX, rotY, rotZ, length, ropeType, maxLength, minLength, windingSpeed, p11, p12, rigid, p14, breakWhenShot, (Any*)unkPtr);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static int LUA_NATIVE_PHYSICS_DELETE_ROPE(int ropeId)
|
||||
@ -65,14 +62,9 @@ namespace lua::native
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<Any, Any> LUA_NATIVE_PHYSICS_ATTACH_ENTITIES_TO_ROPE(int ropeId, Entity ent1, Entity ent2, float ent1_x, float ent1_y, float ent1_z, float ent2_x, float ent2_y, float ent2_z, float length, bool p10, bool p11, Any p12, Any p13)
|
||||
static void LUA_NATIVE_PHYSICS_ATTACH_ENTITIES_TO_ROPE(int ropeId, Entity ent1, Entity ent2, float ent1_x, float ent1_y, float ent1_z, float ent2_x, float ent2_y, float ent2_z, float length, bool p10, bool p11, uintptr_t p12, uintptr_t p13)
|
||||
{
|
||||
std::tuple<Any, Any> return_values;
|
||||
PHYSICS::ATTACH_ENTITIES_TO_ROPE(ropeId, ent1, ent2, ent1_x, ent1_y, ent1_z, ent2_x, ent2_y, ent2_z, length, p10, p11, &p12, &p13);
|
||||
std::get<0>(return_values) = p12;
|
||||
std::get<1>(return_values) = p13;
|
||||
|
||||
return return_values;
|
||||
PHYSICS::ATTACH_ENTITIES_TO_ROPE(ropeId, ent1, ent2, ent1_x, ent1_y, ent1_z, ent2_x, ent2_y, ent2_z, length, p10, p11, (Any*)p12, (Any*)p13);
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_PHYSICS_ATTACH_ROPE_TO_ENTITY(int ropeId, Entity entity, float x, float y, float z, bool p5)
|
||||
|
@ -27,13 +27,10 @@ namespace lua::native
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any> LUA_NATIVE_SAVEMIGRATION_SAVEMIGRATION_MP_GET_ACCOUNT(int p0, Any p1)
|
||||
static bool LUA_NATIVE_SAVEMIGRATION_SAVEMIGRATION_MP_GET_ACCOUNT(int p0, uintptr_t p1)
|
||||
{
|
||||
std::tuple<bool, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)SAVEMIGRATION::SAVEMIGRATION_MP_GET_ACCOUNT(p0, &p1);
|
||||
std::get<1>(return_values) = p1;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)SAVEMIGRATION::SAVEMIGRATION_MP_GET_ACCOUNT(p0, (Any*)p1);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static bool LUA_NATIVE_SAVEMIGRATION_SAVEMIGRATION_MP_REQUEST_STATUS()
|
||||
|
@ -122,19 +122,15 @@ namespace lua::native
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any> LUA_NATIVE_SCRIPT_GET_EVENT_DATA(int eventGroup, int eventIndex, Any eventData, int eventDataSize)
|
||||
static bool LUA_NATIVE_SCRIPT_GET_EVENT_DATA(int eventGroup, int eventIndex, uintptr_t eventData, int eventDataSize)
|
||||
{
|
||||
std::tuple<bool, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)SCRIPT::GET_EVENT_DATA(eventGroup, eventIndex, &eventData, eventDataSize);
|
||||
std::get<1>(return_values) = eventData;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)SCRIPT::GET_EVENT_DATA(eventGroup, eventIndex, (Any*)eventData, eventDataSize);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_SCRIPT_TRIGGER_SCRIPT_EVENT(int eventGroup, Any eventData, int eventDataSize, int playerBits)
|
||||
static void LUA_NATIVE_SCRIPT_TRIGGER_SCRIPT_EVENT(int eventGroup, uintptr_t eventData, int eventDataSize, int playerBits)
|
||||
{
|
||||
SCRIPT::TRIGGER_SCRIPT_EVENT(eventGroup, &eventData, eventDataSize, playerBits);
|
||||
return eventData;
|
||||
SCRIPT::TRIGGER_SCRIPT_EVENT(eventGroup, (Any*)eventData, eventDataSize, playerBits);
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_SCRIPT_SHUTDOWN_LOADING_SCREEN()
|
||||
@ -207,10 +203,9 @@ namespace lua::native
|
||||
return retval;
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_SCRIPT_SEND_TU_SCRIPT_EVENT_NEW_(int eventGroup, Any eventData, int eventDataSize, int playerBits, Hash eventType)
|
||||
static void LUA_NATIVE_SCRIPT_SEND_TU_SCRIPT_EVENT_NEW_(int eventGroup, uintptr_t eventData, int eventDataSize, int playerBits, Hash eventType)
|
||||
{
|
||||
SCRIPT::_SEND_TU_SCRIPT_EVENT_NEW(eventGroup, &eventData, eventDataSize, playerBits, eventType);
|
||||
return eventData;
|
||||
SCRIPT::_SEND_TU_SCRIPT_EVENT_NEW(eventGroup, (Any*)eventData, eventDataSize, playerBits, eventType);
|
||||
}
|
||||
|
||||
void init_native_binding_SCRIPT(sol::state& L)
|
||||
|
@ -3,16 +3,14 @@
|
||||
|
||||
namespace lua::native
|
||||
{
|
||||
static Any LUA_NATIVE_SECURITY_REGISTER_SCRIPT_VARIABLE(Any variable)
|
||||
static void LUA_NATIVE_SECURITY_REGISTER_SCRIPT_VARIABLE(uintptr_t variable)
|
||||
{
|
||||
SECURITY::REGISTER_SCRIPT_VARIABLE(&variable);
|
||||
return variable;
|
||||
SECURITY::REGISTER_SCRIPT_VARIABLE((Any*)variable);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_SECURITY_UNREGISTER_SCRIPT_VARIABLE(Any variable)
|
||||
static void LUA_NATIVE_SECURITY_UNREGISTER_SCRIPT_VARIABLE(uintptr_t variable)
|
||||
{
|
||||
SECURITY::UNREGISTER_SCRIPT_VARIABLE(&variable);
|
||||
return variable;
|
||||
SECURITY::UNREGISTER_SCRIPT_VARIABLE((Any*)variable);
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_SECURITY_FORCE_CHECK_SCRIPT_VARIABLES()
|
||||
|
@ -63,34 +63,26 @@ namespace lua::native
|
||||
return retval;
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_SOCIALCLUB_SC_INBOX_MESSAGE_PUSH_GAMER_T0_RECIP_LIST(Any gamerHandle)
|
||||
static void LUA_NATIVE_SOCIALCLUB_SC_INBOX_MESSAGE_PUSH_GAMER_T0_RECIP_LIST(uintptr_t gamerHandle)
|
||||
{
|
||||
SOCIALCLUB::SC_INBOX_MESSAGE_PUSH_GAMER_T0_RECIP_LIST(&gamerHandle);
|
||||
return gamerHandle;
|
||||
SOCIALCLUB::SC_INBOX_MESSAGE_PUSH_GAMER_T0_RECIP_LIST((Any*)gamerHandle);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_SOCIALCLUB_SC_INBOX_SEND_UGCSTATUPDATE_TO_RECIP_LIST(Any data)
|
||||
static void LUA_NATIVE_SOCIALCLUB_SC_INBOX_SEND_UGCSTATUPDATE_TO_RECIP_LIST(uintptr_t data)
|
||||
{
|
||||
SOCIALCLUB::SC_INBOX_SEND_UGCSTATUPDATE_TO_RECIP_LIST(&data);
|
||||
return data;
|
||||
SOCIALCLUB::SC_INBOX_SEND_UGCSTATUPDATE_TO_RECIP_LIST((Any*)data);
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any> LUA_NATIVE_SOCIALCLUB_SC_INBOX_MESSAGE_GET_UGCDATA(int p0, Any p1)
|
||||
static bool LUA_NATIVE_SOCIALCLUB_SC_INBOX_MESSAGE_GET_UGCDATA(int p0, uintptr_t p1)
|
||||
{
|
||||
std::tuple<bool, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)SOCIALCLUB::SC_INBOX_MESSAGE_GET_UGCDATA(p0, &p1);
|
||||
std::get<1>(return_values) = p1;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)SOCIALCLUB::SC_INBOX_MESSAGE_GET_UGCDATA(p0, (Any*)p1);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any> LUA_NATIVE_SOCIALCLUB_SC_INBOX_GET_BOUNTY_DATA_AT_INDEX(int index, Any outData)
|
||||
static bool LUA_NATIVE_SOCIALCLUB_SC_INBOX_GET_BOUNTY_DATA_AT_INDEX(int index, uintptr_t outData)
|
||||
{
|
||||
std::tuple<bool, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)SOCIALCLUB::SC_INBOX_GET_BOUNTY_DATA_AT_INDEX(index, &outData);
|
||||
std::get<1>(return_values) = outData;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)SOCIALCLUB::SC_INBOX_GET_BOUNTY_DATA_AT_INDEX(index, (Any*)outData);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_SOCIALCLUB_SC_EMAIL_RETRIEVE_EMAILS(int offset, int limit)
|
||||
@ -110,25 +102,20 @@ namespace lua::native
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any> LUA_NATIVE_SOCIALCLUB_SC_EMAIL_GET_EMAIL_AT_INDEX(int p0, Any p1)
|
||||
static bool LUA_NATIVE_SOCIALCLUB_SC_EMAIL_GET_EMAIL_AT_INDEX(int p0, uintptr_t p1)
|
||||
{
|
||||
std::tuple<bool, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)SOCIALCLUB::SC_EMAIL_GET_EMAIL_AT_INDEX(p0, &p1);
|
||||
std::get<1>(return_values) = p1;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)SOCIALCLUB::SC_EMAIL_GET_EMAIL_AT_INDEX(p0, (Any*)p1);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_SOCIALCLUB_SC_EMAIL_DELETE_EMAILS(Any p0, Any p1)
|
||||
static void LUA_NATIVE_SOCIALCLUB_SC_EMAIL_DELETE_EMAILS(uintptr_t p0, Any p1)
|
||||
{
|
||||
SOCIALCLUB::SC_EMAIL_DELETE_EMAILS(&p0, p1);
|
||||
return p0;
|
||||
SOCIALCLUB::SC_EMAIL_DELETE_EMAILS((Any*)p0, p1);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_SOCIALCLUB_SC_EMAIL_MESSAGE_PUSH_GAMER_TO_RECIP_LIST(Any gamerHandle)
|
||||
static void LUA_NATIVE_SOCIALCLUB_SC_EMAIL_MESSAGE_PUSH_GAMER_TO_RECIP_LIST(uintptr_t gamerHandle)
|
||||
{
|
||||
SOCIALCLUB::SC_EMAIL_MESSAGE_PUSH_GAMER_TO_RECIP_LIST(&gamerHandle);
|
||||
return gamerHandle;
|
||||
SOCIALCLUB::SC_EMAIL_MESSAGE_PUSH_GAMER_TO_RECIP_LIST((Any*)gamerHandle);
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_SOCIALCLUB_SC_EMAIL_MESSAGE_CLEAR_RECIP_LIST()
|
||||
@ -311,21 +298,17 @@ namespace lua::native
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any> LUA_NATIVE_SOCIALCLUB_SC_LICENSEPLATE_SET_PLATE_DATA(sol::stack_object oldPlateText, sol::stack_object newPlateText, Any plateData)
|
||||
static bool LUA_NATIVE_SOCIALCLUB_SC_LICENSEPLATE_SET_PLATE_DATA(sol::stack_object oldPlateText, sol::stack_object newPlateText, uintptr_t plateData)
|
||||
{
|
||||
std::tuple<bool, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)SOCIALCLUB::SC_LICENSEPLATE_SET_PLATE_DATA(oldPlateText.is<const char*>() ? oldPlateText.as<const char*>() : nullptr, newPlateText.is<const char*>() ? newPlateText.as<const char*>() : nullptr, &plateData);
|
||||
std::get<1>(return_values) = plateData;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)SOCIALCLUB::SC_LICENSEPLATE_SET_PLATE_DATA(oldPlateText.is<const char*>() ? oldPlateText.as<const char*>() : nullptr, newPlateText.is<const char*>() ? newPlateText.as<const char*>() : nullptr, (Any*)plateData);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any, int> LUA_NATIVE_SOCIALCLUB_SC_LICENSEPLATE_ADD(sol::stack_object plateText, Any plateData, int token)
|
||||
static std::tuple<bool, int> LUA_NATIVE_SOCIALCLUB_SC_LICENSEPLATE_ADD(sol::stack_object plateText, uintptr_t plateData, int token)
|
||||
{
|
||||
std::tuple<bool, Any, int> return_values;
|
||||
std::get<0>(return_values) = (bool)SOCIALCLUB::SC_LICENSEPLATE_ADD(plateText.is<const char*>() ? plateText.as<const char*>() : nullptr, &plateData, &token);
|
||||
std::get<1>(return_values) = plateData;
|
||||
std::get<2>(return_values) = token;
|
||||
std::tuple<bool, int> return_values;
|
||||
std::get<0>(return_values) = (bool)SOCIALCLUB::SC_LICENSEPLATE_ADD(plateText.is<const char*>() ? plateText.as<const char*>() : nullptr, (Any*)plateData, &token);
|
||||
std::get<1>(return_values) = token;
|
||||
|
||||
return return_values;
|
||||
}
|
||||
|
@ -137,13 +137,10 @@ namespace lua::native
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any> LUA_NATIVE_STATS_STAT_SET_DATE(Hash statName, Any value, int numFields, bool save)
|
||||
static bool LUA_NATIVE_STATS_STAT_SET_DATE(Hash statName, uintptr_t value, int numFields, bool save)
|
||||
{
|
||||
std::tuple<bool, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)STATS::STAT_SET_DATE(statName, &value, numFields, save);
|
||||
std::get<1>(return_values) = value;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)STATS::STAT_SET_DATE(statName, (Any*)value, numFields, save);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static bool LUA_NATIVE_STATS_STAT_SET_STRING(Hash statName, sol::stack_object value, bool save)
|
||||
@ -203,13 +200,10 @@ namespace lua::native
|
||||
return return_values;
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any> LUA_NATIVE_STATS_STAT_GET_DATE(Hash statHash, Any outValue, int numFields, Any p3)
|
||||
static bool LUA_NATIVE_STATS_STAT_GET_DATE(Hash statHash, uintptr_t outValue, int numFields, Any p3)
|
||||
{
|
||||
std::tuple<bool, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)STATS::STAT_GET_DATE(statHash, &outValue, numFields, p3);
|
||||
std::get<1>(return_values) = outValue;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)STATS::STAT_GET_DATE(statHash, (Any*)outValue, numFields, p3);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static const char* LUA_NATIVE_STATS_STAT_GET_STRING(Hash statHash, int p1)
|
||||
@ -532,52 +526,24 @@ namespace lua::native
|
||||
STATS::PLAYSTATS_CHEAT_APPLIED(cheat.is<const char*>() ? cheat.as<const char*>() : nullptr);
|
||||
}
|
||||
|
||||
static std::tuple<Any, Any, Any, Any> LUA_NATIVE_STATS_PLAYSTATS_JOB_ACTIVITY_END(Any p0, Any p1, Any p2, Any p3)
|
||||
static void LUA_NATIVE_STATS_PLAYSTATS_JOB_ACTIVITY_END(uintptr_t p0, uintptr_t p1, uintptr_t p2, uintptr_t p3)
|
||||
{
|
||||
std::tuple<Any, Any, Any, Any> return_values;
|
||||
STATS::PLAYSTATS_JOB_ACTIVITY_END(&p0, &p1, &p2, &p3);
|
||||
std::get<0>(return_values) = p0;
|
||||
std::get<1>(return_values) = p1;
|
||||
std::get<2>(return_values) = p2;
|
||||
std::get<3>(return_values) = p3;
|
||||
|
||||
return return_values;
|
||||
STATS::PLAYSTATS_JOB_ACTIVITY_END((Any*)p0, (Any*)p1, (Any*)p2, (Any*)p3);
|
||||
}
|
||||
|
||||
static std::tuple<Any, Any, Any, Any> LUA_NATIVE_STATS_PLAYSTATS_JOB_BEND(Any p0, Any p1, Any p2, Any p3)
|
||||
static void LUA_NATIVE_STATS_PLAYSTATS_JOB_BEND(uintptr_t p0, uintptr_t p1, uintptr_t p2, uintptr_t p3)
|
||||
{
|
||||
std::tuple<Any, Any, Any, Any> return_values;
|
||||
STATS::PLAYSTATS_JOB_BEND(&p0, &p1, &p2, &p3);
|
||||
std::get<0>(return_values) = p0;
|
||||
std::get<1>(return_values) = p1;
|
||||
std::get<2>(return_values) = p2;
|
||||
std::get<3>(return_values) = p3;
|
||||
|
||||
return return_values;
|
||||
STATS::PLAYSTATS_JOB_BEND((Any*)p0, (Any*)p1, (Any*)p2, (Any*)p3);
|
||||
}
|
||||
|
||||
static std::tuple<Any, Any, Any, Any> LUA_NATIVE_STATS_PLAYSTATS_JOB_LTS_END(Any p0, Any p1, Any p2, Any p3)
|
||||
static void LUA_NATIVE_STATS_PLAYSTATS_JOB_LTS_END(uintptr_t p0, uintptr_t p1, uintptr_t p2, uintptr_t p3)
|
||||
{
|
||||
std::tuple<Any, Any, Any, Any> return_values;
|
||||
STATS::PLAYSTATS_JOB_LTS_END(&p0, &p1, &p2, &p3);
|
||||
std::get<0>(return_values) = p0;
|
||||
std::get<1>(return_values) = p1;
|
||||
std::get<2>(return_values) = p2;
|
||||
std::get<3>(return_values) = p3;
|
||||
|
||||
return return_values;
|
||||
STATS::PLAYSTATS_JOB_LTS_END((Any*)p0, (Any*)p1, (Any*)p2, (Any*)p3);
|
||||
}
|
||||
|
||||
static std::tuple<Any, Any, Any, Any> LUA_NATIVE_STATS_PLAYSTATS_JOB_LTS_ROUND_END(Any p0, Any p1, Any p2, Any p3)
|
||||
static void LUA_NATIVE_STATS_PLAYSTATS_JOB_LTS_ROUND_END(uintptr_t p0, uintptr_t p1, uintptr_t p2, uintptr_t p3)
|
||||
{
|
||||
std::tuple<Any, Any, Any, Any> return_values;
|
||||
STATS::PLAYSTATS_JOB_LTS_ROUND_END(&p0, &p1, &p2, &p3);
|
||||
std::get<0>(return_values) = p0;
|
||||
std::get<1>(return_values) = p1;
|
||||
std::get<2>(return_values) = p2;
|
||||
std::get<3>(return_values) = p3;
|
||||
|
||||
return return_values;
|
||||
STATS::PLAYSTATS_JOB_LTS_ROUND_END((Any*)p0, (Any*)p1, (Any*)p2, (Any*)p3);
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_STATS_PLAYSTATS_QUICKFIX_TOOL(int element, sol::stack_object item)
|
||||
@ -600,10 +566,9 @@ namespace lua::native
|
||||
STATS::PLAYSTATS_HEIST_SAVE_CHEAT(hash, p1);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_STATS_PLAYSTATS_APPEND_DIRECTOR_METRIC(Any p0)
|
||||
static void LUA_NATIVE_STATS_PLAYSTATS_APPEND_DIRECTOR_METRIC(uintptr_t p0)
|
||||
{
|
||||
STATS::PLAYSTATS_APPEND_DIRECTOR_METRIC(&p0);
|
||||
return p0;
|
||||
STATS::PLAYSTATS_APPEND_DIRECTOR_METRIC((Any*)p0);
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_STATS_PLAYSTATS_AWARD_BAD_SPORT(int id)
|
||||
@ -686,10 +651,9 @@ namespace lua::native
|
||||
STATS::PLAYSTATS_FM_EVENT_HUNTBEAST(p0);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_STATS_PLAYSTATS_PIMENU_HIDE_OPTIONS(Any data)
|
||||
static void LUA_NATIVE_STATS_PLAYSTATS_PIMENU_HIDE_OPTIONS(uintptr_t data)
|
||||
{
|
||||
STATS::PLAYSTATS_PIMENU_HIDE_OPTIONS(&data);
|
||||
return data;
|
||||
STATS::PLAYSTATS_PIMENU_HIDE_OPTIONS((Any*)data);
|
||||
}
|
||||
|
||||
static int LUA_NATIVE_STATS_LEADERBOARDS_GET_NUMBER_OF_COLUMNS(int p0, Any p1)
|
||||
@ -740,90 +704,58 @@ namespace lua::native
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any, Any> LUA_NATIVE_STATS_LEADERBOARDS2_READ_FRIENDS_BY_ROW(Any p0, Any p1, Any p2, bool p3, Any p4, Any p5)
|
||||
static bool LUA_NATIVE_STATS_LEADERBOARDS2_READ_FRIENDS_BY_ROW(uintptr_t p0, uintptr_t p1, Any p2, bool p3, Any p4, Any p5)
|
||||
{
|
||||
std::tuple<bool, Any, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)STATS::LEADERBOARDS2_READ_FRIENDS_BY_ROW(&p0, &p1, p2, p3, p4, p5);
|
||||
std::get<1>(return_values) = p0;
|
||||
std::get<2>(return_values) = p1;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)STATS::LEADERBOARDS2_READ_FRIENDS_BY_ROW((Any*)p0, (Any*)p1, p2, p3, p4, p5);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any, Any> LUA_NATIVE_STATS_LEADERBOARDS2_READ_BY_HANDLE(Any p0, Any p1)
|
||||
static bool LUA_NATIVE_STATS_LEADERBOARDS2_READ_BY_HANDLE(uintptr_t p0, uintptr_t p1)
|
||||
{
|
||||
std::tuple<bool, Any, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)STATS::LEADERBOARDS2_READ_BY_HANDLE(&p0, &p1);
|
||||
std::get<1>(return_values) = p0;
|
||||
std::get<2>(return_values) = p1;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)STATS::LEADERBOARDS2_READ_BY_HANDLE((Any*)p0, (Any*)p1);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any> LUA_NATIVE_STATS_LEADERBOARDS2_READ_BY_RANK(Any p0, Any p1, Any p2)
|
||||
static bool LUA_NATIVE_STATS_LEADERBOARDS2_READ_BY_RANK(uintptr_t p0, Any p1, Any p2)
|
||||
{
|
||||
std::tuple<bool, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)STATS::LEADERBOARDS2_READ_BY_RANK(&p0, p1, p2);
|
||||
std::get<1>(return_values) = p0;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)STATS::LEADERBOARDS2_READ_BY_RANK((Any*)p0, p1, p2);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any, Any> LUA_NATIVE_STATS_LEADERBOARDS2_READ_BY_RADIUS(Any p0, Any p1, Any p2)
|
||||
static bool LUA_NATIVE_STATS_LEADERBOARDS2_READ_BY_RADIUS(uintptr_t p0, Any p1, uintptr_t p2)
|
||||
{
|
||||
std::tuple<bool, Any, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)STATS::LEADERBOARDS2_READ_BY_RADIUS(&p0, p1, &p2);
|
||||
std::get<1>(return_values) = p0;
|
||||
std::get<2>(return_values) = p2;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)STATS::LEADERBOARDS2_READ_BY_RADIUS((Any*)p0, p1, (Any*)p2);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any> LUA_NATIVE_STATS_LEADERBOARDS2_READ_BY_SCORE_INT(Any p0, Any p1, Any p2)
|
||||
static bool LUA_NATIVE_STATS_LEADERBOARDS2_READ_BY_SCORE_INT(uintptr_t p0, Any p1, Any p2)
|
||||
{
|
||||
std::tuple<bool, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)STATS::LEADERBOARDS2_READ_BY_SCORE_INT(&p0, p1, p2);
|
||||
std::get<1>(return_values) = p0;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)STATS::LEADERBOARDS2_READ_BY_SCORE_INT((Any*)p0, p1, p2);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any> LUA_NATIVE_STATS_LEADERBOARDS2_READ_BY_SCORE_FLOAT(Any p0, float p1, Any p2)
|
||||
static bool LUA_NATIVE_STATS_LEADERBOARDS2_READ_BY_SCORE_FLOAT(uintptr_t p0, float p1, Any p2)
|
||||
{
|
||||
std::tuple<bool, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)STATS::LEADERBOARDS2_READ_BY_SCORE_FLOAT(&p0, p1, p2);
|
||||
std::get<1>(return_values) = p0;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)STATS::LEADERBOARDS2_READ_BY_SCORE_FLOAT((Any*)p0, p1, p2);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any, Any, Any> LUA_NATIVE_STATS_LEADERBOARDS2_READ_RANK_PREDICTION(Any p0, Any p1, Any p2)
|
||||
static bool LUA_NATIVE_STATS_LEADERBOARDS2_READ_RANK_PREDICTION(uintptr_t p0, uintptr_t p1, uintptr_t p2)
|
||||
{
|
||||
std::tuple<bool, Any, Any, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)STATS::LEADERBOARDS2_READ_RANK_PREDICTION(&p0, &p1, &p2);
|
||||
std::get<1>(return_values) = p0;
|
||||
std::get<2>(return_values) = p1;
|
||||
std::get<3>(return_values) = p2;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)STATS::LEADERBOARDS2_READ_RANK_PREDICTION((Any*)p0, (Any*)p1, (Any*)p2);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any> LUA_NATIVE_STATS_LEADERBOARDS2_READ_BY_PLAFORM(Any p0, sol::stack_object gamerHandleCsv, sol::stack_object platformName)
|
||||
static bool LUA_NATIVE_STATS_LEADERBOARDS2_READ_BY_PLAFORM(uintptr_t p0, sol::stack_object gamerHandleCsv, sol::stack_object platformName)
|
||||
{
|
||||
std::tuple<bool, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)STATS::LEADERBOARDS2_READ_BY_PLAFORM(&p0, gamerHandleCsv.is<const char*>() ? gamerHandleCsv.as<const char*>() : nullptr, platformName.is<const char*>() ? platformName.as<const char*>() : nullptr);
|
||||
std::get<1>(return_values) = p0;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)STATS::LEADERBOARDS2_READ_BY_PLAFORM((Any*)p0, gamerHandleCsv.is<const char*>() ? gamerHandleCsv.as<const char*>() : nullptr, platformName.is<const char*>() ? platformName.as<const char*>() : nullptr);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any> LUA_NATIVE_STATS_LEADERBOARDS2_READ_GET_ROW_DATA_START(Any p0)
|
||||
static bool LUA_NATIVE_STATS_LEADERBOARDS2_READ_GET_ROW_DATA_START(uintptr_t p0)
|
||||
{
|
||||
std::tuple<bool, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)STATS::LEADERBOARDS2_READ_GET_ROW_DATA_START(&p0);
|
||||
std::get<1>(return_values) = p0;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)STATS::LEADERBOARDS2_READ_GET_ROW_DATA_START((Any*)p0);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_STATS_LEADERBOARDS2_READ_GET_ROW_DATA_END()
|
||||
@ -831,13 +763,10 @@ namespace lua::native
|
||||
STATS::LEADERBOARDS2_READ_GET_ROW_DATA_END();
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any> LUA_NATIVE_STATS_LEADERBOARDS2_READ_GET_ROW_DATA_INFO(Any p0, Any p1)
|
||||
static bool LUA_NATIVE_STATS_LEADERBOARDS2_READ_GET_ROW_DATA_INFO(Any p0, uintptr_t p1)
|
||||
{
|
||||
std::tuple<bool, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)STATS::LEADERBOARDS2_READ_GET_ROW_DATA_INFO(p0, &p1);
|
||||
std::get<1>(return_values) = p1;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)STATS::LEADERBOARDS2_READ_GET_ROW_DATA_INFO(p0, (Any*)p1);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static int LUA_NATIVE_STATS_LEADERBOARDS2_READ_GET_ROW_DATA_INT(Any p0, Any p1)
|
||||
@ -852,13 +781,10 @@ namespace lua::native
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any> LUA_NATIVE_STATS_LEADERBOARDS2_WRITE_DATA(Any p0)
|
||||
static bool LUA_NATIVE_STATS_LEADERBOARDS2_WRITE_DATA(uintptr_t p0)
|
||||
{
|
||||
std::tuple<bool, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)STATS::LEADERBOARDS2_WRITE_DATA(&p0);
|
||||
std::get<1>(return_values) = p0;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)STATS::LEADERBOARDS2_WRITE_DATA((Any*)p0);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_STATS_LEADERBOARDS_WRITE_ADD_COLUMN(Any p0, Any p1, float p2)
|
||||
@ -871,13 +797,10 @@ namespace lua::native
|
||||
STATS::LEADERBOARDS_WRITE_ADD_COLUMN_LONG(p0, p1, p2);
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any> LUA_NATIVE_STATS_LEADERBOARDS_CACHE_DATA_ROW(Any p0)
|
||||
static bool LUA_NATIVE_STATS_LEADERBOARDS_CACHE_DATA_ROW(uintptr_t p0)
|
||||
{
|
||||
std::tuple<bool, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)STATS::LEADERBOARDS_CACHE_DATA_ROW(&p0);
|
||||
std::get<1>(return_values) = p0;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)STATS::LEADERBOARDS_CACHE_DATA_ROW((Any*)p0);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_STATS_LEADERBOARDS_CLEAR_CACHE_DATA()
|
||||
@ -908,13 +831,10 @@ namespace lua::native
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any> LUA_NATIVE_STATS_LEADERBOARDS_GET_CACHE_DATA_ROW(Any p0, Any p1, Any p2)
|
||||
static bool LUA_NATIVE_STATS_LEADERBOARDS_GET_CACHE_DATA_ROW(Any p0, Any p1, uintptr_t p2)
|
||||
{
|
||||
std::tuple<bool, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)STATS::LEADERBOARDS_GET_CACHE_DATA_ROW(p0, p1, &p2);
|
||||
std::get<1>(return_values) = p2;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)STATS::LEADERBOARDS_GET_CACHE_DATA_ROW(p0, p1, (Any*)p2);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_STATS_PRESENCE_EVENT_UPDATESTAT_INT(Hash statHash, int value, int p2)
|
||||
@ -993,14 +913,10 @@ namespace lua::native
|
||||
STATS::STAT_SET_CHEAT_IS_ACTIVE();
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any, Any> LUA_NATIVE_STATS_LEADERBOARDS2_WRITE_DATA_FOR_EVENT_TYPE(Any p0, Any p1)
|
||||
static bool LUA_NATIVE_STATS_LEADERBOARDS2_WRITE_DATA_FOR_EVENT_TYPE(uintptr_t p0, uintptr_t p1)
|
||||
{
|
||||
std::tuple<bool, Any, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)STATS::LEADERBOARDS2_WRITE_DATA_FOR_EVENT_TYPE(&p0, &p1);
|
||||
std::get<1>(return_values) = p0;
|
||||
std::get<2>(return_values) = p1;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)STATS::LEADERBOARDS2_WRITE_DATA_FOR_EVENT_TYPE((Any*)p0, (Any*)p1);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_STATS_FORCE_CLOUD_MP_STATS_DOWNLOAD_AND_OVERWRITE_LOCAL_SAVE()
|
||||
@ -1043,22 +959,16 @@ namespace lua::native
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<int, Any> LUA_NATIVE_STATS_STAT_MIGRATE_CHECK_GET_PLATFORM_STATUS(int p0, Any p1)
|
||||
static int LUA_NATIVE_STATS_STAT_MIGRATE_CHECK_GET_PLATFORM_STATUS(int p0, uintptr_t p1)
|
||||
{
|
||||
std::tuple<int, Any> return_values;
|
||||
std::get<0>(return_values) = STATS::STAT_MIGRATE_CHECK_GET_PLATFORM_STATUS(p0, &p1);
|
||||
std::get<1>(return_values) = p1;
|
||||
|
||||
return return_values;
|
||||
auto retval = STATS::STAT_MIGRATE_CHECK_GET_PLATFORM_STATUS(p0, (Any*)p1);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<int, Any> LUA_NATIVE_STATS_STAT_GET_SAVE_MIGRATION_STATUS(Any data)
|
||||
static int LUA_NATIVE_STATS_STAT_GET_SAVE_MIGRATION_STATUS(uintptr_t data)
|
||||
{
|
||||
std::tuple<int, Any> return_values;
|
||||
std::get<0>(return_values) = STATS::STAT_GET_SAVE_MIGRATION_STATUS(&data);
|
||||
std::get<1>(return_values) = data;
|
||||
|
||||
return return_values;
|
||||
auto retval = STATS::STAT_GET_SAVE_MIGRATION_STATUS((Any*)data);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static bool LUA_NATIVE_STATS_STAT_SAVE_MIGRATION_CANCEL_PENDING_OPERATION()
|
||||
@ -1317,28 +1227,24 @@ namespace lua::native
|
||||
STATS::PLAYSTATS_SPENT_PI_CUSTOM_LOADOUT(amount);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_STATS_PLAYSTATS_BUY_CONTRABAND_MISSION(Any data)
|
||||
static void LUA_NATIVE_STATS_PLAYSTATS_BUY_CONTRABAND_MISSION(uintptr_t data)
|
||||
{
|
||||
STATS::PLAYSTATS_BUY_CONTRABAND_MISSION(&data);
|
||||
return data;
|
||||
STATS::PLAYSTATS_BUY_CONTRABAND_MISSION((Any*)data);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_STATS_PLAYSTATS_SELL_CONTRABAND_MISSION(Any data)
|
||||
static void LUA_NATIVE_STATS_PLAYSTATS_SELL_CONTRABAND_MISSION(uintptr_t data)
|
||||
{
|
||||
STATS::PLAYSTATS_SELL_CONTRABAND_MISSION(&data);
|
||||
return data;
|
||||
STATS::PLAYSTATS_SELL_CONTRABAND_MISSION((Any*)data);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_STATS_PLAYSTATS_DEFEND_CONTRABAND_MISSION(Any data)
|
||||
static void LUA_NATIVE_STATS_PLAYSTATS_DEFEND_CONTRABAND_MISSION(uintptr_t data)
|
||||
{
|
||||
STATS::PLAYSTATS_DEFEND_CONTRABAND_MISSION(&data);
|
||||
return data;
|
||||
STATS::PLAYSTATS_DEFEND_CONTRABAND_MISSION((Any*)data);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_STATS_PLAYSTATS_RECOVER_CONTRABAND_MISSION(Any data)
|
||||
static void LUA_NATIVE_STATS_PLAYSTATS_RECOVER_CONTRABAND_MISSION(uintptr_t data)
|
||||
{
|
||||
STATS::PLAYSTATS_RECOVER_CONTRABAND_MISSION(&data);
|
||||
return data;
|
||||
STATS::PLAYSTATS_RECOVER_CONTRABAND_MISSION((Any*)data);
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_STATS_PLAYSTATS_HIT_CONTRABAND_DESTROY_LIMIT(Any p0)
|
||||
@ -1476,10 +1382,9 @@ namespace lua::native
|
||||
STATS::PLAYSTATS_COPY_RANK_INTO_NEW_SLOT(p0, p1, p2, p3, p4, p5, p6);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_STATS_PLAYSTATS_DUPE_DETECTED(Any data)
|
||||
static void LUA_NATIVE_STATS_PLAYSTATS_DUPE_DETECTED(uintptr_t data)
|
||||
{
|
||||
STATS::PLAYSTATS_DUPE_DETECTED(&data);
|
||||
return data;
|
||||
STATS::PLAYSTATS_DUPE_DETECTED((Any*)data);
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_STATS_PLAYSTATS_BAN_ALERT(int p0)
|
||||
@ -1487,10 +1392,9 @@ namespace lua::native
|
||||
STATS::PLAYSTATS_BAN_ALERT(p0);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_STATS_PLAYSTATS_GUNRUNNING_MISSION_ENDED(Any data)
|
||||
static void LUA_NATIVE_STATS_PLAYSTATS_GUNRUNNING_MISSION_ENDED(uintptr_t data)
|
||||
{
|
||||
STATS::PLAYSTATS_GUNRUNNING_MISSION_ENDED(&data);
|
||||
return data;
|
||||
STATS::PLAYSTATS_GUNRUNNING_MISSION_ENDED((Any*)data);
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_STATS_PLAYSTATS_GUNRUNNING_RND(Any p0)
|
||||
@ -1523,40 +1427,34 @@ namespace lua::native
|
||||
STATS::PLAYSTATS_MINIGAME_USAGE(p0, p1, p2);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_STATS_PLAYSTATS_STONE_HATCHET_ENDED(Any data)
|
||||
static void LUA_NATIVE_STATS_PLAYSTATS_STONE_HATCHET_ENDED(uintptr_t data)
|
||||
{
|
||||
STATS::PLAYSTATS_STONE_HATCHET_ENDED(&data);
|
||||
return data;
|
||||
STATS::PLAYSTATS_STONE_HATCHET_ENDED((Any*)data);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_STATS_PLAYSTATS_SMUGGLER_MISSION_ENDED(Any data)
|
||||
static void LUA_NATIVE_STATS_PLAYSTATS_SMUGGLER_MISSION_ENDED(uintptr_t data)
|
||||
{
|
||||
STATS::PLAYSTATS_SMUGGLER_MISSION_ENDED(&data);
|
||||
return data;
|
||||
STATS::PLAYSTATS_SMUGGLER_MISSION_ENDED((Any*)data);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_STATS_PLAYSTATS_FM_HEIST_PREP_ENDED(Any data)
|
||||
static void LUA_NATIVE_STATS_PLAYSTATS_FM_HEIST_PREP_ENDED(uintptr_t data)
|
||||
{
|
||||
STATS::PLAYSTATS_FM_HEIST_PREP_ENDED(&data);
|
||||
return data;
|
||||
STATS::PLAYSTATS_FM_HEIST_PREP_ENDED((Any*)data);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_STATS_PLAYSTATS_INSTANCED_HEIST_ENDED(Any data, Any p1, Any p2, Any p3)
|
||||
static void LUA_NATIVE_STATS_PLAYSTATS_INSTANCED_HEIST_ENDED(uintptr_t data, Any p1, Any p2, Any p3)
|
||||
{
|
||||
STATS::PLAYSTATS_INSTANCED_HEIST_ENDED(&data, p1, p2, p3);
|
||||
return data;
|
||||
STATS::PLAYSTATS_INSTANCED_HEIST_ENDED((Any*)data, p1, p2, p3);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_STATS_PLAYSTATS_DAR_CHECKPOINT(Any data)
|
||||
static void LUA_NATIVE_STATS_PLAYSTATS_DAR_CHECKPOINT(uintptr_t data)
|
||||
{
|
||||
STATS::PLAYSTATS_DAR_CHECKPOINT(&data);
|
||||
return data;
|
||||
STATS::PLAYSTATS_DAR_CHECKPOINT((Any*)data);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_STATS_PLAYSTATS_ENTER_SESSION_PACK(Any data)
|
||||
static void LUA_NATIVE_STATS_PLAYSTATS_ENTER_SESSION_PACK(uintptr_t data)
|
||||
{
|
||||
STATS::PLAYSTATS_ENTER_SESSION_PACK(&data);
|
||||
return data;
|
||||
STATS::PLAYSTATS_ENTER_SESSION_PACK((Any*)data);
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_STATS_PLAYSTATS_DRONE_USAGE(int p0, int p1, int p2)
|
||||
@ -1574,10 +1472,9 @@ namespace lua::native
|
||||
STATS::PLAYSTATS_ARENA_WARS_SPECTATOR(p0, p1, p2, p3, p4);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_STATS_PLAYSTATS_ARENA_WARS_ENDED(Any data)
|
||||
static void LUA_NATIVE_STATS_PLAYSTATS_ARENA_WARS_ENDED(uintptr_t data)
|
||||
{
|
||||
STATS::PLAYSTATS_ARENA_WARS_ENDED(&data);
|
||||
return data;
|
||||
STATS::PLAYSTATS_ARENA_WARS_ENDED((Any*)data);
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_STATS_PLAYSTATS_SWITCH_PASSIVE_MODE(bool p0, int p1, int p2, int p3)
|
||||
@ -1665,10 +1562,9 @@ namespace lua::native
|
||||
STATS::PLAYSTATS_ARCADE_LOVE_MATCH(p0, p1);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_STATS_PLAYSTATS_FREEMODE_CASINO_MISSION_ENDED(Any data)
|
||||
static void LUA_NATIVE_STATS_PLAYSTATS_FREEMODE_CASINO_MISSION_ENDED(uintptr_t data)
|
||||
{
|
||||
STATS::PLAYSTATS_FREEMODE_CASINO_MISSION_ENDED(&data);
|
||||
return data;
|
||||
STATS::PLAYSTATS_FREEMODE_CASINO_MISSION_ENDED((Any*)data);
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_STATS_PLAYSTATS_HEIST3_DRONE(Any p0)
|
||||
@ -1681,10 +1577,9 @@ namespace lua::native
|
||||
STATS::PLAYSTATS_HEIST3_HACK(p0, p1, p2, p3, p4, p5);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_STATS_PLAYSTATS_NPC_PHONE(Any p0)
|
||||
static void LUA_NATIVE_STATS_PLAYSTATS_NPC_PHONE(uintptr_t p0)
|
||||
{
|
||||
STATS::PLAYSTATS_NPC_PHONE(&p0);
|
||||
return p0;
|
||||
STATS::PLAYSTATS_NPC_PHONE((Any*)p0);
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_STATS_PLAYSTATS_ARCADE_CABINET(Any p0)
|
||||
@ -1847,10 +1742,9 @@ namespace lua::native
|
||||
STATS::_PLAYSTATS_RANDOM_EVENT(p0);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_STATS_PLAYSTATS_ALERT_(Any data)
|
||||
static void LUA_NATIVE_STATS_PLAYSTATS_ALERT_(uintptr_t data)
|
||||
{
|
||||
STATS::_PLAYSTATS_ALERT(&data);
|
||||
return data;
|
||||
STATS::_PLAYSTATS_ALERT((Any*)data);
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_STATS_PLAYSTATS_ATTRITION_STAGE_END_(Any p0)
|
||||
@ -1863,10 +1757,9 @@ namespace lua::native
|
||||
STATS::_PLAYSTATS_SHOWROOM_NAV(p0, p1, entity);
|
||||
}
|
||||
|
||||
static Any LUA_NATIVE_STATS_PLAYSTATS_SHOWROOM_OVERVIEW_(Any data)
|
||||
static void LUA_NATIVE_STATS_PLAYSTATS_SHOWROOM_OVERVIEW_(uintptr_t data)
|
||||
{
|
||||
STATS::_PLAYSTATS_SHOWROOM_OVERVIEW(&data);
|
||||
return data;
|
||||
STATS::_PLAYSTATS_SHOWROOM_OVERVIEW((Any*)data);
|
||||
}
|
||||
|
||||
void init_native_binding_STATS(sol::state& L)
|
||||
|
@ -14,13 +14,10 @@ namespace lua::native
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<int, Any> LUA_NATIVE_SYSTEM_START_NEW_SCRIPT_WITH_ARGS(sol::stack_object scriptName, Any args, int argCount, int stackSize)
|
||||
static int LUA_NATIVE_SYSTEM_START_NEW_SCRIPT_WITH_ARGS(sol::stack_object scriptName, uintptr_t args, int argCount, int stackSize)
|
||||
{
|
||||
std::tuple<int, Any> return_values;
|
||||
std::get<0>(return_values) = SYSTEM::START_NEW_SCRIPT_WITH_ARGS(scriptName.is<const char*>() ? scriptName.as<const char*>() : nullptr, &args, argCount, stackSize);
|
||||
std::get<1>(return_values) = args;
|
||||
|
||||
return return_values;
|
||||
auto retval = SYSTEM::START_NEW_SCRIPT_WITH_ARGS(scriptName.is<const char*>() ? scriptName.as<const char*>() : nullptr, (Any*)args, argCount, stackSize);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static int LUA_NATIVE_SYSTEM_START_NEW_SCRIPT_WITH_NAME_HASH(Hash scriptHash, int stackSize)
|
||||
@ -29,13 +26,10 @@ namespace lua::native
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<int, Any> LUA_NATIVE_SYSTEM_START_NEW_SCRIPT_WITH_NAME_HASH_AND_ARGS(Hash scriptHash, Any args, int argCount, int stackSize)
|
||||
static int LUA_NATIVE_SYSTEM_START_NEW_SCRIPT_WITH_NAME_HASH_AND_ARGS(Hash scriptHash, uintptr_t args, int argCount, int stackSize)
|
||||
{
|
||||
std::tuple<int, Any> return_values;
|
||||
std::get<0>(return_values) = SYSTEM::START_NEW_SCRIPT_WITH_NAME_HASH_AND_ARGS(scriptHash, &args, argCount, stackSize);
|
||||
std::get<1>(return_values) = args;
|
||||
|
||||
return return_values;
|
||||
auto retval = SYSTEM::START_NEW_SCRIPT_WITH_NAME_HASH_AND_ARGS(scriptHash, (Any*)args, argCount, stackSize);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static int LUA_NATIVE_SYSTEM_TIMERA()
|
||||
|
@ -3766,13 +3766,10 @@ namespace lua::native
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<int, Any> LUA_NATIVE_VEHICLE_GET_ALL_VEHICLES(Any vehsStruct)
|
||||
static int LUA_NATIVE_VEHICLE_GET_ALL_VEHICLES(uintptr_t vehsStruct)
|
||||
{
|
||||
std::tuple<int, Any> return_values;
|
||||
std::get<0>(return_values) = VEHICLE::GET_ALL_VEHICLES(&vehsStruct);
|
||||
std::get<1>(return_values) = vehsStruct;
|
||||
|
||||
return return_values;
|
||||
auto retval = VEHICLE::GET_ALL_VEHICLES((Any*)vehsStruct);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static void LUA_NATIVE_VEHICLE_SET_CARGOBOB_EXTA_PICKUP_RANGE(Any p0, Any p1)
|
||||
|
@ -504,22 +504,16 @@ namespace lua::native
|
||||
WEAPON::SET_WEAPON_OBJECT_CAMO_INDEX(weaponObject, p1);
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any> LUA_NATIVE_WEAPON_GET_WEAPON_HUD_STATS(Hash weaponHash, Any outData)
|
||||
static bool LUA_NATIVE_WEAPON_GET_WEAPON_HUD_STATS(Hash weaponHash, uintptr_t outData)
|
||||
{
|
||||
std::tuple<bool, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)WEAPON::GET_WEAPON_HUD_STATS(weaponHash, &outData);
|
||||
std::get<1>(return_values) = outData;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)WEAPON::GET_WEAPON_HUD_STATS(weaponHash, (Any*)outData);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static std::tuple<bool, Any> LUA_NATIVE_WEAPON_GET_WEAPON_COMPONENT_HUD_STATS(Hash componentHash, Any outData)
|
||||
static bool LUA_NATIVE_WEAPON_GET_WEAPON_COMPONENT_HUD_STATS(Hash componentHash, uintptr_t outData)
|
||||
{
|
||||
std::tuple<bool, Any> return_values;
|
||||
std::get<0>(return_values) = (bool)WEAPON::GET_WEAPON_COMPONENT_HUD_STATS(componentHash, &outData);
|
||||
std::get<1>(return_values) = outData;
|
||||
|
||||
return return_values;
|
||||
auto retval = (bool)WEAPON::GET_WEAPON_COMPONENT_HUD_STATS(componentHash, (Any*)outData);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static float LUA_NATIVE_WEAPON_GET_WEAPON_DAMAGE(Hash weaponHash, Hash componentHash)
|
||||
|
Loading…
Reference in New Issue
Block a user