scripts
Methods
_set_player_bit_at_index
_clear_player_bit_at_index
_0xe4abe20dce7c7cfe
_0xffddf802279be128
_0x64f765d9a1f8f02c
_set_all_player_bits
_clear_all_player_bits
_is_player_bit_set_at_index
_is_any_player_bit_set
get_block_of_player_bits
set_block_of_player_bits
count_player_bits
_0x1bdb5a07307f6929
_0x1c5eb3c27f7508cb
_0x42a429cdfed6d99d
_0x5827be85a87b073d
_0x0a79c81c418f5d38
_0xa88e1d7fa1e20080
count_participant_bits
request_script
set_script_as_no_longer_needed
has_script_loaded
Returns if a script has been loaded into the game. Used to see if a script was loaded after requesting.
does_script_exist
request_script_with_name_hash
set_script_with_name_hash_as_no_longer_needed
has_script_with_name_hash_loaded
does_script_with_name_hash_exist
terminate_thread
is_thread_active
does_thread_exist
get_thread_existence_details
_get_hash_of_thread
script_thread_iterator_reset
Starts a new iteration of the current threads. Call this first, then SCRIPT_THREAD_ITERATOR_GET_NEXT_THREAD_ID (0x30B4FA1C82DD4B9F)
script_thread_iterator_get_next_thread_id
If the function returns 0, the end of the iteration has been reached.
_is_background_script
get_id_of_this_thread
terminate_this_thread
get_number_of_threads_running_the_script_with_this_hash
Gets the number of instances of the specified script is currently running.
Actually returns numRefs - 1. if (program) v3 = rage::scrProgram::GetNumRefs(program) - 1; return v3;
Old name: _GET_NUMBER_OF_REFERENCES_OF_SCRIPT_WITH_NAME_HASH
_request_thread_exit
_request_thread_exit_for_all_threads_with_this_name
is_thread_exit_requested
_is_thread_exit_requested_for_thread_with_this_id
_get_thread_exit_reason
enum eThreadExitReason { THREAD_EXIT_REASON_NONE, THREAD_EXIT_REASON_BACKGROUND_THREAD_STOPPED, THREAD_EXIT_REASON_SESSION_MERGE, THREAD_EXIT_REASON_SCENARIO_OUT_OF_SCOPE, THREAD_EXIT_REASON_REQUESTED_BY_SCRIPT };
get_hash_of_this_script_name
get_number_of_events
eventGroup: 0 = SCRIPT_EVENT_QUEUE_AI (CEventGroupScriptAI), 1 = SCRIPT_EVENT_QUEUE_NETWORK (CEventGroupScriptNetwork), 2 = unk, 3 = unk, 4 = SCRIPT_EVENT_QUEUE_ERRORS (CEventGroupScriptErrors)
get_event_exists
eventGroup: 0 = SCRIPT_EVENT_QUEUE_AI (CEventGroupScriptAI), 1 = SCRIPT_EVENT_QUEUE_NETWORK (CEventGroupScriptNetwork), 2 = unk, 3 = unk, 4 = SCRIPT_EVENT_QUEUE_SCRIPT_ERRORS (CEventGroupScriptErrors)
get_event_at_index
eventGroup: 0 = SCRIPT_EVENT_QUEUE_AI (CEventGroupScriptAI), 1 = SCRIPT_EVENT_QUEUE_NETWORK (CEventGroupScriptNetwork), 2 = unk, 3 = unk, 4 = SCRIPT_EVENT_QUEUE_SCRIPT_ERRORS (CEventGroupScriptErrors)
Returns event name hash: https://alloc8or.re/rdr3/doc/enums/eEventType.txt
get_event_data
eventGroup: 0 = SCRIPT_EVENT_QUEUE_AI (CEventGroupScriptAI), 1 = SCRIPT_EVENT_QUEUE_NETWORK (CEventGroupScriptNetwork), 2 = unk, 3 = unk, 4 = SCRIPT_EVENT_QUEUE_SCRIPT_ERRORS (CEventGroupScriptErrors)
Note: eventDataSize is NOT the size in bytes, it is the size determined by the SIZE_OF operator (RAGE Script operator, not C/C++ sizeof). That is, the size in bytes divided by 8 (script variables are always 8-byte aligned!).
https://github.com/femga/rdr3_discoveries/tree/master/AI/EVENTS
set_event_flag_for_deletion
trigger_script_event
eventGroup: 0 = SCRIPT_EVENT_QUEUE_AI (CEventGroupScriptAI), 1 = SCRIPT_EVENT_QUEUE_NETWORK (CEventGroupScriptNetwork), 2 = unk, 3 = unk, 4 = SCRIPT_EVENT_QUEUE_SCRIPT_ERRORS (CEventGroupScriptErrors)
Note: eventDataSize is NOT the size in bytes, it is the size determined by the SIZE_OF operator (RAGE Script operator, not C/C++ sizeof). That is, the size in bytes divided by 8 (script variables are always 8-byte aligned!).
playerBits (also known as playersToBroadcastTo) is a bitset that indicates which players this event should be sent to. In order to send the event to specific players only, use (1 << playerIndex). Set all bits if it should be broadcast to all players.
_trigger_script_event_2
_0xe7282390542f570d
_0x11b0a0b282fa9b10
Used in Script Function DISABLE_REGISTERED_WORLD_BRAINS
_0x6f700a4bf7c3331b
_0xf9e951a1e5517c06
_0x76cbcd9eadc00955
shutdown_loading_screen
set_no_loading_screen
get_no_loading_screen
_display_loading_screens
_0x29fb4ce89472c3cb
stop_displaying_mp_transition_loading_screens
is_loading_screen_visible
Same as GET_IS_LOADING_SCREEN_ACTIVE
bail_to_landing_page
bail_with_pass_through_params
bg_is_exitflag_set
Returns true if GtaThread+0x77C is equal to 1.
Old name: _BG_EXITED_BECAUSE_BACKGROUND_THREAD_STOPPED
bg_set_exitflag_response
Sets bit 0 in GtaThread+0x784
bg_start_context_hash
Hashed version of BG_START_CONTEXT
bg_end_context_hash
Hashed version of BG_END_CONTEXT
bg_start_context
Inserts the given context into the background scripts context map.
bg_end_context
Deletes the given context from the background scripts context map.
bg_does_launch_param_exist
bg_get_launch_param_value
bg_get_script_id_from_name_hash
_bg_reload_all_background_scripts
_activate_goal_context
goalContext: see
_deactivate_goal_context
goalContext: see _ACTIVATE_GOAL_CONTEXT
_is_goal_context_active
goalContext: see _ACTIVATE_GOAL_CONTEXT
_net_rpc_guid_to_string
Returns "INVALID_NET_RPC_GUID" if netRpcGuid is invalid.
awards_get_result_item
_awards_get_unlock_claim_data
_loot_get_result_item
_loot_get_loot_claim_data
_store_global_block
_restore_global_block
_does_compressed_global_block_buffer_exist
_set_global_block_can_be_accessed
_get_global_block_can_be_accessed
_set_all_global_blocks_have_been_loaded
have_all_child_scripts_terminated
Waiting for child scripts to terminate / waiting for collapse of child scripts
start_new_script
start_new_script_with_args
return : script thread id, 0 if failed Pass pointer to struct of args in p1, size of struct goes into p2