misc¶
get_number_of_free_stacks_of_this_size¶
int native.misc.get_number_of_free_stacks_of_this_size(int stack_size)
_get_number_of_instructions¶
int native.misc._get_number_of_instructions()
_get_max_num_instructions¶
int native.misc._get_max_num_instructions()
is_mag_demo_1_active¶
bool native.misc.is_mag_demo_1_active()
magdemo = magazine demo, i. e. for magazines such as IGN, pre play phases to prepare articles etc. - example 2012 builds for V
Hardcoded to return false.
set_random_seed¶
void native.misc.set_random_seed(int seed)
set_time_scale¶
void native.misc.set_time_scale(float time_scale)
set_mission_flag¶
void native.misc.set_mission_flag(bool toggle)
get_mission_flag¶
bool native.misc.get_mission_flag()
_0x5801be2df2af07ec¶
void native.misc._0x5801be2df2af07ec(int p0)
set_random_event_flag¶
void native.misc.set_random_event_flag(bool toggle)
If the parameter is true, sets the random event flag to true, if the parameter is false, the function does nothing at all.
Does nothing if the mission flag is set.
get_random_event_flag¶
bool native.misc.get_random_event_flag()
_0x9bf2c0c568c61641¶
void native.misc._0x9bf2c0c568c61641(int p0)
activity_feed_create¶
void native.misc.activity_feed_create(string p0, string p1)
activity_feed_add_substring_to_caption¶
void native.misc.activity_feed_add_substring_to_caption(string p0)
_0xff252e2bafb7330f¶
void native.misc._0xff252e2bafb7330f(int p0)
activity_feed_action_start_with_command_line¶
void native.misc.activity_feed_action_start_with_command_line(string p0, string p1)
activity_feed_action_start_with_command_line_add¶
void native.misc.activity_feed_action_start_with_command_line_add(string p0)
_0xaf530e56505d1bd6¶
int native.misc._0xaf530e56505d1bd6(int p0)
activity_feed_post¶
void native.misc.activity_feed_post()
_0xf81c53561d15f330¶
string native.misc._0xf81c53561d15f330()
_0x1096603b519c905f¶
void native.misc._0x1096603b519c905f(string name)
_0xcc3edc5614b03f61¶
void native.misc._0xcc3edc5614b03f61(int p0)
inform_code_of_content_id_of_current_ugc_mission¶
void native.misc.inform_code_of_content_id_of_current_ugc_mission(string p0)
_0xda4d8eb04e8e2928¶
void native.misc._0xda4d8eb04e8e2928(int p0)
_0xb08c4fa25bc29db9¶
void native.misc._0xb08c4fa25bc29db9(int p0)
_get_prev_weather_type_hash_name¶
int native.misc._get_prev_weather_type_hash_name()
_get_next_weather_type_hash_name¶
int native.misc._get_next_weather_type_hash_name()
_0x0730e518486deec3¶
void native.misc._0x0730e518486deec3(int p0)
set_weather_type¶
void native.misc.set_weather_type(int weather_type, bool p1, bool p2, bool transition, float transition_time, bool p5)
_set_weather_type_2¶
void native.misc._set_weather_type_2(int weather_type, int p1, int p2, int p3, bool p4)
_get_random_weather_type_index¶
int native.misc._get_random_weather_type_index()
_get_random_weather_type¶
int native.misc._get_random_weather_type()
set_random_weather_type¶
void native.misc.set_random_weather_type(bool p0, bool p1)
clear_weather_type_persist¶
void native.misc.clear_weather_type_persist()
_clear_weather_type_persist_overtime¶
void native.misc._clear_weather_type_persist_overtime(int milliseconds)
get_curr_weather_state¶
void native.misc.get_curr_weather_state(ptr int weather_type1, ptr int weather_type2, ptr int percent_weather2)
set_curr_weather_state¶
void native.misc.set_curr_weather_state(int weather_type1, int weather_type2, float percent_weather2, bool enabled)
_set_weather_type_frozen¶
void native.misc._set_weather_type_frozen(bool toggle)
_get_forced_weather¶
void native.misc._get_forced_weather(ptr int weather, ptr int p1)
_0x2916b30dc6c41179¶
void native.misc._0x2916b30dc6c41179(int weather_type)
_0xd3f943b88f55376a¶
void native.misc._0xd3f943b88f55376a(int weather_type)
_0x243cede8f916b994¶
void native.misc._0x243cede8f916b994()
_set_override_weather¶
void native.misc._set_override_weather(int weather_type)
clear_override_weather¶
void native.misc.clear_override_weather()
_set_weather_variation¶
void native.misc._set_weather_variation(string weather_type, string variation)
_clear_weather_variation¶
void native.misc._clear_weather_variation(string weather_type, bool p1)
water_override_set_shorewaveamplitude¶
void native.misc.water_override_set_shorewaveamplitude(float amplitude)
water_override_set_oceanwavemaxamplitude¶
void native.misc.water_override_set_oceanwavemaxamplitude(float max_amplitude)
_get_temperature_at_coords¶
float native.misc._get_temperature_at_coords(float x, float y, float z)
set_wind_speed¶
void native.misc.set_wind_speed(float speed)
get_wind_speed¶
float native.misc.get_wind_speed()
set_wind_direction¶
void native.misc.set_wind_direction(float direction)
get_wind_direction¶
vec3 native.misc.get_wind_direction()
set_rain¶
void native.misc.set_rain(float intensity)
get_rain_level¶
float native.misc.get_rain_level()
_0x745808bb01cec6b9¶
void native.misc._0x745808bb01cec6b9(float p0)
_set_snow_level¶
void native.misc._set_snow_level(float level)
get_snow_level¶
float native.misc.get_snow_level()
force_lightning_flash¶
void native.misc.force_lightning_flash()
_force_lightning_flash_at_coords¶
void native.misc._force_lightning_flash_at_coords(float x, float y, float z, float p3)
_0xa9342743b634a462¶
void native.misc._0xa9342743b634a462(int p0)
get_game_timer¶
int native.misc.get_game_timer()
_get_game_timer_non_scaled_clipped¶
int native.misc._get_game_timer_non_scaled_clipped()
get_system_time¶
int native.misc.get_system_time()
get_number_of_microseconds_since_last_call¶
int native.misc.get_number_of_microseconds_since_last_call()
get_script_time_within_frame_in_microseconds¶
int native.misc.get_script_time_within_frame_in_microseconds()
reset_script_time_within_frame¶
void native.misc.reset_script_time_within_frame()
get_frame_time¶
float native.misc.get_frame_time()
get_system_time_step¶
float native.misc.get_system_time_step()
get_frame_count¶
int native.misc.get_frame_count()
_0x6bed40493a1afdb8¶
void native.misc._0x6bed40493a1afdb8(ptr int p0, float p1)
_read_int_as_float¶
float native.misc._read_int_as_float(int value)
Reads the passed value as floating point value and returns it.
Example: _READ_INT_AS_FLOAT(0x3F800000) returns 1.0f because 0x3F800000 is the hexadecimal representation of 1.0f.
get_random_float_in_range¶
float native.misc.get_random_float_in_range(float start_range, float end_range)
get_random_int_in_range¶
int native.misc.get_random_int_in_range(int start_range, int end_range)
get_ground_z_for_3d_coord¶
bool native.misc.get_ground_z_for_3d_coord(float x, float y, float z, ptr int ground_z, bool p4)
get_ground_z_and_normal_for_3d_coord¶
bool native.misc.get_ground_z_and_normal_for_3d_coord(float x, float y, float z, ptr int ground_z, ref vec3 normal)
_0xbbe5b63effb08e68¶
int native.misc._0xbbe5b63effb08e68(int p0, int p1, int p2, int p3, int p4, int p5, int p6)
asin¶
float native.misc.asin(float p0)
acos¶
float native.misc.acos(float p0)
tan¶
float native.misc.tan(float p0)
atan¶
float native.misc.atan(float p0)
atan2¶
float native.misc.atan2(float p0, float p1)
get_distance_between_coords¶
float native.misc.get_distance_between_coords(float x1, float y1, float z1, float x2, float y2, float z2, bool use_z)
If useZ is false, only the 2D plane (X-Y) will be considered for calculating the distance.
Consider using this faster native instead: BUILTIN::VDIST - DVIST always takes in consideration the 3D coordinates.
get_angle_between_2d_vectors¶
float native.misc.get_angle_between_2d_vectors(float x1, float y1, float x2, float y2)
get_heading_from_vector_2d¶
float native.misc.get_heading_from_vector_2d(float dx, float dy)
get_closest_point_on_line¶
vec3 native.misc.get_closest_point_on_line(float p0, float p1, float p2, float p3, float p4, float p5, float p6, float p7, float p8, bool p9)
get_line_plane_intersection¶
bool native.misc.get_line_plane_intersection(float p0, float p1, float p2, float p3, float p4, float p5, float p6, float p7, float p8, float p9, float p10, float p11, ptr int p12)
set_bit¶
void native.misc.set_bit(ptr int address, int offset)
clear_bit¶
void native.misc.clear_bit(ptr int address, int offset)
_is_bit_flag_set¶
bool native.misc._is_bit_flag_set(ptr int bit_flags, int flag)
_is_any_bit_flag_set¶
bool native.misc._is_any_bit_flag_set(ptr int bit_flags)
_count_bit_flags¶
int native.misc._count_bit_flags(ptr int bit_flags)
_set_bit_flag¶
void native.misc._set_bit_flag(ptr int bit_flags, int flag)
Similar to SET_BIT but specifically designed for large (>32 flags) bit flag sets.
The flags are stored in an int array where each int has the ability to hold 32 flags.
Flags 0-31 would be stored in the first int, flags 32-63 in the second int, etc.
_clear_bit_flag¶
void native.misc._clear_bit_flag(ptr int bit_flags, int flag)
_clear_all_bit_flags¶
void native.misc._clear_all_bit_flags(ptr int bit_flags)
get_hash_key¶
int native.misc.get_hash_key(string string)
Computes a hash for the given string. It is hashed using Jenkins' One-at-a-Time hash algorithm (https://en.wikipedia.org/wiki/Jenkins_hash_function)
Note: this implementation is case-insensitive.
_get_easing_curve_value¶
float native.misc._get_easing_curve_value(float t, float b, float d, int easing_curve_type)
https://easings.net/
enum class eEasingCurveType
{
TYPE_LINEAR,
TYPE_QUADRATIC_IN,
TYPE_QUADRATIC_OUT,
TYPE_QUADRATIC_INOUT,
TYPE_CUBIC_IN,
TYPE_CUBIC_OUT,
TYPE_CUBIC_INOUT,
TYPE_QUARTIC_IN,
TYPE_QUARTIC_OUT,
TYPE_QUARTIC_INOUT,
TYPE_QUINTIC_IN,
TYPE_QUINTIC_OUT,
TYPE_QUINTIC_INOUT,
TYPE_EXPONENTIAL_IN,
TYPE_EXPONENTIAL_OUT,
TYPE_EXPONENTIAL_INOUT,
TYPE_SINE_IN,
TYPE_SINE_OUT,
TYPE_SINE_INOUT,
TYPE_CIRCULAR_IN,
TYPE_CIRCULAR_OUT,
TYPE_CIRCULAR_INOUT,
TYPE_BOUNCE_IN,
TYPE_BOUNCE_OUT,
TYPE_BOUNCE_INOUT,
TYPE_CUSTOM
};
is_position_occupied¶
bool native.misc.is_position_occupied(float x, float y, float z, float range, bool p4, bool p5, bool p6, bool p7, bool p8, int p9, bool p10)
clear_area¶
void native.misc.clear_area(float x, float y, float z, float radius, int flag)
_clear_volume_area¶
void native.misc._clear_volume_area(int volume, int flag)
clear_angled_area_of_vehicles¶
void native.misc.clear_angled_area_of_vehicles(int p0, int p1, int p2, int p3, int p4, int p5, int p6, int p7)
set_credits_active¶
void native.misc.set_credits_active(bool toggle)
network_set_script_is_safe_for_network_game¶
void native.misc.network_set_script_is_safe_for_network_game()
pause_death_arrest_restart¶
void native.misc.pause_death_arrest_restart(bool toggle)
ignore_next_restart¶
void native.misc.ignore_next_restart(bool toggle)
set_fade_in_after_death_arrest¶
void native.misc.set_fade_in_after_death_arrest(bool toggle)
set_fade_in_after_load¶
void native.misc.set_fade_in_after_load(bool toggle)
override_save_house¶
bool native.misc.override_save_house(bool override, float x, float y, float z, float heading, bool is_autosave, ref vec3 return_coords, ptr int return_heading)
shoot_single_bullet_between_coords¶
void native.misc.shoot_single_bullet_between_coords(float x1, float y1, float z1, float x2, float y2, float z2, int damage, bool p7, int weapon_hash, int owner_ped, bool is_audible, bool is_invisible, float speed, bool p13)
fire_single_bullet¶
void native.misc.fire_single_bullet(ptr int args)
get_model_dimensions¶
void native.misc.get_model_dimensions(int model_hash, ref vec3 minimum, ref vec3 maximum)
is_bit_set¶
bool native.misc.is_bit_set(int address, int offset)
_0x0a487cc74a517fb5¶
void native.misc._0x0a487cc74a517fb5(int p0)
is_minigame_in_progress¶
bool native.misc.is_minigame_in_progress()
should_use_metric_measurements¶
bool native.misc.should_use_metric_measurements()
_should_use_metric_measurements_2¶
bool native.misc._should_use_metric_measurements_2()
_should_use_metric_temperature¶
bool native.misc._should_use_metric_temperature()
_should_use_metric_weight¶
bool native.misc._should_use_metric_weight()
_should_use_24_hour_clock¶
bool native.misc._should_use_24_hour_clock()
compare_strings¶
int native.misc.compare_strings(string str1, string str2, bool match_case, int max_length)
absi¶
int native.misc.absi(int value)
absf¶
float native.misc.absf(float value)
is_projectile_in_area¶
bool native.misc.is_projectile_in_area(float x1, float y1, float z1, float x2, float y2, float z2, bool owned_by_player)
Determines whether there is a projectile within the specified coordinates. The coordinates form a rectangle.
ownedByPlayer = only projectiles fired by the player will be detected.
is_projectile_type_in_area¶
bool native.misc.is_projectile_type_in_area(float x_min, float y_min, float z_min, float x_max, float y_max, float z_max, int weapon_type, bool is_player)
Determines whether there is a projectile of a specific type within the specified coordinates. The coordinates form a rectangle.
is_projectile_type_in_angled_area¶
bool native.misc.is_projectile_type_in_angled_area(float p0, float p1, float p2, float p3, float p4, float p5, float p6, int p7, bool p8)
is_projectile_type_within_distance¶
bool native.misc.is_projectile_type_within_distance(float p0, float p1, float p2, int p3, float p4, bool p5)
get_coords_of_projectile_type_within_distance¶
bool native.misc.get_coords_of_projectile_type_within_distance(int ped, int weapon_hash, float distance, ref vec3 out_coords, bool p4, bool must_be_owned_by_this_ped)
get_projectile_of_projectile_type_within_distance¶
bool native.misc.get_projectile_of_projectile_type_within_distance(int ped, int weapon_hash, float distance, ref vec3 out_coords, ptr int out_projectile, bool p5, bool must_be_owned_by_this_ped)
is_bullet_in_angled_area¶
bool native.misc.is_bullet_in_angled_area(float p0, float p1, float p2, float p3, float p4, float p5, float p6, bool p7)
is_bullet_in_area¶
bool native.misc.is_bullet_in_area(float p0, float p1, float p2, float p3, bool p4)
is_bullet_in_box¶
bool native.misc.is_bullet_in_box(float p0, float p1, float p2, float p3, float p4, float p5, bool p6)
has_bullet_impacted_in_area¶
bool native.misc.has_bullet_impacted_in_area(float x, float y, float z, float p3, bool p4, bool p5)
has_bullet_impacted_in_box¶
bool native.misc.has_bullet_impacted_in_box(float p0, float p1, float p2, float p3, float p4, float p5, bool p6, bool p7)
_0x7a76104cc2cc69e8¶
int native.misc._0x7a76104cc2cc69e8(int entity, int p1, int p2)
_0xdc416ca762bc4f43¶
int native.misc._0xdc416ca762bc4f43(int p0, int p1, int p2, int p3, int p4, int p5)
_0x970339efa4fde518¶
int native.misc._0x970339efa4fde518(int p0, int p1, int p2)
is_orbis_version¶
bool native.misc.is_orbis_version()
is_durango_version¶
bool native.misc.is_durango_version()
is_pc_version¶
bool native.misc.is_pc_version()
is_stadia_version¶
bool native.misc.is_stadia_version()
is_string_null¶
bool native.misc.is_string_null(string string)
is_string_null_or_empty¶
bool native.misc.is_string_null_or_empty(string string)
is_string_null_or_empty_or_spaces¶
bool native.misc.is_string_null_or_empty_or_spaces(string string)
are_strings_equal¶
bool native.misc.are_strings_equal(string string1, string string2)
_does_string_exist_in_string¶
bool native.misc._does_string_exist_in_string(string string1, string string2)
_0x3c3c7b1b5ec08764¶
void native.misc._0x3c3c7b1b5ec08764()
_0x94e8ca3dee952789¶
int native.misc._0x94e8ca3dee952789(int p0, int p1)
_0x5b4a8121a47d844d¶
int native.misc._0x5b4a8121a47d844d(int p0)
string_to_int¶
bool native.misc.string_to_int(string string, ptr int out_integer)
Returns false if it's a null or empty string or if the string is too long. outInteger will be set to -999 in that case.
_int_to_string¶
void native.misc._int_to_string(int value, string format, string buffer)
_0x74aca66484cebaf0¶
void native.misc._0x74aca66484cebaf0(int p0)
_0x49c44fe78a135a1d¶
void native.misc._0x49c44fe78a135a1d(int p0)
_0xf650dcf5d6f312c1¶
void native.misc._0xf650dcf5d6f312c1(int p0)
_get_string_from_float¶
string native.misc._get_string_from_float(float value, int digits)
_get_string_from_vector¶
string native.misc._get_string_from_vector(float x, float y, float z)
_get_string_from_bool¶
string native.misc._get_string_from_bool(bool value)
_create_color_string¶
string native.misc._create_color_string(int rgb)
set_bits_in_range¶
void native.misc.set_bits_in_range(ptr int var, int range_start, int range_end, int p3)
get_bits_in_range¶
int native.misc.get_bits_in_range(int var, int range_start, int range_end)
set_game_paused¶
void native.misc.set_game_paused(bool toggle)
Make sure to call this from the correct thread if you're using multiple threads because all other threads except the one which is calling SET_GAME_PAUSED will be paused.
set_this_script_can_be_paused¶
void native.misc.set_this_script_can_be_paused(bool toggle)
set_this_script_can_remove_blips_created_by_any_script¶
void native.misc.set_this_script_can_remove_blips_created_by_any_script(bool toggle)
set_cheat_active¶
void native.misc.set_cheat_active(int cheat_id)
Cheats are GTA IV cheats:
0 = unknown
1 = unknown (same as 0)
2 = Max Health and Armor
3 = Raise Wanted Level
4 = Lower Wanted Level
5 = unknown (does nothing)
6 = Change Weather
7 = Spawn Annihilator
8 = Spawn NRG 900
9 = Spawn FBI
10 = Spawn Jetmax
11 = Spawn Comet
12 = Spawn Turismo
13 = Spawn Cognoscenti
14 = Spawn Super GT
15 = Spawn Sanchez
Initially used in Max Payne 3, that's why we know the name.
_0xb711eb4bc8d06013¶
void native.misc._0xb711eb4bc8d06013()
populate_now¶
void native.misc.populate_now()
is_game_session_state_machine_idle¶
bool native.misc.is_game_session_state_machine_idle()
_queue_savegame_operation¶
bool native.misc._queue_savegame_operation(int p0)
_get_status_of_savegame_operation¶
int native.misc._get_status_of_savegame_operation(int p0)
_0x6c7b68d3ce60e8de¶
int native.misc._0x6c7b68d3ce60e8de(int p0)
_0x627b68d9ce6ee8de¶
int native.misc._0x627b68d9ce6ee8de(int p0)
_0x7cf96f1250ef3221¶
int native.misc._0x7cf96f1250ef3221(int p0)
copy_script_struct¶
void native.misc.copy_script_struct(ptr int dst, ptr int src, int size)
enable_dispatch_service¶
void native.misc.enable_dispatch_service(int dispatch_service, bool toggle)
enum DispatchType
{
DT_Invalid,
DT_PoliceAutomobile,
DT_PoliceHelicopter,
DT_FireDepartment,
DT_SwatAutomobile,
DT_AmbulanceDepartment,
DT_PoliceRiders,
DT_PoliceVehicleRequest,
DT_PoliceRoadBlock,
DT_PoliceAutomobileWaitPulledOver,
DT_PoliceAutomobileWaitCruising,
DT_Gangs,
DT_SwatHelicopter,
DT_PoliceBoat,
DT_ArmyVehicle,
DT_OnFoot,
DT_PoliceDogs
};
block_dispatch_service_resource_creation¶
void native.misc.block_dispatch_service_resource_creation(int dispatch_service, bool toggle)
create_incident¶
bool native.misc.create_incident(int dispatch_service, float x, float y, float z, int num_units, float radius, ptr int out_incident_id, int p7, int p8)
_create_incident_with_entities¶
bool native.misc._create_incident_with_entities(int dispatch_service, float x, float y, float z, int item_set, float radius, ptr int out_incident_id)
delete_incident¶
void native.misc.delete_incident(int incident_id)
is_incident_valid¶
bool native.misc.is_incident_valid(int incident_id)
_set_incident_unk¶
void native.misc._set_incident_unk(int incident_id)
add_pop_multiplier_area¶
int native.misc.add_pop_multiplier_area(float x1, float y1, float z1, float x2, float y2, float z2, float ped_density, float traffic_density, bool p8, bool p9)
does_pop_multiplier_area_exist¶
bool native.misc.does_pop_multiplier_area_exist(int id)
remove_pop_multiplier_area¶
void native.misc.remove_pop_multiplier_area(int id, bool p1)
_add_pop_multiplier_volume¶
int native.misc._add_pop_multiplier_volume(int volume, float ped_density, float vehicle_density, bool p3, bool p4)
_does_pop_multiplier_area_exist_for_volume¶
bool native.misc._does_pop_multiplier_area_exist_for_volume(int volume)
_remove_pop_multiplier_area_for_volume¶
void native.misc._remove_pop_multiplier_area_for_volume(int volume, int p1)
_0xf569e33fb72ed28e¶
void native.misc._0xf569e33fb72ed28e()
reset_dispatch_ideal_spawn_distance¶
void native.misc.reset_dispatch_ideal_spawn_distance()
set_dispatch_ideal_spawn_distance¶
void native.misc.set_dispatch_ideal_spawn_distance(float f_ideal_spawn_distance)
_reset_dispatch_min_spawn_distance¶
void native.misc._reset_dispatch_min_spawn_distance()
_set_dispatch_min_spawn_distance¶
void native.misc._set_dispatch_min_spawn_distance(float min_spawn_distance)
_reset_dispatch_max_spawn_distance¶
void native.misc._reset_dispatch_max_spawn_distance()
_set_dispatch_max_spawn_distance¶
void native.misc._set_dispatch_max_spawn_distance(float max_spawn_distance)
_0x4b0501a468b749f8¶
void native.misc._0x4b0501a468b749f8()
_0x6bcf7b5cd338281a¶
void native.misc._0x6bcf7b5cd338281a(int p0, int p1, int p2)
_add_dispatch_spawn_blocking_area¶
int native.misc._add_dispatch_spawn_blocking_area(int volume)
remove_dispatch_spawn_blocking_area¶
void native.misc.remove_dispatch_spawn_blocking_area(int p0)
reset_wanted_response_num_peds_to_spawn¶
void native.misc.reset_wanted_response_num_peds_to_spawn()
add_tactical_nav_mesh_point¶
void native.misc.add_tactical_nav_mesh_point(float x, float y, float z, int p3)
clear_tactical_nav_mesh_points¶
void native.misc.clear_tactical_nav_mesh_points()
display_onscreen_keyboard¶
void native.misc.display_onscreen_keyboard(int text_type, string window_title, string p2, string default_text, string default_concat1, string default_concat2, string default_concat3, int max_input_length)
enum eOnscreenKeyboardTextType
{
KTEXTTYPE_INVALID = -1,
KTEXTTYPE_DEFAULT,
KTEXTTYPE_EMAIL,
KTEXTTYPE_PASSWORD,
KTEXTTYPE_NUMERIC,
KTEXTTYPE_ALPHABET,
KTEXTTYPE_GAMERTAG,
KTEXTTYPE_FILENAME,
KTEXTTYPE_COUNT
};
update_onscreen_keyboard¶
int native.misc.update_onscreen_keyboard()
Returns the current status of the onscreen keyboard, and updates the output.
Status Codes:
0 - User still editing
1 - User has finished editing
2 - User has canceled editing
3 - Keyboard isn't active
get_onscreen_keyboard_result¶
string native.misc.get_onscreen_keyboard_result()
cancel_onscreen_keyboard¶
void native.misc.cancel_onscreen_keyboard()
next_onscreen_keyboard_result_will_display_using_these_fonts¶
void native.misc.next_onscreen_keyboard_result_will_display_using_these_fonts(int font_bit_field)
action_manager_enable_action¶
void native.misc.action_manager_enable_action(int hash, bool enable)
action_manager_is_action_enabled¶
bool native.misc.action_manager_is_action_enabled(int hash)
get_real_world_time¶
int native.misc.get_real_world_time()
set_super_jump_this_frame¶
void native.misc.set_super_jump_this_frame(int player)
script_race_init¶
void native.misc.script_race_init(int num_checkpoints, int num_laps, int num_players, int p3)
script_race_shutdown¶
void native.misc.script_race_shutdown()
script_race_player_hit_checkpoint¶
void native.misc.script_race_player_hit_checkpoint(int part, int checkpoint, int lap, int time)
script_race_get_player_split_time¶
bool native.misc.script_race_get_player_split_time(int p0, ptr int p1, ptr int p2)
start_end_user_benchmark¶
void native.misc.start_end_user_benchmark()
Begins with START_*. Next character in the name is either D or E.
Old name: _START_BENCHMARK_RECORDING
stop_end_user_benchmark¶
void native.misc.stop_end_user_benchmark()
Begins with STOP_*. Next character in the name is either D or E.
Old name: _STOP_BENCHMARK_RECORDING
reset_end_user_benchmark¶
void native.misc.reset_end_user_benchmark()
Begins with RESET_*. Next character in the name is either D or E.
Old name: _RESET_BENCHMARK_RECORDING
save_end_user_benchmark¶
void native.misc.save_end_user_benchmark()
Saves the benchmark recording to %USERPROFILE%\Documents\Rockstar Games\Red Dead Redemption 2\Benchmarks and submits some metrics.
Old name: _SAVE_BENCHMARK_RECORDING
ui_started_end_user_benchmark¶
bool native.misc.ui_started_end_user_benchmark()
get_benchmark_iterations¶
int native.misc.get_benchmark_iterations()
Returns value of the '-benchmarkIterations' command line option.
Old name: _GET_BENCHMARK_ITERATIONS_FROM_COMMAND_LINE
get_benchmark_pass¶
int native.misc.get_benchmark_pass()
Returns value of the '-benchmarkPass' command line option.
Old name: _GET_BENCHMARK_PASS_FROM_COMMAND_LINE
_0xdc057b86fc157031¶
int native.misc._0xdc057b86fc157031()
_0x9a252aa23d7098f2¶
void native.misc._0x9a252aa23d7098f2()
_does_item_have_valid_base¶
bool native.misc._does_item_have_valid_base(int item)
_get_item_type¶
int native.misc._get_item_type(int handle)
0 = invalid
1 = CEntity
2 = rage::volBase
3 = rage::volSphere
4 = rage::volBox
5 = rage::volAggregate
6 = rage::volCylinder
7 = CScriptedCoverPoint
8 = rage::ptfxScriptInfo
9 = CPed
10 = CVehicle
11 = CObject
12 = CItemSet
13 = CPersistentCharacter
_is_base_a_persistent_character¶
bool native.misc._is_base_a_persistent_character(int handle)
_is_base_a_cover_point¶
bool native.misc._is_base_a_cover_point(int handle)
_0x553d67295ddd2309¶
void native.misc._0x553d67295ddd2309(int entity)
_get_volume_from_indexed_item¶
int native.misc._get_volume_from_indexed_item(int item)
_get_entity_from_item¶
int native.misc._get_entity_from_item(int item)
_get_ped_from_indexed_item¶
int native.misc._get_ped_from_indexed_item(int item)
_get_vehicle_from_indexed_item¶
int native.misc._get_vehicle_from_indexed_item(int item)
_get_object_from_indexed_item¶
int native.misc._get_object_from_indexed_item(int item)
_0x33982467b1e349ef¶
int native.misc._0x33982467b1e349ef(int p0, int p1, int p2, int p3, int p4, int p5, int p6)
_0x8314fc2013ece2da¶
int native.misc._0x8314fc2013ece2da(int p0, int p1, int p2)
_0x4d5c9cc7e7e23e09¶
void native.misc._0x4d5c9cc7e7e23e09()
register_interaction_lockon_prompt¶
bool native.misc.register_interaction_lockon_prompt(int entity, string text, float radius, float p3, int flag, float p5, float p6, int prompt, bool p8, int p9)
p3 is usually the same value of radius
p8 determines whether the ILO prompt is a lock on prompt with RMB
unregister_interaction_lockon_prompt¶
bool native.misc.unregister_interaction_lockon_prompt(int entity)
_0xfc6ecb9170145ece¶
void native.misc._0xfc6ecb9170145ece()
_0x35165c658077cd0b¶
int native.misc._0x35165c658077cd0b()
_0x4b101dbcc9482f2d¶
bool native.misc._0x4b101dbcc9482f2d(int ped)
_is_mission_creator_active¶
bool native.misc._is_mission_creator_active()
_0xa3a8926951471c82¶
void native.misc._0xa3a8926951471c82()
_create_ai_memory¶
void native.misc._create_ai_memory(ptr int args, int ai_memory_type)
_get_ai_ped_does_have_event_memory¶
bool native.misc._get_ai_ped_does_have_event_memory(ptr int args, int p1)
_0xeb946b9e579729ad¶
void native.misc._0xeb946b9e579729ad(int ped, int p1)
_set_ai_memory_reactions_enabled¶
void native.misc._set_ai_memory_reactions_enabled(bool enabled)
_0x8db104ccebcd58c5¶
int native.misc._0x8db104ccebcd58c5(int p0, int p1)
_0x68319452c5064aba¶
void native.misc._0x68319452c5064aba(int p0, int p1)
_0xde2c3b74d2b3705c¶
void native.misc._0xde2c3b74d2b3705c(int p0, int p1)
_0x49f3241c28ebbfbc¶
void native.misc._0x49f3241c28ebbfbc(int p0)
_0x183672fe838a661b¶
void native.misc._0x183672fe838a661b(ptr int data)
_0x38c0c9cae1544500¶
void native.misc._0x38c0c9cae1544500(int p0)
_0x154340e87d8cc178¶
void native.misc._0x154340e87d8cc178(int p0)
_0x94fcadcf9f0c368e¶
void native.misc._0x94fcadcf9f0c368e(int p0)
_0x0d0ae5081f88cfe1¶
bool native.misc._0x0d0ae5081f88cfe1(int p0)
_0xaf3a84c7de6a1dc5¶
void native.misc._0xaf3a84c7de6a1dc5(int p0, int p1)
_loot_tables_get_info¶
void native.misc._loot_tables_get_info(int ped, bool p1, bool p2, int loot_table_key, ptr int p4, int p5)
_0xb1f6665aa54dcd5c¶
int native.misc._0xb1f6665aa54dcd5c(int p0)
_0x8bb99b85444544d9¶
int native.misc._0x8bb99b85444544d9(int p0, int p1)
_0x6f02b5e50511721e¶
int native.misc._0x6f02b5e50511721e(int p0)
_0xcc1baf72d571db8d¶
int native.misc._0xcc1baf72d571db8d(int p0, int p1, int p2)
_is_ped_decomposed¶
bool native.misc._is_ped_decomposed(int ped)
set_ped_decomposed¶
void native.misc.set_ped_decomposed(int ped, bool toggle)
_0xab26deee120fd3fd¶
void native.misc._0xab26deee120fd3fd(int p0, int p1)
_0x082c043c7afc3747¶
void native.misc._0x082c043c7afc3747(int composite_id, bool p1)
disable_looting_composite_lootable_this_frame¶
void native.misc.disable_looting_composite_lootable_this_frame(int composite_id, bool p1)
_0xbb282cf5d2333fb8¶
void native.misc._0xbb282cf5d2333fb8(int p0, int p1)
_0xad44856a1cd29635¶
void native.misc._0xad44856a1cd29635(int p0, int p1, int p2)
_0x38c2bf94d15f464d¶
int native.misc._0x38c2bf94d15f464d(int p0)
_0x3a87fda8f1b6cdfb¶
void native.misc._0x3a87fda8f1b6cdfb(int p0, int p1, int p2)
_0x4647842fe8f31c1e¶
void native.misc._0x4647842fe8f31c1e(int p0, int p1)
_get_looting_event_has_fired¶
bool native.misc._get_looting_event_has_fired(int ped, string event_name)
_set_loot_pelt_satchel_item¶
void native.misc._set_loot_pelt_satchel_item(int ped, int item)
_0x96282005c5c6801f¶
void native.misc._0x96282005c5c6801f(int p0, int p1)
_0xf63fa29d4a9aca86¶
void native.misc._0xf63fa29d4a9aca86(int p0, int p1)
_0x8c0f6a3d7236deeb¶
void native.misc._0x8c0f6a3d7236deeb(int p0, int p1)
_0x7fa58ced69405f9a¶
void native.misc._0x7fa58ced69405f9a(int p0, int p1)
_0xa08111b053d84b4d¶
void native.misc._0xa08111b053d84b4d(int p0)
_is_global_block_valid¶
bool native.misc._is_global_block_valid(int index)
_set_global_block_is_loaded¶
void native.misc._set_global_block_is_loaded(int index, bool toggle)
game_framework_manager_init¶
bool native.misc.game_framework_manager_init(int transition_mode)
_game_framework_manager_shutdown¶
void native.misc._game_framework_manager_shutdown()
_game_framework_manager_get_mode¶
int native.misc._game_framework_manager_get_mode()
_is_player_owning_standalone_sp¶
bool native.misc._is_player_owning_standalone_sp()
_0x0358b8a41916c613¶
int native.misc._0x0358b8a41916c613(int p0, int p1, int p2, int p3)
_set_game_logic_paused¶
void native.misc._set_game_logic_paused()
stop_current_loading_progress_timer¶
void native.misc.stop_current_loading_progress_timer()
_0xdbda48ec456ed908¶
void native.misc._0xdbda48ec456ed908()