graphics

Methods

free_memory_for_mission_creator_photo

function native.graphics.free_memory_for_mission_creator_photo(): void

load_mission_creator_photo

function native.graphics.load_mission_creator_photo(p0: ptr int, p1: int, p2: int, p3: int): bool

get_status_of_load_mission_creator_photo

contentId: returned by NETWORK::_UGC_QUERY_GET_CREATOR_PHOTO(uVar0, 0, sParam3)

function native.graphics.get_status_of_load_mission_creator_photo(content_id: string): int

begin_take_high_quality_photo

function native.graphics.begin_take_high_quality_photo(): bool

get_status_of_take_high_quality_photo

function native.graphics.get_status_of_take_high_quality_photo(): int

free_memory_for_high_quality_photo

function native.graphics.free_memory_for_high_quality_photo(): void

_set_photo_self_stat

function native.graphics._set_photo_self_stat(p0: bool): void

_set_photo_studio_stat

function native.graphics._set_photo_studio_stat(p0: int): void

_set_posse_id_for_photo

function native.graphics._set_posse_id_for_photo(posse_id: int): void

_0x9f6d859c80708b26

function native.graphics._0x9f6d859c80708b26(p0: bool, p1: bool): void

is_photo_frame

function native.graphics.is_photo_frame(): bool

_set_photo_in_photomode_stat

function native.graphics._set_photo_in_photomode_stat(p0: bool): void

_set_photo_overlay_effect_stat

function native.graphics._set_photo_overlay_effect_stat(p0: int): void

_0x0d5b19c34068fee7

Gets set to 1 when GET_STATUS_OF_TAKE_HIGH_QUALITY_PHOTO = PHOTO_OPERATION_SUCCEEDED

function native.graphics._0x0d5b19c34068fee7(p0: int): void

_set_player_appear_in_photo

function native.graphics._set_player_appear_in_photo(player: int): void

_set_region_photo_taken_stat

function native.graphics._set_region_photo_taken_stat(p0: string): void

_set_district_photo_taken_stat

function native.graphics._set_district_photo_taken_stat(p0: string): void

_set_state_photo_taken_stat

function native.graphics._set_state_photo_taken_stat(p0: string): void

save_high_quality_photo

function native.graphics.save_high_quality_photo(unused: int): bool

get_status_of_save_high_quality_photo

0 = succeeded 1 = getting status 2 = failed

function native.graphics.get_status_of_save_high_quality_photo(): int

begin_create_low_quality_copy_of_photo

Called together with FREE_MEMORY_FOR_LOW_QUALITY_PHOTO

function native.graphics.begin_create_low_quality_copy_of_photo(p0: int): bool

get_status_of_create_low_quality_copy_of_photo

Old name: _GET_STATUS_OF_DRAW_LOW_QUALITY_PHOTO

function native.graphics.get_status_of_create_low_quality_copy_of_photo(p0: int): int

free_memory_for_low_quality_photo

function native.graphics.free_memory_for_low_quality_photo(): void

draw_low_quality_photo_to_phone

nullsub, doesn't do anything (GTA5 leftover, there is no phone in RDR3)

function native.graphics.draw_low_quality_photo_to_phone(p0: bool, photo_rotation: int): void

_get_max_number_of_local_photos

Always returns 200.

function native.graphics._get_max_number_of_local_photos(): int

_get_current_number_of_local_photos

function native.graphics._get_current_number_of_local_photos(): int

queue_operation_to_create_sorted_list_of_photos

function native.graphics.queue_operation_to_create_sorted_list_of_photos(): int

get_status_of_sorted_list_operation

0 = succeeded 1 = getting status 2 = failed

function native.graphics.get_status_of_sorted_list_operation(): int

draw_light_with_range

function native.graphics.draw_light_with_range(pos_x: float, pos_y: float, pos_z: float, color_r: int, color_g: int, color_b: int, range: float, intensity: float): void

update_lights_on_entity

function native.graphics.update_lights_on_entity(entity: int): void

_set_lights_color_for_entity

function native.graphics._set_lights_color_for_entity(entity: int, red: int, green: int, blue: int): void

_set_lights_intensity_for_entity

function native.graphics._set_lights_intensity_for_entity(entity: int, intensity: float): void

_set_lights_type_for_entity

type must be less than or equal to 20

function native.graphics._set_lights_type_for_entity(entity: int, type: int): void

_draw_marker

function native.graphics._draw_marker(type: int, pos_x: float, pos_y: float, pos_z: float, dir_x: float, dir_y: float, dir_z: float, rot_x: float, rot_y: float, rot_z: float, scale_x: float, scale_y: float, scale_z: float, red: int, green: int, blue: int, alpha: int, bob_up_and_down: bool, face_camera: bool, p19: int, rotate: bool, texture_dict: string, texture_name: string, draw_on_ents: bool): void

create_checkpoint_with_namehash

function native.graphics.create_checkpoint_with_namehash(type_hash: int, pos_x1: float, pos_y1: float, pos_z1: float, pos_x2: float, pos_y2: float, pos_z2: float, radius: float, red: int, green: int, blue: int, alpha: int, reserved: int): int

_does_checkpoint_have_fx

function native.graphics._does_checkpoint_have_fx(checkpoint: int): bool

set_checkpoint_rgba

Sets the checkpoint color.

function native.graphics.set_checkpoint_rgba(checkpoint: int, red: int, green: int, blue: int, alpha: int): void

set_checkpoint_rgba2

Sets the checkpoint icon color.

function native.graphics.set_checkpoint_rgba2(checkpoint: int, red: int, green: int, blue: int, alpha: int): void

_0xcc3b787e73e64160

function native.graphics._0xcc3b787e73e64160(p0: int, p1: int, p2: int, p3: int, p4: int): void

_0x171c18e994c1a395

function native.graphics._0x171c18e994c1a395(p0: int, p1: int, p2: int, p3: int, p4: int): void

delete_checkpoint

function native.graphics.delete_checkpoint(checkpoint: int): void

draw_rect

Draws a rectangle on the screen.

-x: The relative X point of the center of the rectangle. (0.0-1.0, 0.0 is the left edge of the screen, 1.0 is the right edge of the screen)

-y: The relative Y point of the center of the rectangle. (0.0-1.0, 0.0 is the top edge of the screen, 1.0 is the bottom edge of the screen)

-width: The relative width of the rectangle. (0.0-1.0, 1.0 means the whole screen width)

-height: The relative height of the rectangle. (0.0-1.0, 1.0 means the whole screen height)

-R: Red part of the color. (0-255)

-G: Green part of the color. (0-255)

-B: Blue part of the color. (0-255)

-A: Alpha part of the color. (0-255, 0 means totally transparent, 255 means totally opaque)

function native.graphics.draw_rect(x: float, y: float, width: float, height: float, red: int, green: int, blue: int, alpha: int, p8: bool, p9: bool): void

set_script_gfx_draw_behind_pausemenu

Sets a flag defining whether or not script draw commands should continue being drawn behind the pause menu. This is usually used for draw commands that are used with a world render target.

function native.graphics.set_script_gfx_draw_behind_pausemenu(toggle: bool): void

set_script_gfx_draw_order

Sets the draw order for script draw commands.

function native.graphics.set_script_gfx_draw_order(draw_order: int): void

draw_sprite

Draws a 2D sprite on the screen.

Parameters: textureDict - Name of texture dictionary to load texture from

textureName - Name of texture to load from texture dictionary

screenX/Y - Screen offset (0.5 = center) scaleX/Y - Texture scaling. Negative values can be used to flip the texture on that axis. (0.5 = half)

heading - Texture rotation in degrees (default = 0.0) positive is clockwise, measured in degrees

red,green,blue - Sprite color (default = 255/255/255)

alpha - opacity level

https://github.com/femga/rdr3_discoveries/tree/master/useful_info_from_rpfs/textures

function native.graphics.draw_sprite(texture_dict: string, texture_name: string, screen_x: float, screen_y: float, width: float, height: float, heading: float, red: int, green: int, blue: int, alpha: int, p11: bool): void

attach_tv_audio_to_entity

function native.graphics.attach_tv_audio_to_entity(entity: int): void

set_tv_audio_frontend

Probably changes tvs from being a 3d audio to being "global" audio

function native.graphics.set_tv_audio_frontend(toggle: bool): void

get_screen_resolution

Hardcoded to always set x to 1280 and y to 720.

function native.graphics.get_screen_resolution(x: ptr int, y: ptr int): void

_0xa04ef43030593abc

function native.graphics._0xa04ef43030593abc(p0: int, p1: int): void

_0xa21af60c9f99ccc5

function native.graphics._0xa21af60c9f99ccc5(): void

_0xc28f62ac9774fc1b

function native.graphics._0xc28f62ac9774fc1b(): int

_0xeb48ce48eec41fd4

function native.graphics._0xeb48ce48eec41fd4(p0: int): void

get_screen_coord_from_world_coord

function native.graphics.get_screen_coord_from_world_coord(world_x: float, world_y: float, world_z: float, screen_x: ptr int, screen_y: ptr int): bool

_is_texture_in_dict

function native.graphics._is_texture_in_dict(txd_hash: int, dict: int): bool

set_artificial_lights_state

Does not affect weapons, particles, fire/explosions, flashlights or the sun. When set to true, all emissive textures (including ped components that have light effects), street lights, building lights, vehicle lights, etc will all be turned off.

state: True turns off all artificial light sources in the map: buildings, street lights, car lights, etc. False turns them back on.

function native.graphics.set_artificial_lights_state(state: bool): void

disable_hdtex_this_frame

function native.graphics.disable_hdtex_this_frame(): void

_0x1a9f09ab458d49c6

Used in shop scripts for CATALOG_BOOK false = Normal -> CATALOG_BOOK_SHUTDOWN true = Trees flickering? -> CATALOG_BOOK_OPEN

function native.graphics._0x1a9f09ab458d49c6(p0: bool): void

create_tracked_point

Creates a tracked point, useful for checking the visibility of a 3D point on screen.

function native.graphics.create_tracked_point(): int

set_tracked_point_info

function native.graphics.set_tracked_point_info(point: int, x: float, y: float, z: float, radius: float): void

is_tracked_point_visible

function native.graphics.is_tracked_point_visible(point: int): bool

_0xdfe332a5da6fe7c9

Returns iNumPixels, iPixelsVisible

function native.graphics._0xdfe332a5da6fe7c9(i_tracked_point: int): int

destroy_tracked_point

function native.graphics.destroy_tracked_point(point: int): void

_is_tracked_point_valid

function native.graphics._is_tracked_point_valid(point: int): bool

set_grass_cull_sphere

Returns handle to be used with REMOVE_GRASS_CULL_SPHERE

function native.graphics.set_grass_cull_sphere(x: float, y: float, z: float, p3: float, p4: int): int

remove_grass_cull_sphere

function native.graphics.remove_grass_cull_sphere(handle: int): void

_add_veg_modifier_zone

Adds Vegetation Blocking Zone, Added Snow Flattening veg mod Zone Returns veg modifier handle

function native.graphics._add_veg_modifier_zone(volume: int, p1: int, flags: int, p3: int): int

add_veg_modifier_sphere

Returns veg modifier handle

function native.graphics.add_veg_modifier_sphere(x: float, y: float, z: float, radius: float, mod_type: int, flags: int, p6: int): int

remove_veg_modifier_sphere

function native.graphics.remove_veg_modifier_sphere(veg_modifier_handle: int, p1: int): void

_enable_static_veg_modifier

function native.graphics._enable_static_veg_modifier(p0: int): void

_disable_static_veg_modifier

function native.graphics._disable_static_veg_modifier(p0: int): void

_is_static_veg_modifier_enabled

function native.graphics._is_static_veg_modifier_enabled(p0: int): bool

_0xec3f7f24eeeb3ba3

function native.graphics._0xec3f7f24eeeb3ba3(): void

_0x9f158a49b0d84c3c

function native.graphics._0x9f158a49b0d84c3c(p0: int): void

_0x910e260aead855de

function native.graphics._0x910e260aead855de(): void

_create_swatch_texture_dict

function native.graphics._create_swatch_texture_dict(slots: int): bool

_destroy_swatch_texture_dict

function native.graphics._destroy_swatch_texture_dict(): void

_generate_swatch_texture_directly

function native.graphics._generate_swatch_texture_directly(slot: int, p1: int): void

_generate_swatch_texture

Example: local hash = GetHashKey("CLOTHING_ITEM_M_EYES_001_TINT_001") _GENERATE_SWATCH_TEXTURE(0, hash, 0, true) metapedType: see 0xEC9A1261BF0CE510

function native.graphics._generate_swatch_texture(slot_id: int, component_hash: int, metaped_type: int, p3: bool): void

cascade_shadows_set_cascade_bounds

function native.graphics.cascade_shadows_set_cascade_bounds(p0: int, p1: bool, p2: float, p3: float, p4: float, p5: float, p6: bool, p7: float): void

cascade_shadows_enable_entity_tracker

When this is set to ON, shadows only draw as you get nearer.

When OFF, they draw from a further distance.

function native.graphics.cascade_shadows_enable_entity_tracker(toggle: bool): void

cascade_shadows_set_shadow_sample_type

Possible values: "CSM_ST_POINT" "CSM_ST_LINEAR" "CSM_ST_BOX3x3" "CSM_ST_BOX4x4" "CSM_ST_DITHER2_LINEAR" "CSM_ST_CUBIC" "CSM_ST_POISSON16" "CSM_ST_SOFT8" "CSM_ST_SOFT16" "CSM_ST_SOFT32" "CSM_ST_DITHER16_RPDB" "CSM_ST_POISSON16_RPDB_GNORM" "CSM_ST_HIGHRES_BOX4x4" "CSM_ST_ESM"

function native.graphics.cascade_shadows_set_shadow_sample_type(type: string): void

cascade_shadows_clear_shadow_sample_type

function native.graphics.cascade_shadows_clear_shadow_sample_type(): void

_0x503941f65dba24ec

function native.graphics._0x503941f65dba24ec(p0: int): void

_0x815653a42c5abe76

function native.graphics._0x815653a42c5abe76(): void

_0xff8018c778349234

function native.graphics._0xff8018c778349234(p0: int): void

reset_adaptation

Sets an unknown value related to timecycles.

function native.graphics.reset_adaptation(unk: int): void

toggle_paused_renderphases

function native.graphics.toggle_paused_renderphases(toggle: bool): void

get_toggle_paused_renderphases_status

function native.graphics.get_toggle_paused_renderphases_status(): bool

reset_paused_renderphases

function native.graphics.reset_paused_renderphases(): void

set_hidof_override

Old name: _SET_HIDOF_ENV_BLUR_PARAMS

function native.graphics.set_hidof_override(p0: bool, p1: bool, p2: float, p3: float, p4: float, p5: float): void

_0x21f00e08cbb5f37b

Params: component - used in odriscolls1 and sean1 R* SP Script: COMPONENT_BINOCULARS_SCOPE01 Triggers the binocular scaleform

function native.graphics._0x21f00e08cbb5f37b(component: string): void

_0x5ac6e0fa028369de

Closes the the binocular scaleform

function native.graphics._0x5ac6e0fa028369de(): void

_0xec3d8c228fe553d7

function native.graphics._0xec3d8c228fe553d7(p0: bool): bool

_0xf5793bb386e1ff9c

function native.graphics._0xf5793bb386e1ff9c(p0: int): void

_0x5cd6a2cce5087161

function native.graphics._0x5cd6a2cce5087161(p0: int): void

_0xc8d0611d9a0cf5d3

function native.graphics._0xc8d0611d9a0cf5d3(p0: int): void

_get_photo_mode_exposure

function native.graphics._get_photo_mode_exposure(): float

_0x62b9f9a1272aed80

function native.graphics._0x62b9f9a1272aed80(p0: int): void

_get_photo_mode_contrast

function native.graphics._get_photo_mode_contrast(): float

_0x9229ed770975bd9e

function native.graphics._0x9229ed770975bd9e(): void

start_particle_fx_non_looped_at_coord

function native.graphics.start_particle_fx_non_looped_at_coord(effect_name: string, x_pos: float, y_pos: float, z_pos: float, x_rot: float, y_rot: float, z_rot: float, scale: float, x_axis: bool, y_axis: bool, z_axis: bool): bool

start_networked_particle_fx_non_looped_at_coord

function native.graphics.start_networked_particle_fx_non_looped_at_coord(effect_name: string, x_pos: float, y_pos: float, z_pos: float, x_rot: float, y_rot: float, z_rot: float, scale: float, x_axis: bool, y_axis: bool, z_axis: bool): bool

start_particle_fx_non_looped_on_ped_bone

function native.graphics.start_particle_fx_non_looped_on_ped_bone(effect_name: string, ped: int, offset_x: float, offset_y: float, offset_z: float, rot_x: float, rot_y: float, rot_z: float, bone_index: int, scale: float, axis_x: bool, axis_y: bool, axis_z: bool): bool

start_particle_fx_non_looped_on_entity

function native.graphics.start_particle_fx_non_looped_on_entity(effect_name: string, entity: int, offset_x: float, offset_y: float, offset_z: float, rot_x: float, rot_y: float, rot_z: float, scale: float, axis_x: bool, axis_y: bool, axis_z: bool): bool

start_networked_particle_fx_non_looped_on_entity

function native.graphics.start_networked_particle_fx_non_looped_on_entity(effect_name: string, entity: int, offset_x: float, offset_y: float, offset_z: float, rot_x: float, rot_y: float, rot_z: float, scale: float, axis_x: bool, axis_y: bool, axis_z: bool): bool

_start_particle_fx_non_looped_on_ped_bone_2

function native.graphics._start_particle_fx_non_looped_on_ped_bone_2(effect_name: string, ped: int, offset_x: float, offset_y: float, offset_z: float, rot_x: float, rot_y: float, rot_z: float, bone_index: int, scale: float, axis_x: bool, axis_y: bool, axis_z: bool): bool

set_particle_fx_non_looped_colour

function native.graphics.set_particle_fx_non_looped_colour(r: float, g: float, b: float): void

set_particle_fx_non_looped_alpha

function native.graphics.set_particle_fx_non_looped_alpha(alpha: float): void

_set_particle_fx_non_looped_emitter_scale

function native.graphics._set_particle_fx_non_looped_emitter_scale(p0: float, p1: float, p2: float): void

start_particle_fx_looped_at_coord

function native.graphics.start_particle_fx_looped_at_coord(effect_name: string, x: float, y: float, z: float, x_rot: float, y_rot: float, z_rot: float, scale: float, x_axis: bool, y_axis: bool, z_axis: bool, p11: bool): int

start_particle_fx_looped_on_ped_bone

function native.graphics.start_particle_fx_looped_on_ped_bone(effect_name: string, ped: int, x_offset: float, y_offset: float, z_offset: float, x_rot: float, y_rot: float, z_rot: float, bone_index: int, scale: float, x_axis: bool, y_axis: bool, z_axis: bool): int

start_particle_fx_looped_on_entity

function native.graphics.start_particle_fx_looped_on_entity(effect_name: string, entity: int, x_offset: float, y_offset: float, z_offset: float, x_rot: float, y_rot: float, z_rot: float, scale: float, x_axis: bool, y_axis: bool, z_axis: bool): int

start_particle_fx_looped_on_entity_bone

function native.graphics.start_particle_fx_looped_on_entity_bone(effect_name: string, entity: int, x_offset: float, y_offset: float, z_offset: float, x_rot: float, y_rot: float, z_rot: float, bone_index: int, scale: float, x_axis: bool, y_axis: bool, z_axis: bool): int

start_networked_particle_fx_looped_on_entity

function native.graphics.start_networked_particle_fx_looped_on_entity(effect_name: string, entity: int, x_offset: float, y_offset: float, z_offset: float, x_rot: float, y_rot: float, z_rot: float, scale: float, x_axis: bool, y_axis: bool, z_axis: bool): int

start_networked_particle_fx_looped_on_entity_bone

function native.graphics.start_networked_particle_fx_looped_on_entity_bone(effect_name: string, entity: int, x_offset: float, y_offset: float, z_offset: float, x_rot: float, y_rot: float, z_rot: float, bone_index: int, scale: float, x_axis: bool, y_axis: bool, z_axis: bool): int

stop_particle_fx_looped

function native.graphics.stop_particle_fx_looped(ptfx_handle: int, p1: bool): void

does_particle_fx_looped_exist

function native.graphics.does_particle_fx_looped_exist(ptfx_handle: int): bool

set_particle_fx_looped_offsets

function native.graphics.set_particle_fx_looped_offsets(ptfx_handle: int, x: float, y: float, z: float, rot_x: float, rot_y: float, rot_z: float): void

set_particle_fx_looped_evolution

function native.graphics.set_particle_fx_looped_evolution(ptfx_handle: int, property_name: string, amount: float, no_network: bool): void

set_particle_fx_looped_colour

function native.graphics.set_particle_fx_looped_colour(ptfx_handle: int, r: float, g: float, b: float, p4: bool): void

set_particle_fx_looped_alpha

function native.graphics.set_particle_fx_looped_alpha(ptfx_handle: int, alpha: float): void

set_particle_fx_looped_scale

function native.graphics.set_particle_fx_looped_scale(ptfx_handle: int, scale: float): void

set_particle_fx_looped_far_clip_dist

function native.graphics.set_particle_fx_looped_far_clip_dist(ptfx_handle: int, range: float): void

_set_particle_fx_looped_update_distant_smoke

_SET_PARTICLE_FX_LOOPED_FA* - _SET_PARTICLE_FX_LOOPED_OF*

function native.graphics._set_particle_fx_looped_update_distant_smoke(ptfx_handle: int, scalar: float): void

remove_particle_fx

function native.graphics.remove_particle_fx(ptfx_handle: int, p1: bool): void

remove_particle_fx_from_entity

function native.graphics.remove_particle_fx_from_entity(entity: int): void

remove_particle_fx_in_range

function native.graphics.remove_particle_fx_in_range(x: float, y: float, z: float, radius: float): void

use_particle_fx_asset

fxName: see data_0/data/effects/ptfx/fxlists/

function native.graphics.use_particle_fx_asset(fx_name: string): void

set_particle_fx_override

function native.graphics.set_particle_fx_override(old_asset: string, new_asset: string): void

reset_particle_fx_override

Resets the effect of SET_PARTICLE_FX_OVERRIDE

function native.graphics.reset_particle_fx_override(name: string): void

_0x4fb67d172c4476f3

p1: AMB_ANN_COAL_CHUTE_DIVE, AMB_ANN_COAL_CHUTE p2: EMIT p3: either 0.0f or 1.0f

function native.graphics._0x4fb67d172c4476f3(entity: int, p1: string, p2: string, p3: float): void

set_particle_fx_ambient_colour

Related to Campfires. p1: AMB_BONFIRE_MP, AMB_CAMPFIRE_LRG_MP

function native.graphics.set_particle_fx_ambient_colour(entity: int, p1: string, r: float, g: float, b: float): void

_0xd1472aff30c103d6

Only used in R* Script nb_stalking_hunter

function native.graphics._0xd1472aff30c103d6(p0: float): void

set_particle_fx_bullet_impact_scale

function native.graphics.set_particle_fx_bullet_impact_scale(scale: float): void

set_particle_fx_bullet_impact_lodrange_scale

function native.graphics.set_particle_fx_bullet_impact_lodrange_scale(p0: float): void

_set_sniper_glints_enabled

function native.graphics._set_sniper_glints_enabled(enabled: bool): void

set_particle_fx_foot_lodrange_scale

function native.graphics.set_particle_fx_foot_lodrange_scale(p0: float): void

_0x4046493d2eeaca0e

DISABLE*

function native.graphics._0x4046493d2eeaca0e(): void

set_pickup_light

https://imgur.com/a/I2swSDJ

Old name: _SET_PICKUP_OBJECT_GLOW_ENABLED

function native.graphics.set_pickup_light(object: int, toggle: bool): void

_block_pickup_object_light

function native.graphics._block_pickup_object_light(pickup_object: int, toggle: bool): void

block_pickup_placement_light

function native.graphics.block_pickup_placement_light(pickup: int, toggle: bool): void

allow_pickup_light_sync

function native.graphics.allow_pickup_light_sync(pickup_object: int, allow: bool): void

_set_pearlescent_fx_enabled

Enables/disables a kind of 'shiny' effect on metals.

function native.graphics._set_pearlescent_fx_enabled(object: int, toggle: bool): void

remove_decals_in_range

Removes all decals in range from a position, it includes the bullet holes, blood pools, petrol...

function native.graphics.remove_decals_in_range(x: float, y: float, z: float, range: float): void

remove_decals_from_object

function native.graphics.remove_decals_from_object(obj: int): void

add_decal

function native.graphics.add_decal(p0: int, p1: int, p2: int, p3: int, p4: int, p5: int, p6: int, p7: int, p8: int, p9: int, p10: int, p11: int, p12: int, p13: int, p14: int, p15: int, p16: int, p17: int, p18: int, p19: int, p20: int, p21: int): int

_add_blood_pool

https://i.imgur.com/ULQU9US.jpg More rounded and small puddle

function native.graphics._add_blood_pool(x: float, y: float, z: float, unused: bool): void

_add_blood_pool_2

https://i.imgur.com/rPITUCV.jpg More customizable and more like quadrants

function native.graphics._add_blood_pool_2(x: float, y: float, z: float, p3: float, size: float, p5: float, permanent: bool, p7: float, p8: bool): void

_add_blood_pools_for_ped

Creates blood pools for the given ped in some interval for a few seconds.

function native.graphics._add_blood_pools_for_ped(ped: int): void

_add_blood_pools_for_ped_with_params

function native.graphics._add_blood_pools_for_ped_with_params(ped: int, p1: float, size: float, p3: float): void

start_petrol_trail_decals

function native.graphics.start_petrol_trail_decals(p0: int, p1: int): void

add_petrol_trail_decal_info

function native.graphics.add_petrol_trail_decal_info(x: float, y: float, z: float, p3: float): void

end_petrol_trail_decals

function native.graphics.end_petrol_trail_decals(): void

_0xe63d68f455ca0b47

function native.graphics._0xe63d68f455ca0b47(p0: int, p1: int, p2: int, p3: int, p4: int, p5: int, p6: int): int

remove_decal

function native.graphics.remove_decal(decal: int): void

is_decal_alive

function native.graphics.is_decal_alive(decal: int): bool

set_disable_petrol_decals_igniting_this_frame

function native.graphics.set_disable_petrol_decals_igniting_this_frame(): void

_0xb032c085d9a03907

_SET_D* or _SET_E*

function native.graphics._0xb032c085d9a03907(): void

_0xfb680a9b33d0edbe

DISABLE*

function native.graphics._0xfb680a9b33d0edbe(p0: bool): void

_0x41f88a85a579a61d

Used in CREATE_BEZIER_BLOOD_TRAIL_OF_TYPE

function native.graphics._0x41f88a85a579a61d(p0: float): void

_blood_trail_for_waypoint

p1: 0.3f in R* Scripts

function native.graphics._blood_trail_for_waypoint(waypoint_recording: string, p1: float): void

_add_blood_trail_point

function native.graphics._add_blood_trail_point(x: float, y: float, z: float): void

_0x812c1563185c6fb2

Used in CREATE_BEZIER_BLOOD_TRAIL_OF_TYPE ENABLE*

function native.graphics._0x812c1563185c6fb2(): void

_0x4bd66b4e3427689b

Used in CREATE_BEZIER_BLOOD_TRAIL_OF_TYPE

function native.graphics._0x4bd66b4e3427689b(p0: string): void

_add_blood_trail_splat

function native.graphics._add_blood_trail_splat(x: float, y: float, z: float): void

_0xf2f543d48f319a3a

function native.graphics._0xf2f543d48f319a3a(): void

_0x1460b644397453eb

RESET*

function native.graphics._0x1460b644397453eb(): void

_disable_far_artificial_lights

Only used in guama1 R* Script Disables lod/distant lights when BOOL is set to true

function native.graphics._disable_far_artificial_lights(disable: bool): void

_0x453d16d41fc51d3e

function native.graphics._0x453d16d41fc51d3e(p0: bool): void

_0xc06f2f45a73eabcd

Used in NET_CAMP_SPIRIT_ANIMAL_CLEAR_ANIMAL_VISIBILITY

function native.graphics._0xc06f2f45a73eabcd(entity: int): void

set_timecycle_modifier

function native.graphics.set_timecycle_modifier(modifier_name: string): void

set_timecycle_modifier_strength

function native.graphics.set_timecycle_modifier_strength(strength: float): void

set_transition_timecycle_modifier

function native.graphics.set_transition_timecycle_modifier(modifier_name: string, transition_blend: float): void

set_transition_out_of_timecycle_modifier

function native.graphics.set_transition_out_of_timecycle_modifier(strength: float): void

clear_timecycle_modifier

function native.graphics.clear_timecycle_modifier(): void

get_timecycle_modifier_index

function native.graphics.get_timecycle_modifier_index(): int

get_timecycle_transition_modifier_index

function native.graphics.get_timecycle_transition_modifier_index(): int

_0x67b0778c62e74423

function native.graphics._0x67b0778c62e74423(p0: int): void

_0x6c03118e9e5c1a14

function native.graphics._0x6c03118e9e5c1a14(p0: int): void

_get_modified_visibility_distance

_GET_C* - _GET_E*

function native.graphics._get_modified_visibility_distance(): float

enable_moon_cycle_override

Old name: _ENABLE_EXTRA_TIMECYCLE_MODIFIER_STRENGTH

function native.graphics.enable_moon_cycle_override(strength: float): void

set_tv_channel

function native.graphics.set_tv_channel(channel: int): void

get_tv_channel

function native.graphics.get_tv_channel(): int

set_tv_volume

function native.graphics.set_tv_volume(volume: float): void

draw_tv_channel

function native.graphics.draw_tv_channel(x_pos: float, y_pos: float, x_scale: float, y_scale: float, rotation: float, red: int, green: int, blue: int, alpha: int): void

set_tv_channel_playlist

function native.graphics.set_tv_channel_playlist(tv_channel: int, playlist_name: string, restart: bool): void

is_tvshow_currently_playing

Old name: _IS_TV_PLAYLIST_ITEM_PLAYING

function native.graphics.is_tvshow_currently_playing(video_cliphash: int): bool

_0x5c674eb487891f6b

function native.graphics._0x5c674eb487891f6b(): int

enable_movie_subtitles

nullsub, doesn't do anything

function native.graphics.enable_movie_subtitles(toggle: bool): void

_0x32de2bffda43e62a

function native.graphics._0x32de2bffda43e62a(): void

_0xd543487a1f12828f

function native.graphics._0xd543487a1f12828f(p0: int, p1: int, p2: int, p3: int): void

_0xd9bc98b55bcfaa9b

function native.graphics._0xd9bc98b55bcfaa9b(p0: int): void

_0x48fe0db54045b975

function native.graphics._0x48fe0db54045b975(p0: int, p1: int, p2: int, p3: int, p4: int, p5: int, p6: int): void

_0x735762e8d7573e42

function native.graphics._0x735762e8d7573e42(p0: int, p1: int, p2: int): void

_0x981c7d863980fa51

function native.graphics._0x981c7d863980fa51(): void

_animpostfx_preload_postfx

function native.graphics._animpostfx_preload_postfx(effect_name: string): void

_animpostfx_has_loaded

function native.graphics._animpostfx_has_loaded(effect_name: string): bool

_animpostfx_set_to_unload

function native.graphics._animpostfx_set_to_unload(effect_name: string): void

animpostfx_play

function native.graphics.animpostfx_play(effect_name: string): void

_animpostfx_play_timed

function native.graphics._animpostfx_play_timed(effect_name: string, duration: int): void

animpostfx_stop

function native.graphics.animpostfx_stop(effect_name: string): void

_0x26dd2fb0a88cc412

effectName2, p2 and p3 are unused

ANIMPOSTFX_*

function native.graphics._0x26dd2fb0a88cc412(effect_name: string, effect_name2: string, p2: int, p3: int): void

_animpostfx_clear_effect

function native.graphics._animpostfx_clear_effect(effect_name: string): void

animpostfx_is_running

function native.graphics.animpostfx_is_running(effect_name: string): bool

_animpostfx_is_tag_playing

function native.graphics._animpostfx_is_tag_playing(effect_name: string): bool

animpostfx_stop_all

function native.graphics.animpostfx_stop_all(): void

_animpostfx_stop_tag

function native.graphics._animpostfx_stop_tag(effect_name: string): void

_animpostfx_set_strength

must be called after ANIMPOSTFX_PLAY, strength 0.0f - 1.0f

function native.graphics._animpostfx_set_strength(effect_name: string, strength: float): void

_animpostfx_set_potency

Health Core Effect Filter Potency: p1 = 1 Stamina Core Effect Filter Potency: p1 = 2 Multiple Core Effect Filter Potency: p1 = 3

function native.graphics._animpostfx_set_potency(effect_name: string, p1: int, potency: float): void

_animpostfx_set_postfx_color

function native.graphics._animpostfx_set_postfx_color(effect_name: string, p1: int, red: int, green: int, blue: int, alpha: int): void

_0xb958d97a0dfaa0c2

ANIMPOSTFX_*

function native.graphics._0xb958d97a0dfaa0c2(effect_name: string): bool

_0xa201a3d0ac087c37

ANIMPOSTFX_*

function native.graphics._0xa201a3d0ac087c37(effect_name: string): void

_0xfbf161fcfec8589e

ANIMPOSTFX_*

function native.graphics._0xfbf161fcfec8589e(effect_name: string, p1: int, p2: bool, p3: ptr int): bool

_animpostfx_get_stackhash

Known effects: MP_Trans_SceneToPhoto MP_Trans_WinLose SpectateFilter MP_CharacterCreatorPhoto MP_Trans_PhotoToScene InterrogationHit

function native.graphics._animpostfx_get_stackhash(effect_name: string): int

_animpostfx_preload_postfx_by_stackhash

function native.graphics._animpostfx_preload_postfx_by_stackhash(effect_name_hash: int): void

animpostfx_is_preloading_by_stackhash

function native.graphics.animpostfx_is_preloading_by_stackhash(effect_name_hash: int): bool

_0x38d9d50f2085e9b3

ANIMPOSTFX_*

function native.graphics._0x38d9d50f2085e9b3(effect_name_hash: int): void

_animpostfx_play_tag

function native.graphics._animpostfx_play_tag(effect_name_hash: int): void

_0xc76fc4c2fc5f4405

ANIMPOSTFX_*

function native.graphics._0xc76fc4c2fc5f4405(effect_name_hash: int): void

_animpostfx_stop_stackhash_postfx

function native.graphics._animpostfx_stop_stackhash_postfx(effect_name_hash: int): void

_animpostfx_is_stackhash_playing

function native.graphics._animpostfx_is_stackhash_playing(effect_name_hash: int): bool

_0xe75cddebf618c8ff

ANIMPOSTFX_*

function native.graphics._0xe75cddebf618c8ff(effect_name_hash: int): bool

_0x71845905bccde781

ANIMPOSTFX_*

function native.graphics._0x71845905bccde781(effect_name_hash: int): void

animpostfx_has_event_triggered_by_stackhash

function native.graphics.animpostfx_has_event_triggered_by_stackhash(effect_name_hash: int, p1: int, p2: bool, p3: ptr int): bool

_0xff584f097c17fa8f

Returns whether the 'killFX' setting is enabled.

ANIMPOSTFX_*

function native.graphics._0xff584f097c17fa8f(): bool

_0x3da7a10583a4bec0

ANIMPOSTFX_*

function native.graphics._0x3da7a10583a4bec0(): bool

_0xc37792a3f9c90771

Doesn't actually return anything.

ANIMPOSTFX_*

function native.graphics._0xc37792a3f9c90771(): int

_0xa0f4d12d6042f6d5

function native.graphics._0xa0f4d12d6042f6d5(p0: int, p1: int): void

_0x8996fa6ad9fe4e90

function native.graphics._0x8996fa6ad9fe4e90(p0: int): void

_set_entity_render_guarma_ship

Only used in guama1 R* SP Script while spawning the ship SET_ENTITY_QUATERNION* - SET_ENTITY_RENDER_*

function native.graphics._set_entity_render_guarma_ship(vehicle: int, toggle: bool): void

pedshot_is_available

function native.graphics.pedshot_is_available(): bool

_0xfd05b1dde83749fa

R* Script spd_agnesdow1: p0 = SPD_AGNES_DOWD_01

function native.graphics._0xfd05b1dde83749fa(p0: string): bool

_pedshot_finish_cleanup_data

function native.graphics._pedshot_finish_cleanup_data(): void

_pedshot_previous_persona_photo_data_cleanup

function native.graphics._pedshot_previous_persona_photo_data_cleanup(): void

_pedshot_init_cleanup_data

function native.graphics._pedshot_init_cleanup_data(): void

_pedshot_generate_persona_photo

function native.graphics._pedshot_generate_persona_photo(texture: string, ped: int, player_slot: int): bool

_pedshot_set_persona_photo_type

function native.graphics._pedshot_set_persona_photo_type(persona_photo_local_cache_type: int): void

_0xa1a86055792fb249

function native.graphics._0xa1a86055792fb249(persona_photo_local_cache_type: int): void

_0x402e1a61d2587fcd

Only used in R* SP Script spd_agnesdown1

function native.graphics._0x402e1a61d2587fcd(p0: int, x: float, y: float, z: float, p4: float, p5: float, heading: float): bool

_0x5c9c3a466b3296a8

Only used in R* SP Script spd_agnesdown1

function native.graphics._0x5c9c3a466b3296a8(p0: int): int

_0xa15ccab8ad038291

function native.graphics._0xa15ccab8ad038291(p0: int, p1: int, p2: int, p3: int): int

_0x285438c26c732f9d

function native.graphics._0x285438c26c732f9d(): int

_set_proxy_interior_index_artificial_lights_state

state: false disables artificial interior light sources for specific proxyInteriorIndex

function native.graphics._set_proxy_interior_index_artificial_lights_state(proxy_interior_index: int, state: bool): void

_is_proxy_interior_index_artificial_lights_enabled

function native.graphics._is_proxy_interior_index_artificial_lights_enabled(proxy_interior_index: int): bool

_get_proxy_interior_index

Returns proxyInteriorIndex

function native.graphics._get_proxy_interior_index(interior_id: int): int

_0x9d1b0b5066205692

function native.graphics._0x9d1b0b5066205692(): void

_0xc489fe31ac726512

function native.graphics._0xc489fe31ac726512(p0: int, p1: int): void

_set_cloud_layer

function native.graphics._set_cloud_layer(x: float, y: float, p2: int): void

_set_cloud_noise

function native.graphics._set_cloud_noise(x: float, y: float, z: float): void

_set_cloud_position

Only used in finale2, smuggler2, winter4 _SET_CLOUD_A* - _SET_CLOUD_H*

function native.graphics._set_cloud_position(x: float, y: float, z: float): void

_set_cloud_height

function native.graphics._set_cloud_height(height: float): void

_0x085c5b61a0114f32

function native.graphics._0x085c5b61a0114f32(p0: int, p1: int): void

_0x1ff8731be1dfc0c0

function native.graphics._0x1ff8731be1dfc0c0(p0: int, p1: int): void

_0xfc9b53c072f418e0

function native.graphics._0xfc9b53c072f418e0(): int

_0x94b261f1f35293e1

nullsub, doesn't do anything

function native.graphics._0x94b261f1f35293e1(p0: int): void

enable_entitymask

function native.graphics.enable_entitymask(): void

disable_entitymask

function native.graphics.disable_entitymask(): void

_add_entity_to_entity_mask

function native.graphics._add_entity_to_entity_mask(entity: int, mask: int): void

_add_entity_to_entity_mask_with_intensity

function native.graphics._add_entity_to_entity_mask_with_intensity(entity: int, mask: int, intensity: float): void

_remove_entity_from_entity_mask

function native.graphics._remove_entity_from_entity_mask(entity: int): void

_get_entity_mask_layers

function native.graphics._get_entity_mask_layers(entity: int, layer0: ptr int, layer1: ptr int, layer2: ptr int, layer3: ptr int): bool

_set_entity_mask_layers

function native.graphics._set_entity_mask_layers(entity: int, layer0: ptr int, layer1: ptr int, layer2: ptr int, layer3: ptr int): void

_set_entity_aura

Used for script function RPG_GLOBAL_STATS__PRIVATE__ACTIVATE_STAT_FLAG - Quite and Inspiration Aura equip Params: 0f, 2f, 2f

function native.graphics._set_entity_aura(p0: float, p1: float, p2: float): void

_reset_entity_aura

Used for script function RPG_GLOBAL_STATS__PRIVATE__DEACTIVATE_STAT_FLAG - Inspiration Aura unequip

function native.graphics._reset_entity_aura(): void

_set_snow_coverage_type

enum class eSnowCoverageType { Primary, Secondary, Xmas, XmasSecondary // since b1232 };

function native.graphics._set_snow_coverage_type(type: int): void

_0x519928df02eb5101

function native.graphics._0x519928df02eb5101(p0: int): void

_0x1c6306e5bc25c29c

function native.graphics._0x1c6306e5bc25c29c(): void