# Stubs for gta.natives.script

import gta

def GET_NAME_OF_SCRIPT_WITH_THIS_ID(threadId: int) -> str: ...
def SHUTDOWN_LOADING_SCREEN() -> None: ...
def BG_DOES_LAUNCH_PARAM_EXIST(scriptIndex: int, p1: str) -> bool: ...
def BG_END_CONTEXT_HASH(contextHash: int) -> None: ...
def TERMINATE_THIS_THREAD() -> None: ...
def GET_NO_LOADING_SCREEN() -> bool: ...
def BG_GET_LAUNCH_PARAM_VALUE(scriptIndex: int, p1: str) -> int: ...
def GET_EVENT_DATA(eventGroup: int, eventIndex: int, eventData: int, eventDataSize: int) -> bool: ...
def GET_NUMBER_OF_THREADS_RUNNING_THE_SCRIPT_WITH_THIS_HASH(scriptHash: int) -> int: ...
def SCRIPT_THREAD_ITERATOR_GET_NEXT_THREAD_ID() -> int: ...
def GET_THIS_SCRIPT_NAME() -> str: ...
def IS_THREAD_ACTIVE(threadId: int) -> bool: ...
def SET_NO_LOADING_SCREEN(toggle: bool) -> None: ...
def TRIGGER_SCRIPT_EVENT(eventGroup: int, eventData: int, eventDataSize: int, playerBits: int) -> None: ...
def HAS_SCRIPT_WITH_NAME_HASH_LOADED(scriptHash: int) -> bool: ...
def GET_NUMBER_OF_EVENTS(eventGroup: int) -> int: ...
def REQUEST_SCRIPT(scriptName: str) -> None: ...
def _SEND_TU_SCRIPT_EVENT_NEW(eventGroup: int, eventData: int, eventDataSize: int, playerBits: int, eventType: int) -> None: ...
def BG_START_CONTEXT_HASH(contextHash: int) -> None: ...
def BG_SET_EXITFLAG_RESPONSE() -> None: ...
def BG_GET_SCRIPT_ID_FROM_NAME_HASH(p0: int) -> int: ...
def BG_IS_EXITFLAG_SET() -> bool: ...
def GET_HASH_OF_THIS_SCRIPT_NAME() -> int: ...
def GET_EVENT_EXISTS(eventGroup: int, eventIndex: int) -> bool: ...
def BG_START_CONTEXT(contextName: str) -> None: ...
def COMMIT_TO_LOADINGSCREEN_SELCTION() -> None: ...
def GET_ID_OF_THIS_THREAD() -> int: ...
def SET_SCRIPT_WITH_NAME_HASH_AS_NO_LONGER_NEEDED(scriptHash: int) -> None: ...
def TERMINATE_THREAD(threadId: int) -> None: ...
def SET_SCRIPT_AS_NO_LONGER_NEEDED(scriptName: str) -> None: ...
def REQUEST_SCRIPT_WITH_NAME_HASH(scriptHash: int) -> None: ...
def GET_EVENT_AT_INDEX(eventGroup: int, eventIndex: int) -> int: ...
def SCRIPT_THREAD_ITERATOR_RESET() -> None: ...
def BG_END_CONTEXT(contextName: str) -> None: ...
def HAS_SCRIPT_LOADED(scriptName: str) -> bool: ...
def DOES_SCRIPT_WITH_NAME_HASH_EXIST(scriptHash: int) -> bool: ...
def DOES_SCRIPT_EXIST(scriptName: str) -> bool: ...
