diff --git a/types/natives/index.d.ts b/types/natives/index.d.ts
index 1b0de12c9..007adb402 100644
--- a/types/natives/index.d.ts
+++ b/types/natives/index.d.ts
@@ -1,4 +1,4 @@
-// This file was generated on 25.12.2023, 19:06:27 - DO NOT MODIFY MANUALLY
+// This file was generated on 19.8.2024, 21:45:19 - DO NOT MODIFY MANUALLY
///
@@ -42,13 +42,13 @@ declare module "@altv/natives" {
* SYSTEM::START_NEW_SCRIPT(v_2, 17000);
* SCRIPT::SET_SCRIPT_AS_NO_LONGER_NEEDED(v_2);
*/
- export function startNewScript(scriptName: string, stackSize: number): number;
+ export function startNewScript(scriptName: string | null, stackSize: number): number;
/**
* return : script thread id, 0 if failed
* Pass pointer to struct of args in p1, size of struct goes into p2
*/
- export function startNewScriptWithArgs(scriptName: string, args: any | null, argCount: number, stackSize: number): [number, any];
+ export function startNewScriptWithArgs(scriptName: string | null, args: any | null, argCount: number, stackSize: number): [number, any];
export function startNewScriptWithNameHash(scriptHash: number, stackSize: number): number;
@@ -125,26 +125,26 @@ declare module "@altv/natives" {
export function appDataValid(): boolean;
- export function appGetInt(property: string): number;
+ export function appGetInt(property: string | null): number;
- export function appGetFloat(property: string): number;
+ export function appGetFloat(property: string | null): number;
- export function appGetString(property: string): string;
+ export function appGetString(property: string | null): string | null;
- export function appSetInt(property: string, value: number): void;
+ export function appSetInt(property: string | null, value: number): void;
- export function appSetFloat(property: string, value: number): void;
+ export function appSetFloat(property: string | null, value: number): void;
- export function appSetString(property: string, value: string): void;
+ export function appSetString(property: string | null, value: string | null): void;
/**
* Called in the gamescripts like:
* APP::APP_SET_APP("car");
* APP::APP_SET_APP("dog");
*/
- export function appSetApp(appName: string): void;
+ export function appSetApp(appName: string | null): void;
- export function appSetBlock(blockName: string): void;
+ export function appSetBlock(blockName: string | null): void;
export function appClearBlock(): void;
@@ -154,20 +154,20 @@ declare module "@altv/natives" {
export function appHasLinkedSocialClubAccount(): boolean;
- export function appHasSyncedData(appName: string): boolean;
+ export function appHasSyncedData(appName: string | null): boolean;
export function appSaveData(): void;
export function appGetDeletedFileStatus(): number;
- export function appDeleteAppData(appName: string): boolean;
+ export function appDeleteAppData(appName: string | null): boolean;
/**
* All found occurrences in b617d, sorted alphabetically and identical lines removed: https://pastebin.com/RFb4GTny
* AUDIO::PLAY_PED_RINGTONE("Remote_Ring", PLAYER::PLAYER_PED_ID(), 1);
* AUDIO::PLAY_PED_RINGTONE("Dial_and_Remote_Ring", PLAYER::PLAYER_PED_ID(), 1);
*/
- export function playPedRingtone(ringtoneName: string, ped: Ped | Player | LocalPlayer | number, p2: boolean): void;
+ export function playPedRingtone(ringtoneName: string | null, ped: Ped | Player | LocalPlayer | number, p2: boolean): void;
export function isPedRingtonePlaying(ped: Ped | Player | LocalPlayer | number): boolean;
@@ -198,7 +198,7 @@ declare module "@altv/natives" {
* p11 is either 0 or 1 (The func to determine this is bool)
* p12 is unknown as in TU27 X360 scripts it only goes to p11.
*/
- export function addLineToConversation(index: number, p1: string, p2: string, p3: number, p4: number, p5: boolean, p6: boolean, p7: boolean, p8: boolean, p9: number, p10: boolean, p11: boolean, p12: boolean): void;
+ export function addLineToConversation(index: number, p1: string | null, p2: string | null, p3: number, p4: number, p5: boolean, p6: boolean, p7: boolean, p8: boolean, p9: number, p10: boolean, p11: boolean, p12: boolean): void;
/**
* 4 calls in the b617d scripts. The only one with p0 and p2 in clear text:
@@ -206,7 +206,7 @@ declare module "@altv/natives" {
* =================================================
* One of the 2 calls in dialogue_handler.c p0 is in a while-loop, and so is determined to also possibly be 0 - 15.
*/
- export function addPedToConversation(index: number, ped: Ped | Player | LocalPlayer | number, p2: string): void;
+ export function addPedToConversation(index: number, ped: Ped | Player | LocalPlayer | number, p2: string | null): void;
export function setPositionForNullConvPed(p0: any, p1: number, p2: number, p3: number): void;
@@ -255,13 +255,13 @@ declare module "@altv/natives" {
* Example from carsteal3.c: AUDIO::INTERRUPT_CONVERSATION(PLAYER::PLAYER_PED_ID(), "CST4_CFAA", "FRANKLIN");
* Voicelines can be found in GTAV\x64\audio\sfx in files starting with "SS_" which seems to mean scripted speech.
*/
- export function interruptConversation(ped: Ped | Player | LocalPlayer | number, voiceline: string, speaker: string): void;
+ export function interruptConversation(ped: Ped | Player | LocalPlayer | number, voiceline: string | null, speaker: string | null): void;
/**
* One call found in the b617d scripts:
* AUDIO::INTERRUPT_CONVERSATION_AND_PAUSE(NETWORK::NET_TO_PED(l_3989._f26F[0/*1*\/]), "CONV_INTERRUPT_QUIT_IT", "LESTER");
*/
- export function interruptConversationAndPause(ped: Ped | Player | LocalPlayer | number, p1: string, speaker: string): void;
+ export function interruptConversationAndPause(ped: Ped | Player | LocalPlayer | number, p1: string | null, speaker: string | null): void;
export function getVariationChosenForScriptedLine(p0?: any | null): [number, any];
@@ -282,36 +282,36 @@ declare module "@altv/natives" {
* Full list of mission audio bank names by DurtyFree https://github.com/DurtyFree/gta-v-data-dumps/blob/master/missionAudioBankNames.json
* p2 is always -1
*/
- export function requestMissionAudioBank(audioBank: string, p1: boolean, p2: any): boolean;
+ export function requestMissionAudioBank(audioBank: string | null, p1: boolean, p2: any): boolean;
/**
* All occurrences and usages found in b617d, sorted alphabetically and identical lines removed: https://pastebin.com/XZ1tmGEz
* Full list of ambient audio bank names by DurtyFree https://github.com/DurtyFree/gta-v-data-dumps/blob/master/ambientAudioBankNames.json
* p2 is always -1
*/
- export function requestAmbientAudioBank(audioBank: string, p1: boolean, p2: any): boolean;
+ export function requestAmbientAudioBank(audioBank: string | null, p1: boolean, p2: any): boolean;
/**
* All occurrences and usages found in b617d, sorted alphabetically and identical lines removed: https://pastebin.com/AkmDAVn6
* Full list of script audio bank names by DurtyFree https://github.com/DurtyFree/gta-v-data-dumps/blob/master/scriptAudioBankNames.json
* p2 is always -1
*/
- export function requestScriptAudioBank(audioBank: string, p1: boolean, p2: any): boolean;
+ export function requestScriptAudioBank(audioBank: string | null, p1: boolean, p2: any): boolean;
/**
* p2 is always -1
*/
- export function hintMissionAudioBank(audioBank: string, p1: boolean, p2: any): boolean;
+ export function hintMissionAudioBank(audioBank: string | null, p1: boolean, p2: any): boolean;
/**
* p2 is always -1
*/
- export function hintAmbientAudioBank(audioBank: string, p1: boolean, p2: any): boolean;
+ export function hintAmbientAudioBank(audioBank: string | null, p1: boolean, p2: any): boolean;
/**
* p2 is always -1
*/
- export function hintScriptAudioBank(audioBank: string, p1: boolean, p2: any): boolean;
+ export function hintScriptAudioBank(audioBank: string | null, p1: boolean, p2: any): boolean;
export function releaseMissionAudioBank(): void;
@@ -320,7 +320,7 @@ declare module "@altv/natives" {
/**
* Full list of script audio bank names by DurtyFree https://github.com/DurtyFree/gta-v-data-dumps/blob/master/scriptAudioBankNames.json
*/
- export function releaseNamedScriptAudioBank(audioBank: string): void;
+ export function releaseNamedScriptAudioBank(audioBank: string | null): void;
export function releaseScriptAudioBank(): void;
@@ -328,7 +328,7 @@ declare module "@altv/natives" {
export function unhintScriptAudioBank(): void;
- export function unhintNamedScriptAudioBank(audioBank: string): void;
+ export function unhintNamedScriptAudioBank(audioBank: string | null): void;
export function getSoundId(): number;
@@ -338,21 +338,21 @@ declare module "@altv/natives" {
* All found occurrences in b617d, sorted alphabetically and identical lines removed: https://pastebin.com/A8Ny8AHZ
* Full list of audio / sound names by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/soundNames.json
*/
- export function playSound(soundId: number, audioName: string, audioRef: string, p3: boolean, p4: any, p5: boolean): void;
+ export function playSound(soundId: number, audioName: string | null, audioRef: string | null, p3: boolean, p4: any, p5: boolean): void;
/**
* List: https://pastebin.com/DCeRiaLJ
* All occurrences as of Cayo Perico Heist DLC (b2189), sorted alphabetically and identical lines removed: https://git.io/JtLxM
* Full list of audio / sound names by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/soundNames.json
*/
- export function playSoundFrontend(soundId: number, audioName: string, audioRef: string, p3: boolean): void;
+ export function playSoundFrontend(soundId: number, audioName: string | null, audioRef: string | null, p3: boolean): void;
/**
* Only call found in the b617d scripts:
* AUDIO::PLAY_DEFERRED_SOUND_FRONTEND("BACK", "HUD_FREEMODE_SOUNDSET");
* Full list of audio / sound names by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/soundNames.json
*/
- export function playDeferredSoundFrontend(soundName: string, soundsetName: string): void;
+ export function playDeferredSoundFrontend(soundName: string | null, soundsetName: string | null): void;
/**
* All found occurrences in b617d, sorted alphabetically and identical lines removed: https://pastebin.com/f2A7vTj0
@@ -360,7 +360,7 @@ declare module "@altv/natives" {
* gtaforums.com/topic/795622-audio-for-mods
* Full list of audio / sound names by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/soundNames.json
*/
- export function playSoundFromEntity(soundId: number, audioName: string, entity: Entity | number, audioRef: string, isNetwork: boolean, p5: any): void;
+ export function playSoundFromEntity(soundId: number, audioName: string | null, entity: Entity | number, audioRef: string | null, isNetwork: boolean, p5: any): void;
/**
* Only used with "formation_flying_blips_soundset" and "biker_formation_blips_soundset".
@@ -373,7 +373,7 @@ declare module "@altv/natives" {
* gtaforums.com/topic/795622-audio-for-mods
* Full list of audio / sound names by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/soundNames.json
*/
- export function playSoundFromCoord(soundId: number, audioName: string, x: number, y: number, z: number, audioRef: string, isNetwork: boolean, range: number, p8: boolean): void;
+ export function playSoundFromCoord(soundId: number, audioName: string | null, x: number, y: number, z: number, audioRef: string | null, isNetwork: boolean, range: number, p8: boolean): void;
export function updateSoundCoord(soundId: number, x: number, y: number, z: number): void;
@@ -387,7 +387,7 @@ declare module "@altv/natives" {
export function getSoundIdFromNetworkId(netId: number): number;
- export function setVariableOnSound(soundId: number, variable: string, p2: number): void;
+ export function setVariableOnSound(soundId: number, variable: string | null, p2: number): void;
/**
* From the scripts, p0:
@@ -396,15 +396,15 @@ declare module "@altv/natives" {
* "Monkey_Stream",
* "ZoomLevel"
*/
- export function setVariableOnStream(variable: string, p1: number): void;
+ export function setVariableOnStream(variable: string | null, p1: number): void;
- export function overrideUnderwaterStream(p0: string, p1: boolean): void;
+ export function overrideUnderwaterStream(p0: string | null, p1: boolean): void;
/**
* AUDIO::SET_VARIABLE_ON_UNDER_WATER_STREAM("inTunnel", 1.0);
* AUDIO::SET_VARIABLE_ON_UNDER_WATER_STREAM("inTunnel", 0.0);
*/
- export function setVariableOnUnderWaterStream(variableName: string, value: number): void;
+ export function setVariableOnUnderWaterStream(variableName: string | null, value: number): void;
export function hasSoundFinished(soundId: number): boolean;
@@ -453,14 +453,14 @@ declare module "@altv/natives" {
* Note: A list of Name and Parameters can be found here https://pastebin.com/1GZS5dCL
* Full list of speeches and voices names by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/speeches.json
*/
- export function playPedAmbientSpeechNative(ped: Ped | Player | LocalPlayer | number, speechName: string, speechParam: string, p3: any): void;
+ export function playPedAmbientSpeechNative(ped: Ped | Player | LocalPlayer | number, speechName: string | null, speechParam: string | null, p3: any): void;
/**
* Plays ambient speech. See also _0x5C57B85D.
* See PLAY_PED_AMBIENT_SPEECH_NATIVE for parameter specifications.
* Full list of speeches and voices names by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/speeches.json
*/
- export function playPedAmbientSpeechAndCloneNative(ped: Ped | Player | LocalPlayer | number, speechName: string, speechParam: string, p3: any): void;
+ export function playPedAmbientSpeechAndCloneNative(ped: Ped | Player | LocalPlayer | number, speechName: string | null, speechParam: string | null, p3: any): void;
/**
* This is the same as PLAY_PED_AMBIENT_SPEECH_NATIVE and PLAY_PED_AMBIENT_SPEECH_AND_CLONE_NATIVE but it will allow you to play a speech file from a specific voice file. It works on players and all peds, even animals.
@@ -469,17 +469,17 @@ declare module "@altv/natives" {
* The first param is the ped you want to play it on, the second is the speech name, the third is the voice name, the fourth is the speech param, and the last param is usually always 0.
* Full list of speeches and voices names by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/speeches.json
*/
- export function playPedAmbientSpeechWithVoiceNative(ped: Ped | Player | LocalPlayer | number, speechName: string, voiceName: string, speechParam: string, p4: boolean): void;
+ export function playPedAmbientSpeechWithVoiceNative(ped: Ped | Player | LocalPlayer | number, speechName: string | null, voiceName: string | null, speechParam: string | null, p4: boolean): void;
/**
* Full list of speeches and voices names by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/speeches.json
*/
- export function playAmbientSpeechFromPositionNative(speechName: string, voiceName: string, x: number, y: number, z: number, speechParam: string): void;
+ export function playAmbientSpeechFromPositionNative(speechName: string | null, voiceName: string | null, x: number, y: number, z: number, speechParam: string | null): void;
/**
* This native enables the audio flag "TrevorRageIsOverridden" and sets the voice effect to `voiceEffect`
*/
- export function overrideTrevorRage(voiceEffect: string): void;
+ export function overrideTrevorRage(voiceEffect: string | null): void;
export function resetTrevorRage(): void;
@@ -514,19 +514,19 @@ declare module "@altv/natives" {
* BARRY_02_SLOWMO
* BARRY_01_SLOWMO
*/
- export function activateAudioSlowmoMode(mode: string): void;
+ export function activateAudioSlowmoMode(mode: string | null): void;
/**
* see ACTIVATE_AUDIO_SLOWMO_MODE for modes
*/
- export function deactivateAudioSlowmoMode(mode: string): void;
+ export function deactivateAudioSlowmoMode(mode: string | null): void;
/**
* Audio List
* gtaforums.com/topic/795622-audio-for-mods/
* All found occurrences in b617d, sorted alphabetically and identical lines removed: https://pastebin.com/FTeAj4yZ
*/
- export function setAmbientVoiceName(ped: Ped | Player | LocalPlayer | number, name: string): void;
+ export function setAmbientVoiceName(ped: Ped | Player | LocalPlayer | number, name: string | null): void;
export function setAmbientVoiceNameHash(ped: Ped | Player | LocalPlayer | number, hash: number): void;
@@ -573,7 +573,7 @@ declare module "@altv/natives" {
/**
* Checks if the ped can play the speech or has the speech file, p2 is usually false.
*/
- export function doesContextExistForThisPed(ped: Ped | Player | LocalPlayer | number, speechName: string, p2: boolean): boolean;
+ export function doesContextExistForThisPed(ped: Ped | Player | LocalPlayer | number, speechName: string | null, p2: boolean): boolean;
export function isPedInCurrentConversation(ped: Ped | Player | LocalPlayer | number): boolean;
@@ -598,7 +598,7 @@ declare module "@altv/natives" {
* This native is works only when you call it on the ped with right model (ac_chop only ?)
* Speech Name can be: CHOP_SNIFF_SEQ CHOP_WHINE CHOP_LICKS_MOUTH CHOP_PANT bark GROWL SNARL BARK_SEQ
*/
- export function playAnimalVocalization(pedHandle: Ped | Player | LocalPlayer | number, p1: number, speechName: string): void;
+ export function playAnimalVocalization(pedHandle: Ped | Player | LocalPlayer | number, p1: number, speechName: string | null): void;
export function isAnimalVocalizationPlaying(pedHandle: Ped | Player | LocalPlayer | number): boolean;
@@ -619,12 +619,12 @@ declare module "@altv/natives" {
/**
* Returns active radio station name
*/
- export function getPlayerRadioStationName(): string;
+ export function getPlayerRadioStationName(): string | null;
/**
* Converts radio station index to string. Use HUD::GET_FILENAME_FOR_AUDIO_CONVERSATION to get the user-readable text.
*/
- export function getRadioStationName(radioStation: number): string;
+ export function getRadioStationName(radioStation: number): string | null;
export function getPlayerRadioStationGenre(): number;
@@ -646,13 +646,13 @@ declare module "@altv/natives" {
* List of radio stations that are in the wheel, in clockwise order, as of LS Tuners DLC: https://git.io/J8a3k
* An older list including hidden radio stations: https://pastebin.com/Kj9t38KF
*/
- export function setRadioToStationName(stationName: string): void;
+ export function setRadioToStationName(stationName: string | null): void;
/**
* List of radio stations that are in the wheel, in clockwise order, as of LS Tuners DLC: https://git.io/J8a3k
* An older list including hidden radio stations: https://pastebin.com/Kj9t38KF
*/
- export function setVehRadioStation(vehicle: Vehicle | number, radioStation: string): void;
+ export function setVehRadioStation(vehicle: Vehicle | number, radioStation: string | null): void;
export function setVehHasNormalRadio(vehicle: Vehicle | number): void;
@@ -663,7 +663,7 @@ declare module "@altv/natives" {
/**
* Full list of static emitters by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/staticEmitters.json
*/
- export function setEmitterRadioStation(emitterName: string, radioStation: string, p2: any): void;
+ export function setEmitterRadioStation(emitterName: string | null, radioStation: string | null, p2: any): void;
/**
* Example:
@@ -671,12 +671,12 @@ declare module "@altv/natives" {
* This turns off surrounding sounds not connected directly to peds.
* Full list of static emitters by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/staticEmitters.json
*/
- export function setStaticEmitterEnabled(emitterName: string, toggle: boolean): void;
+ export function setStaticEmitterEnabled(emitterName: string | null, toggle: boolean): void;
/**
* Full list of static emitters by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/staticEmitters.json
*/
- export function linkStaticEmitterToEntity(emitterName: string, entity: Entity | number): void;
+ export function linkStaticEmitterToEntity(emitterName: string | null, entity: Entity | number): void;
/**
* Sets radio station by index.
@@ -698,13 +698,13 @@ declare module "@altv/natives" {
export function skipRadioForward(): void;
- export function freezeRadioStation(radioStation: string): void;
+ export function freezeRadioStation(radioStation: string | null): void;
- export function unfreezeRadioStation(radioStation: string): void;
+ export function unfreezeRadioStation(radioStation: string | null): void;
export function setRadioAutoUnfreeze(toggle: boolean): void;
- export function setInitialPlayerStation(radioStation: string): void;
+ export function setInitialPlayerStation(radioStation: string | null): void;
export function setUserRadioControlEnabled(toggle: boolean): void;
@@ -712,11 +712,11 @@ declare module "@altv/natives" {
* Only found this one in the decompiled scripts:
* AUDIO::SET_RADIO_TRACK("RADIO_03_HIPHOP_NEW", "ARM1_RADIO_STARTS");
*/
- export function setRadioTrack(radioStation: string, radioTrack: string): void;
+ export function setRadioTrack(radioStation: string | null, radioTrack: string | null): void;
- export function setRadioTrackWithStartOffset(radioStationName: string, mixName: string, p2: number): void;
+ export function setRadioTrackWithStartOffset(radioStationName: string | null, mixName: string | null, p2: number): void;
- export function setNextRadioTrack(radioName: string, radioTrack: string, p2: string, p3: string): void;
+ export function setNextRadioTrack(radioName: string | null, radioTrack: string | null, p2: string | null, p3: string | null): void;
export function setVehicleRadioLoud(vehicle: Vehicle | number, toggle: boolean): void;
@@ -746,14 +746,14 @@ declare module "@altv/natives" {
* AUDIO::SET_CUSTOM_RADIO_TRACK_LIST("RADIO_16_SILVERLAKE", "SEA_RACE_RADIO_PLAYLIST", 1);
* AUDIO::SET_CUSTOM_RADIO_TRACK_LIST("RADIO_01_CLASS_ROCK", "OFF_ROAD_RADIO_ROCK_LIST", 1);
*/
- export function setCustomRadioTrackList(radioStation: string, trackListName: string, p2: boolean): void;
+ export function setCustomRadioTrackList(radioStation: string | null, trackListName: string | null, p2: boolean): void;
/**
* 3 calls in the b617d scripts, removed duplicate.
* AUDIO::CLEAR_CUSTOM_RADIO_TRACK_LIST("RADIO_16_SILVERLAKE");
* AUDIO::CLEAR_CUSTOM_RADIO_TRACK_LIST("RADIO_01_CLASS_ROCK");
*/
- export function clearCustomRadioTrackList(radioStation: string): void;
+ export function clearCustomRadioTrackList(radioStation: string | null): void;
export function getNumUnlockedRadioStations(): number;
@@ -765,16 +765,16 @@ declare module "@altv/natives" {
* AUDIO::SET_RADIO_STATION_MUSIC_ONLY(AUDIO::GET_RADIO_STATION_NAME(10), 0);
* AUDIO::SET_RADIO_STATION_MUSIC_ONLY(AUDIO::GET_RADIO_STATION_NAME(10), 1);
*/
- export function setRadioStationMusicOnly(radioStation: string, toggle: boolean): void;
+ export function setRadioStationMusicOnly(radioStation: string | null, toggle: boolean): void;
export function setRadioFrontendFadeTime(fadeTime: number): void;
/**
* AUDIO::UNLOCK_RADIO_STATION_TRACK_LIST("RADIO_16_SILVERLAKE", "MIRRORPARK_LOCKED");
*/
- export function unlockRadioStationTrackList(radioStation: string, trackListName: string): void;
+ export function unlockRadioStationTrackList(radioStation: string | null, trackListName: string | null): void;
- export function lockRadioStationTrackList(radioStation: string, trackListName: string): void;
+ export function lockRadioStationTrackList(radioStation: string | null, trackListName: string | null): void;
/**
* Just a nullsub (i.e. does absolutely nothing) since build 1604.
@@ -784,14 +784,14 @@ declare module "@altv/natives" {
/**
* Disables the radio station (hides it from the radio wheel).
*/
- export function lockRadioStation(radioStationName: string, toggle: boolean): void;
+ export function lockRadioStation(radioStationName: string | null, toggle: boolean): void;
/**
* Doesn't have an effect in Story Mode.
*/
- export function setRadioStationAsFavourite(radioStation: string, toggle: boolean): void;
+ export function setRadioStationAsFavourite(radioStation: string | null, toggle: boolean): void;
- export function isRadioStationFavourited(radioStation: string): boolean;
+ export function isRadioStationFavourited(radioStation: string | null): boolean;
export function getNextAudibleBeat(out1?: number | null, out2?: number | null, out3?: number | null): [boolean, number, number, number];
@@ -799,44 +799,44 @@ declare module "@altv/natives" {
* Changes start time of a tracklist (milliseconds)
* R* uses a random int: MISC::GET_RANDOM_INT_IN_RANGE(0, 13) * 60000)
*/
- export function forceMusicTrackList(radioStation: string, trackListName: string, milliseconds: number): void;
+ export function forceMusicTrackList(radioStation: string | null, trackListName: string | null, milliseconds: number): void;
- export function getCurrentTrackPlayTime(radioStationName: string): number;
+ export function getCurrentTrackPlayTime(radioStationName: string | null): number;
- export function getCurrentTrackSoundName(radioStationName: string): number;
+ export function getCurrentTrackSoundName(radioStationName: string | null): number;
export function setVehicleMissileWarningEnabled(vehicle: Vehicle | number, toggle: boolean): void;
/**
* Full list of ambient zones by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/ambientZones.json
*/
- export function setAmbientZoneState(zoneName: string, p1: boolean, p2: boolean): void;
+ export function setAmbientZoneState(zoneName: string | null, p1: boolean, p2: boolean): void;
/**
* This function also has a p2, unknown. Signature AUDIO::CLEAR_AMBIENT_ZONE_STATE(const char* zoneName, bool p1, Any p2);
* Still needs more research.
* Full list of ambient zones by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/ambientZones.json
*/
- export function clearAmbientZoneState(zoneName: string, p1: boolean): void;
+ export function clearAmbientZoneState(zoneName: string | null, p1: boolean): void;
- export function setAmbientZoneListState(ambientZone: string, p1: boolean, p2: boolean): void;
+ export function setAmbientZoneListState(ambientZone: string | null, p1: boolean, p2: boolean): void;
- export function clearAmbientZoneListState(ambientZone: string, p1: boolean): void;
+ export function clearAmbientZoneListState(ambientZone: string | null, p1: boolean): void;
/**
* Full list of ambient zones by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/ambientZones.json
*/
- export function setAmbientZoneStatePersistent(ambientZone: string, p1: boolean, p2: boolean): void;
+ export function setAmbientZoneStatePersistent(ambientZone: string | null, p1: boolean, p2: boolean): void;
/**
* Full list of ambient zones by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/ambientZones.json
*/
- export function setAmbientZoneListStatePersistent(ambientZone: string, p1: boolean, p2: boolean): void;
+ export function setAmbientZoneListStatePersistent(ambientZone: string | null, p1: boolean, p2: boolean): void;
/**
* Full list of ambient zones by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/ambientZones.json
*/
- export function isAmbientZoneEnabled(ambientZone: string): boolean;
+ export function isAmbientZoneEnabled(ambientZone: string | null): boolean;
export function refreshClosestOceanShoreline(): void;
@@ -847,16 +847,16 @@ declare module "@altv/natives" {
* AUDIO::SET_CUTSCENE_AUDIO_OVERRIDE("_TOOTHLESS");
* Full list of cutscene names by DurtyFree https://github.com/DurtyFree/gta-v-data-dumps/blob/master/cutsceneNames.json
*/
- export function setCutsceneAudioOverride(name: string): void;
+ export function setCutsceneAudioOverride(name: string | null): void;
- export function setVariableOnSynchSceneAudio(variableName: string, value: number): void;
+ export function setVariableOnSynchSceneAudio(variableName: string | null, value: number): void;
/**
* Plays the given police radio message.
* All found occurrences in b617d, sorted alphabetically and identical lines removed: https://pastebin.com/GBnsQ5hr
* Full list of police report names by DurtyFree https://github.com/DurtyFree/gta-v-data-dumps/blob/master/policeReportNames.json
*/
- export function playPoliceReport(name: string, p1: number): number;
+ export function playPoliceReport(name: string | null, p1: number): number;
export function cancelAllPoliceReports(): void;
@@ -909,7 +909,7 @@ declare module "@altv/natives" {
* soundSet is often set to 0 in the scripts. These are common to end the soundSets: "_SOUNDS", "_SOUNDSET" and numbers.
* Full list of audio / sound names by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/soundNames.json
*/
- export function loadStream(streamName: string, soundSet: string): boolean;
+ export function loadStream(streamName: string | null, soundSet: string | null): boolean;
/**
* Example:
@@ -917,7 +917,7 @@ declare module "@altv/natives" {
* Only called a few times in the scripts.
* Full list of audio / sound names by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/soundNames.json
*/
- export function loadStreamWithStartOffset(streamName: string, startOffset: number, soundSet: string): boolean;
+ export function loadStreamWithStartOffset(streamName: string | null, startOffset: number, soundSet: string | null): boolean;
export function playStreamFromPed(ped: Ped | Player | LocalPlayer | number): void;
@@ -957,9 +957,9 @@ declare module "@altv/natives" {
*/
export function isAmbientSpeechDisabled(ped: Ped | Player | LocalPlayer | number): boolean;
- export function blockSpeechContextGroup(p0: string, p1: number): void;
+ export function blockSpeechContextGroup(p0: string | null, p1: number): void;
- export function unblockSpeechContextGroup(p0: string): void;
+ export function unblockSpeechContextGroup(p0: string | null): void;
export function setSirenWithNoDriver(vehicle: Vehicle | number, toggle: boolean): void;
@@ -984,11 +984,11 @@ declare module "@altv/natives" {
* _SET_VEHICLE_AUDIO(veh, "ADDER");
* The selected vehicle will now have the audio of the Adder.
*/
- export function forceUseAudioGameObject(vehicle: Vehicle | number, audioName: string): void;
+ export function forceUseAudioGameObject(vehicle: Vehicle | number, audioName: string | null): void;
export function preloadVehicleAudioBank(vehicleModel: number): void;
- export function setVehicleStartupRevSound(vehicle: Vehicle | number, p1: string, p2: string): void;
+ export function setVehicleStartupRevSound(vehicle: Vehicle | number, p1: string | null, p2: string | null): void;
export function resetVehicleStartupRevSound(vehicle: Vehicle | number): void;
@@ -1051,7 +1051,7 @@ declare module "@altv/natives" {
* AUDIO::PLAY_MISSION_COMPLETE_AUDIO("GENERIC_FAILED");
* AUDIO::PLAY_MISSION_COMPLETE_AUDIO("TREVOR_SMALL_01");
*/
- export function playMissionCompleteAudio(audioName: string): void;
+ export function playMissionCompleteAudio(audioName: string | null): void;
export function isMissionCompletePlaying(): boolean;
@@ -1064,12 +1064,12 @@ declare module "@altv/natives" {
* List of all usable scene names found in b617d. Sorted alphabetically and identical names removed: https://pastebin.com/MtM9N9CC
* Full list of audio scene names by DurtyFree https://github.com/DurtyFree/gta-v-data-dumps/blob/master/audioSceneNames.json
*/
- export function startAudioScene(scene: string): boolean;
+ export function startAudioScene(scene: string | null): boolean;
/**
* Full list of audio scene names by DurtyFree https://github.com/DurtyFree/gta-v-data-dumps/blob/master/audioSceneNames.json
*/
- export function stopAudioScene(scene: string): void;
+ export function stopAudioScene(scene: string | null): void;
/**
* ??
@@ -1079,12 +1079,12 @@ declare module "@altv/natives" {
/**
* Full list of audio scene names by DurtyFree https://github.com/DurtyFree/gta-v-data-dumps/blob/master/audioSceneNames.json
*/
- export function isAudioSceneActive(scene: string): boolean;
+ export function isAudioSceneActive(scene: string | null): boolean;
/**
* Full list of audio scene names by DurtyFree https://github.com/DurtyFree/gta-v-data-dumps/blob/master/audioSceneNames.json
*/
- export function setAudioSceneVariable(scene: string, variable: string, value: number): void;
+ export function setAudioSceneVariable(scene: string | null, variable: string | null, value: number): void;
export function setAudioScriptCleanupTime(time: number): void;
@@ -1092,7 +1092,7 @@ declare module "@altv/natives" {
* All found occurrences in b678d:
* https://pastebin.com/ceu67jz8
*/
- export function addEntityToAudioMixGroup(entity: Entity | number, groupName: string, p2: number): void;
+ export function addEntityToAudioMixGroup(entity: Entity | number, groupName: string | null, p2: number): void;
export function removeEntityFromAudioMixGroup(entity: Entity | number, p1: number): void;
@@ -1107,20 +1107,20 @@ declare module "@altv/natives" {
* All music event names found in the b617d scripts: https://pastebin.com/GnYt0R3P
* Full list of music event names by DurtyFree https://github.com/DurtyFree/gta-v-data-dumps/blob/master/musicEventNames.json
*/
- export function prepareMusicEvent(eventName: string): boolean;
+ export function prepareMusicEvent(eventName: string | null): boolean;
/**
* All music event names found in the b617d scripts: https://pastebin.com/GnYt0R3P
* Full list of music event names by DurtyFree https://github.com/DurtyFree/gta-v-data-dumps/blob/master/musicEventNames.json
*/
- export function cancelMusicEvent(eventName: string): boolean;
+ export function cancelMusicEvent(eventName: string | null): boolean;
/**
* List of all usable event names found in b617d used with this native. Sorted alphabetically and identical names removed: https://pastebin.com/RzDFmB1W
* All music event names found in the b617d scripts: https://pastebin.com/GnYt0R3P
* Full list of music event names by DurtyFree https://github.com/DurtyFree/gta-v-data-dumps/blob/master/musicEventNames.json
*/
- export function triggerMusicEvent(eventName: string): boolean;
+ export function triggerMusicEvent(eventName: string | null): boolean;
export function isMusicOneshotPlaying(): boolean;
@@ -1145,7 +1145,7 @@ declare module "@altv/natives" {
* bool prepareAlarm = AUDIO::PREPARE_ALARM("PORT_OF_LS_HEIST_FORT_ZANCUDO_ALARMS");
* Full list of alarm names by DurtyFree https://github.com/DurtyFree/gta-v-data-dumps/blob/master/alarmSounds.json
*/
- export function prepareAlarm(alarmName: string): boolean;
+ export function prepareAlarm(alarmName: string | null): boolean;
/**
* Example:
@@ -1172,7 +1172,7 @@ declare module "@altv/natives" {
* AUDIO::START_ALARM("PROLOGUE_VAULT_ALARMS", 0);
* Full list of alarm names by DurtyFree https://github.com/DurtyFree/gta-v-data-dumps/blob/master/alarmSounds.json
*/
- export function startAlarm(alarmName: string, p2: boolean): void;
+ export function startAlarm(alarmName: string | null, p2: boolean): void;
/**
* Example:
@@ -1182,7 +1182,7 @@ declare module "@altv/natives" {
* Second parameter (bool) has to be true (1) to have any effect.
* Full list of alarm names by DurtyFree https://github.com/DurtyFree/gta-v-data-dumps/blob/master/alarmSounds.json
*/
- export function stopAlarm(alarmName: string, toggle: boolean): void;
+ export function stopAlarm(alarmName: string | null, toggle: boolean): void;
export function stopAllAlarms(stop: boolean): void;
@@ -1191,7 +1191,7 @@ declare module "@altv/natives" {
* bool playing = AUDIO::IS_ALARM_PLAYING("PORT_OF_LS_HEIST_FORT_ZANCUDO_ALARMS");
* Full list of alarm names by DurtyFree https://github.com/DurtyFree/gta-v-data-dumps/blob/master/alarmSounds.json
*/
- export function isAlarmPlaying(alarmName: string): boolean;
+ export function isAlarmPlaying(alarmName: string | null): boolean;
/**
* Returns hash of default vehicle horn
@@ -1346,22 +1346,22 @@ declare module "@altv/natives" {
* ID: 62 | Hash: 0xE24C3AA6
* ID: 63 | Hash: 0xBFFDD2B7
*/
- export function setAudioFlag(flagName: string, toggle: boolean): void;
+ export function setAudioFlag(flagName: string | null, toggle: boolean): void;
/**
* p1 is always 0 in the scripts
*/
- export function prepareSynchronizedAudioEvent(audioEvent: string, p1: any): boolean;
+ export function prepareSynchronizedAudioEvent(audioEvent: string | null, p1: any): boolean;
- export function prepareSynchronizedAudioEventForScene(sceneID: number, audioEvent: string): boolean;
+ export function prepareSynchronizedAudioEventForScene(sceneID: number, audioEvent: string | null): boolean;
export function playSynchronizedAudioEvent(sceneID: number): boolean;
export function stopSynchronizedAudioEvent(sceneID: number): boolean;
- export function initSynchSceneAudioWithPosition(audioEvent: string, x: number, y: number, z: number): void;
+ export function initSynchSceneAudioWithPosition(audioEvent: string | null, x: number, y: number, z: number): void;
- export function initSynchSceneAudioWithEntity(audioEvent: string, entity: Entity | number): void;
+ export function initSynchSceneAudioWithEntity(audioEvent: string | null, entity: Entity | number): void;
/**
* Needs to be called every frame.
@@ -1377,7 +1377,7 @@ declare module "@altv/natives" {
* AUDIO::SET_PORTAL_SETTINGS_OVERRIDE("V_FINALEBANK_PS_VAULT_INTACT", "V_FINALEBANK_PS_VAULT_BLOWN");
* AUDIO::SET_PORTAL_SETTINGS_OVERRIDE("V_MICHAEL_PS_BATHROOM_WITH_WINDOW", "V_MICHAEL_PS_BATHROOM_WITHOUT_WINDOW");
*/
- export function setPortalSettingsOverride(p0: string, p1: string): void;
+ export function setPortalSettingsOverride(p0: string | null, p1: string | null): void;
/**
* Found in the b617d scripts, duplicates removed:
@@ -1387,7 +1387,7 @@ declare module "@altv/natives" {
* AUDIO::REMOVE_PORTAL_SETTINGS_OVERRIDE("V_FINALEBANK_PS_VAULT_INTACT");
* AUDIO::REMOVE_PORTAL_SETTINGS_OVERRIDE("V_MICHAEL_PS_BATHROOM_WITH_WINDOW");
*/
- export function removePortalSettingsOverride(p0: string): void;
+ export function removePortalSettingsOverride(p0: string | null): void;
/**
* STOP_S[MOKE_GRENADE_EXPLOSION_SOUNDS]?
@@ -1418,18 +1418,18 @@ declare module "@altv/natives" {
* -----
* Hardcoded to not work in Multiplayer.
*/
- export function addScriptToRandomPed(name: string, model: number, p2: number, p3: number): void;
+ export function addScriptToRandomPed(name: string | null, model: number, p2: number, p3: number): void;
/**
* Registers a script for any object with a specific model hash.
* BRAIN::REGISTER_OBJECT_SCRIPT_BRAIN("ob_telescope", ${prop_telescope_01}, 100, 4.0, -1, 9);
* - Nacorpio
*/
- export function registerObjectScriptBrain(scriptName: string, modelHash: number, p2: number, activationRange: number, p4: number, p5: number): void;
+ export function registerObjectScriptBrain(scriptName: string | null, modelHash: number, p2: number, activationRange: number, p4: number, p5: number): void;
export function isObjectWithinBrainActivationRange(object: number): boolean;
- export function registerWorldPointScriptBrain(scriptName: string, activationRange: number, p2: number): void;
+ export function registerWorldPointScriptBrain(scriptName: string | null, activationRange: number, p2: number): void;
/**
* Gets whether the world point the calling script is registered to is within desired range of the player.
@@ -1473,7 +1473,7 @@ declare module "@altv/natives" {
* ob_mp_bed_low
* ob_mp_bed_med
*/
- export function reactivateNamedWorldBrainsWaitingTillOutOfRange(scriptName: string): void;
+ export function reactivateNamedWorldBrainsWaitingTillOutOfRange(scriptName: string | null): void;
/**
* Looks like a cousin of above function _6D6840CEE8845831 as it was found among them. Must be similar
@@ -1481,7 +1481,7 @@ declare module "@altv/natives" {
* "ob_tv"
* "launcher_Darts"
*/
- export function reactivateNamedObjectBrainsWaitingTillOutOfRange(scriptName: string): void;
+ export function reactivateNamedObjectBrainsWaitingTillOutOfRange(scriptName: string | null): void;
/**
* ease - smooth transition between the camera's positions
@@ -1504,7 +1504,7 @@ declare module "@altv/natives" {
* "DEFAULT_SCRIPTED_FLY_CAMERA"
* "TIMED_SPLINE_CAMERA"
*/
- export function createCam(camName: string, p1: boolean): number;
+ export function createCam(camName: string | null, p1: boolean): number;
/**
* camName is always set to "DEFAULT_SCRIPTED_CAMERA" in Rockstar's scripts.
@@ -1517,7 +1517,7 @@ declare module "@altv/natives" {
* ------------
* Side Note: It seems p8 is basically to represent what would be the bool p1 within CREATE_CAM native. As well as the p9 since it's always 2 in scripts seems to represent what would be the last param within SET_CAM_ROT native which normally would be 2.
*/
- export function createCamWithParams(camName: string, posX: number, posY: number, posZ: number, rotX: number, rotY: number, rotZ: number, fov: number, p8: boolean, p9: number): number;
+ export function createCamWithParams(camName: string | null, posX: number, posY: number, posZ: number, rotX: number, rotY: number, rotZ: number, fov: number, p8: boolean, p9: number): number;
export function createCamera(camHash: number, p1: boolean): number;
@@ -1720,7 +1720,7 @@ declare module "@altv/natives" {
/**
* NOTE: Debugging functions are not present in the retail version of the game.
*/
- export function setCamDebugName(camera: number, name: string): void;
+ export function setCamDebugName(camera: number, name: string | null): void;
export function getDebugCam(): number;
@@ -1810,13 +1810,13 @@ declare module "@altv/natives" {
* VIBRATE_SHAKE
* Full list of cam shake types by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/camShakeTypesCompact.json
*/
- export function shakeCam(cam: number, type: string, amplitude: number): void;
+ export function shakeCam(cam: number, type: string | null, amplitude: number): void;
/**
* Example from michael2 script.
* CAM::ANIMATED_SHAKE_CAM(l_5069, "shake_cam_all@", "light", "", 1f);
*/
- export function animatedShakeCam(cam: number, p1: string, p2: string, p3: string, amplitude: number): void;
+ export function animatedShakeCam(cam: number, p1: string | null, p2: string | null, p3: string | null, amplitude: number): void;
export function isCamShaking(cam: number): boolean;
@@ -1828,13 +1828,13 @@ declare module "@altv/natives" {
* CAM::SHAKE_SCRIPT_GLOBAL("HAND_SHAKE", 0.2);
* Full list of cam shake types by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/camShakeTypesCompact.json
*/
- export function shakeScriptGlobal(p0: string, p1: number): void;
+ export function shakeScriptGlobal(p0: string | null, p1: number): void;
/**
* CAM::ANIMATED_SHAKE_SCRIPT_GLOBAL("SHAKE_CAM_medium", "medium", "", 0.5f);
* Full list of cam shake types by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/camShakeTypesCompact.json
*/
- export function animatedShakeScriptGlobal(p0: string, p1: string, p2: string, p3: number): void;
+ export function animatedShakeScriptGlobal(p0: string | null, p1: string | null, p2: string | null, p3: number): void;
/**
* In drunk_controller.c4, sub_309
@@ -1863,9 +1863,9 @@ declare module "@altv/natives" {
* p10 throughout all the X360 Scripts is always 2.
* Full list of animation dictionaries and anims by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animDictsCompact.json
*/
- export function playCamAnim(cam: number, animName: string, animDictionary: string, x: number, y: number, z: number, xRot: number, yRot: number, zRot: number, p9: boolean, p10: number): boolean;
+ export function playCamAnim(cam: number, animName: string | null, animDictionary: string | null, x: number, y: number, z: number, xRot: number, yRot: number, zRot: number, p9: boolean, p10: number): boolean;
- export function isCamPlayingAnim(cam: number, animName: string, animDictionary: string): boolean;
+ export function isCamPlayingAnim(cam: number, animName: string | null, animDictionary: string | null): boolean;
export function setCamAnimCurrentPhase(cam: number, phase: number): void;
@@ -1876,7 +1876,7 @@ declare module "@altv/natives" {
* CAM::PLAY_SYNCHRONIZED_CAM_ANIM(l_2734, NETWORK::NETWORK_GET_LOCAL_SCENE_FROM_NETWORK_ID(l_2739), "PLAYER_EXIT_L_CAM", "mp_doorbell");
* CAM::PLAY_SYNCHRONIZED_CAM_ANIM(l_F0D[7/*1*\/], l_F4D[15/*1*\/], "ah3b_attackheli_cam2", "missheistfbi3b_helicrash");
*/
- export function playSynchronizedCamAnim(p0: any, p1: any, animName: string, animDictionary: string): boolean;
+ export function playSynchronizedCamAnim(p0: any, p1: any, animName: string | null, animDictionary: string | null): boolean;
export function setFlyCamHorizontalResponse(cam: number, p1: number, p2: number, p3: number): void;
@@ -1987,7 +1987,7 @@ declare module "@altv/natives" {
* VIBRATE_SHAKE
* Full list of cam shake types by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/camShakeTypesCompact.json
*/
- export function shakeGameplayCam(shakeName: string, intensity: number): void;
+ export function shakeGameplayCam(shakeName: string | null, intensity: number): void;
export function isGameplayCamShaking(): boolean;
@@ -2053,7 +2053,7 @@ declare module "@altv/natives" {
* CAM::SET_FOLLOW_PED_CAM_THIS_UPDATE("FOLLOW_PED_SKY_DIVING_FAMILY5_CAMERA", 0);
* CAM::SET_FOLLOW_PED_CAM_THIS_UPDATE("FOLLOW_PED_SKY_DIVING_CAMERA", 0);
*/
- export function setFollowPedCamThisUpdate(camName: string, p1: number): boolean;
+ export function setFollowPedCamThisUpdate(camName: string | null, p1: number): boolean;
export function useScriptCamForAmbientPopulationOriginThisFrame(p0: boolean, p1: boolean): void;
@@ -2187,7 +2187,7 @@ declare module "@altv/natives" {
/**
* Sets gameplay camera to hash
*/
- export function useDedicatedStuntCameraThisUpdate(camName: string): void;
+ export function useDedicatedStuntCameraThisUpdate(camName: string | null): void;
export function forceVehicleCamStuntSettingsThisUpdate(): void;
@@ -2299,7 +2299,7 @@ declare module "@altv/natives" {
* p0 argument found in the b617d scripts: "DRUNK_SHAKE"
* Full list of cam shake types by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/camShakeTypesCompact.json
*/
- export function shakeCinematicCam(shakeType: string, amount: number): void;
+ export function shakeCinematicCam(shakeType: string | null, amount: number): void;
export function isCinematicCamShaking(): boolean;
@@ -2390,7 +2390,7 @@ declare module "@altv/natives" {
* CAM::SET_FIRST_PERSON_FLASH_EFFECT_VEHICLE_MODEL_NAME("ISSI2");
* CAM::SET_FIRST_PERSON_FLASH_EFFECT_VEHICLE_MODEL_NAME("SPEEDO");
*/
- export function setFirstPersonFlashEffectVehicleModelName(vehicleName: string): void;
+ export function setFirstPersonFlashEffectVehicleModelName(vehicleName: string | null): void;
export function setFirstPersonFlashEffectVehicleModelHash(vehicleModel: number): void;
@@ -2484,7 +2484,7 @@ declare module "@altv/natives" {
* flags: Usually 8
* Full list of cutscene names by DurtyFree https://github.com/DurtyFree/gta-v-data-dumps/blob/master/cutsceneNames.json
*/
- export function requestCutscene(cutsceneName: string, flags: number): void;
+ export function requestCutscene(cutsceneName: string | null, flags: number): void;
/**
* flags: Usually 8
@@ -2492,7 +2492,7 @@ declare module "@altv/natives" {
* Example: 0x105 (bit 0, 2 and 8 set) will enable scene 1, 3 and 9.
* Full list of cutscene names by DurtyFree https://github.com/DurtyFree/gta-v-data-dumps/blob/master/cutsceneNames.json
*/
- export function requestCutsceneWithPlaybackList(cutsceneName: string, playbackFlags: number, flags: number): void;
+ export function requestCutsceneWithPlaybackList(cutsceneName: string | null, playbackFlags: number, flags: number): void;
export function removeCutscene(): void;
@@ -2501,7 +2501,7 @@ declare module "@altv/natives" {
/**
* Full list of cutscene names by DurtyFree https://github.com/DurtyFree/gta-v-data-dumps/blob/master/cutsceneNames.json
*/
- export function hasThisCutsceneLoaded(cutsceneName: string): boolean;
+ export function hasThisCutsceneLoaded(cutsceneName: string | null): boolean;
/**
* Sets the cutscene's owning thread ID.
@@ -2512,30 +2512,30 @@ declare module "@altv/natives" {
export function isCutscenePlaybackFlagSet(flag: number): boolean;
- export function setCutsceneEntityStreamingFlags(cutsceneEntName: string, p1: number, p2: number): void;
+ export function setCutsceneEntityStreamingFlags(cutsceneEntName: string | null, p1: number, p2: number): void;
/**
* Simply loads the cutscene and doesn't do extra stuff that REQUEST_CUTSCENE does.
* Full list of cutscene names by DurtyFree https://github.com/DurtyFree/gta-v-data-dumps/blob/master/cutsceneNames.json
*/
- export function requestCutFile(cutsceneName: string): void;
+ export function requestCutFile(cutsceneName: string | null): void;
/**
* Simply checks if the cutscene has loaded and doesn't check via CutSceneManager as opposed to HAS_[THIS]_CUTSCENE_LOADED.
* Full list of cutscene names by DurtyFree https://github.com/DurtyFree/gta-v-data-dumps/blob/master/cutsceneNames.json
*/
- export function hasCutFileLoaded(cutsceneName: string): boolean;
+ export function hasCutFileLoaded(cutsceneName: string | null): boolean;
/**
* Simply unloads the cutscene and doesn't do extra stuff that REMOVE_CUTSCENE does.
* Full list of cutscene names by DurtyFree https://github.com/DurtyFree/gta-v-data-dumps/blob/master/cutsceneNames.json
*/
- export function removeCutFile(cutsceneName: string): void;
+ export function removeCutFile(cutsceneName: string | null): void;
/**
* Full list of cutscene names by DurtyFree https://github.com/DurtyFree/gta-v-data-dumps/blob/master/cutsceneNames.json
*/
- export function getCutFileConcatCount(cutsceneName: string): number;
+ export function getCutFileConcatCount(cutsceneName: string | null): number;
/**
* flags: Usually 0.
@@ -2576,20 +2576,20 @@ declare module "@altv/natives" {
export function getCutsceneSectionPlaying(): number;
- export function getEntityIndexOfCutsceneEntity(cutsceneEntName: string, modelHash: number): number;
+ export function getEntityIndexOfCutsceneEntity(cutsceneEntName: string | null, modelHash: number): number;
export function getCutsceneConcatSectionPlaying(): number;
/**
* This function is hard-coded to always return 1.
*/
- export function isCutsceneAuthorized(cutsceneName: string): boolean;
+ export function isCutsceneAuthorized(cutsceneName: string | null): boolean;
export function doesCutsceneHandleExist(cutsceneHandle: number): number;
- export function registerEntityForCutscene(cutscenePed: Ped | Player | LocalPlayer | number, cutsceneEntName: string, p2: number, modelHash: number, p4: number): void;
+ export function registerEntityForCutscene(cutscenePed: Ped | Player | LocalPlayer | number, cutsceneEntName: string | null, p2: number, modelHash: number, p4: number): void;
- export function getEntityIndexOfRegisteredEntity(cutsceneEntName: string, modelHash: number): number;
+ export function getEntityIndexOfRegisteredEntity(cutsceneEntName: string | null, modelHash: number): number;
/**
* Full list of vehicles by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/vehicles.json
@@ -2604,9 +2604,9 @@ declare module "@altv/natives" {
/**
* modelHash (p1) was always 0 in R* scripts
*/
- export function canSetEnterStateForRegisteredEntity(cutsceneEntName: string, modelHash: number): boolean;
+ export function canSetEnterStateForRegisteredEntity(cutsceneEntName: string | null, modelHash: number): boolean;
- export function canSetExitStateForRegisteredEntity(cutsceneEntName: string, modelHash: number): boolean;
+ export function canSetExitStateForRegisteredEntity(cutsceneEntName: string | null, modelHash: number): boolean;
export function canSetExitStateForCamera(p0: boolean): boolean;
@@ -2642,11 +2642,11 @@ declare module "@altv/natives" {
/**
* Full list of ped components by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/pedComponentVariations.json
*/
- export function setCutscenePedComponentVariation(cutsceneEntName: string, componentId: number, drawableId: number, textureId: number, modelHash: number): void;
+ export function setCutscenePedComponentVariation(cutsceneEntName: string | null, componentId: number, drawableId: number, textureId: number, modelHash: number): void;
- export function setCutscenePedComponentVariationFromPed(cutsceneEntName: string, ped: Ped | Player | LocalPlayer | number, modelHash: number): void;
+ export function setCutscenePedComponentVariationFromPed(cutsceneEntName: string | null, ped: Ped | Player | LocalPlayer | number, modelHash: number): void;
- export function doesCutsceneEntityExist(cutsceneEntName: string, modelHash: number): boolean;
+ export function doesCutsceneEntityExist(cutsceneEntName: string | null, modelHash: number): boolean;
/**
* Thanks R*! ;)
@@ -2656,7 +2656,7 @@ declare module "@altv/natives" {
* }
* Full list of ped components by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/pedComponentVariations.json
*/
- export function setCutscenePedPropVariation(cutsceneEntName: string, componentId: number, drawableId: number, textureId: number, modelHash: number): void;
+ export function setCutscenePedPropVariation(cutsceneEntName: string | null, componentId: number, drawableId: number, textureId: number, modelHash: number): void;
/**
* Possibly HAS_CUTSCENE_CUT_THIS_FRAME, needs more research.
@@ -2680,15 +2680,15 @@ declare module "@altv/natives" {
export function datafileDeleteRequestedFile(requestId: number): boolean;
- export function ugcCreateContent(data: any | null, dataCount: number, contentName: string, description: string, tagsCsv: string, contentTypeName: string, publish: boolean, p7: any): [boolean, any];
+ export function ugcCreateContent(data: any | null, dataCount: number, contentName: string | null, description: string | null, tagsCsv: string | null, contentTypeName: string | null, publish: boolean, p7: any): [boolean, any];
- export function ugcCreateMission(contentName: string, description: string, tagsCsv: string, contentTypeName: string, publish: boolean, p5: any): boolean;
+ export function ugcCreateMission(contentName: string | null, description: string | null, tagsCsv: string | null, contentTypeName: string | null, publish: boolean, p5: any): boolean;
- export function ugcUpdateContent(contentId: string, data: any | null, dataCount: number, contentName: string, description: string, tagsCsv: string, contentTypeName: string, p7: any): [boolean, any];
+ export function ugcUpdateContent(contentId: string | null, data: any | null, dataCount: number, contentName: string | null, description: string | null, tagsCsv: string | null, contentTypeName: string | null, p7: any): [boolean, any];
- export function ugcUpdateMission(contentId: string, contentName: string, description: string, tagsCsv: string, contentTypeName: string, p5: any): boolean;
+ export function ugcUpdateMission(contentId: string | null, contentName: string | null, description: string | null, tagsCsv: string | null, contentTypeName: string | null, p5: any): boolean;
- export function ugcSetPlayerData(contentId: string, rating: number, contentTypeName: string, p3: any): boolean;
+ export function ugcSetPlayerData(contentId: string | null, rating: number, contentTypeName: string | null, p3: any): boolean;
export function datafileSelectUgcData(p0: number, p1: any): boolean;
@@ -2704,7 +2704,7 @@ declare module "@altv/natives" {
* Example:
* DATAFILE::DATAFILE_LOAD_OFFLINE_UGC("RockstarPlaylists") // loads "rockstarplaylists_00.ugc"
*/
- export function datafileLoadOfflineUgc(filename: string, p1: any): boolean;
+ export function datafileLoadOfflineUgc(filename: string | null, p1: any): boolean;
export function datafileCreate(p0: number): void;
@@ -2716,7 +2716,7 @@ declare module "@altv/natives" {
export function datafileGetFileDict(p0: number): any;
- export function datafileStartSaveToCloud(filename: string, p1: any): boolean;
+ export function datafileStartSaveToCloud(filename: string | null, p1: any): boolean;
export function datafileUpdateSaveToCloud(p0?: boolean | null): [boolean, boolean];
@@ -2728,33 +2728,33 @@ declare module "@altv/natives" {
export function datafileGetFileDictForAdditionalDataFile(p0: any): any;
- export function datadictSetBool(objectData: any | null, key: string, value: boolean): any;
+ export function datadictSetBool(objectData: any | null, key: string | null, value: boolean): any;
- export function datadictSetInt(objectData: any | null, key: string, value: number): any;
+ export function datadictSetInt(objectData: any | null, key: string | null, value: number): any;
- export function datadictSetFloat(objectData: any | null, key: string, value: number): any;
+ export function datadictSetFloat(objectData: any | null, key: string | null, value: number): any;
- export function datadictSetString(objectData: any | null, key: string, value: string): any;
+ export function datadictSetString(objectData: any | null, key: string | null, value: string | null): any;
- export function datadictSetVector(objectData: any | null, key: string, valueX: number, valueY: number, valueZ: number): any;
+ export function datadictSetVector(objectData: any | null, key: string | null, valueX: number, valueY: number, valueZ: number): any;
- export function datadictCreateDict(objectData: any | null, key: string): [any, any];
+ export function datadictCreateDict(objectData: any | null, key: string | null): [any, any];
- export function datadictCreateArray(objectData: any | null, key: string): [any, any];
+ export function datadictCreateArray(objectData: any | null, key: string | null): [any, any];
- export function datadictGetBool(objectData: any | null, key: string): [boolean, any];
+ export function datadictGetBool(objectData: any | null, key: string | null): [boolean, any];
- export function datadictGetInt(objectData: any | null, key: string): [number, any];
+ export function datadictGetInt(objectData: any | null, key: string | null): [number, any];
- export function datadictGetFloat(objectData: any | null, key: string): [number, any];
+ export function datadictGetFloat(objectData: any | null, key: string | null): [number, any];
- export function datadictGetString(objectData: any | null, key: string): [string, any];
+ export function datadictGetString(objectData: any | null, key: string | null): [string | null, any];
- export function datadictGetVector(objectData: any | null, key: string): [Vector3, any];
+ export function datadictGetVector(objectData: any | null, key: string | null): [Vector3, any];
- export function datadictGetDict(objectData: any | null, key: string): [any, any];
+ export function datadictGetDict(objectData: any | null, key: string | null): [any, any];
- export function datadictGetArray(objectData: any | null, key: string): [any, any];
+ export function datadictGetArray(objectData: any | null, key: string | null): [any, any];
/**
* Types:
@@ -2766,7 +2766,7 @@ declare module "@altv/natives" {
* 6 = Object
* 7 = Array
*/
- export function datadictGetType(objectData: any | null, key: string): [number, any];
+ export function datadictGetType(objectData: any | null, key: string | null): [number, any];
export function dataarrayAddBool(arrayData: any | null, value: boolean): any;
@@ -2774,7 +2774,7 @@ declare module "@altv/natives" {
export function dataarrayAddFloat(arrayData: any | null, value: number): any;
- export function dataarrayAddString(arrayData: any | null, value: string): any;
+ export function dataarrayAddString(arrayData: any | null, value: string | null): any;
export function dataarrayAddVector(arrayData: any | null, valueX: number, valueY: number, valueZ: number): any;
@@ -2786,7 +2786,7 @@ declare module "@altv/natives" {
export function dataarrayGetFloat(arrayData: any | null, arrayIndex: number): [number, any];
- export function dataarrayGetString(arrayData: any | null, arrayIndex: number): [string, any];
+ export function dataarrayGetString(arrayData: any | null, arrayIndex: number): [string | null, any];
export function dataarrayGetVector(arrayData: any | null, arrayIndex: number): [Vector3, any];
@@ -2806,42 +2806,42 @@ declare module "@altv/natives" {
*/
export function dataarrayGetType(arrayData: any | null, arrayIndex: number): [number, any];
- export function decorSetTime(entity: Entity | number, propertyName: string, timestamp: number): boolean;
+ export function decorSetTime(entity: Entity | number, propertyName: string | null, timestamp: number): boolean;
/**
* This function sets metadata of type bool to specified entity.
*/
- export function decorSetBool(entity: Entity | number, propertyName: string, value: boolean): boolean;
+ export function decorSetBool(entity: Entity | number, propertyName: string | null, value: boolean): boolean;
- export function decorSetFloat(entity: Entity | number, propertyName: string, value: number): boolean;
+ export function decorSetFloat(entity: Entity | number, propertyName: string | null, value: number): boolean;
/**
* Sets property to int.
*/
- export function decorSetInt(entity: Entity | number, propertyName: string, value: number): boolean;
+ export function decorSetInt(entity: Entity | number, propertyName: string | null, value: number): boolean;
- export function decorGetBool(entity: Entity | number, propertyName: string): boolean;
+ export function decorGetBool(entity: Entity | number, propertyName: string | null): boolean;
- export function decorGetFloat(entity: Entity | number, propertyName: string): number;
+ export function decorGetFloat(entity: Entity | number, propertyName: string | null): number;
- export function decorGetInt(entity: Entity | number, propertyName: string): number;
+ export function decorGetInt(entity: Entity | number, propertyName: string | null): number;
/**
* Returns whether or not the specified property is set for the entity.
*/
- export function decorExistOn(entity: Entity | number, propertyName: string): boolean;
+ export function decorExistOn(entity: Entity | number, propertyName: string | null): boolean;
- export function decorRemove(entity: Entity | number, propertyName: string): boolean;
+ export function decorRemove(entity: Entity | number, propertyName: string | null): boolean;
/**
* https://alloc8or.re/gta5/doc/enums/eDecorType.txt
*/
- export function decorRegister(propertyName: string, type: number): void;
+ export function decorRegister(propertyName: string | null, type: number): void;
/**
* type: see DECOR_REGISTER
*/
- export function decorIsRegisteredAsType(propertyName: string, type: number): boolean;
+ export function decorIsRegisteredAsType(propertyName: string | null, type: number): boolean;
/**
* Called after all decorator type initializations.
@@ -2914,7 +2914,7 @@ declare module "@altv/natives" {
* P3 is always 3 as far as i cant tell
* Full list of animation dictionaries and anims by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animDictsCompact.json
*/
- export function hasEntityAnimFinished(entity: Entity | number, animDict: string, animName: string, p3: number): boolean;
+ export function hasEntityAnimFinished(entity: Entity | number, animDict: string | null, animName: string | null, p3: number): boolean;
export function hasEntityBeenDamagedByAnyObject(entity: Entity | number): boolean;
@@ -2972,7 +2972,7 @@ declare module "@altv/natives" {
* 1.000000 - mark the end of animation.
* Full list of animation dictionaries and anims by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animDictsCompact.json
*/
- export function getEntityAnimCurrentTime(entity: Entity | number, animDict: string, animName: string): number;
+ export function getEntityAnimCurrentTime(entity: Entity | number, animDict: string | null, animName: string | null): number;
/**
* Returns a float value representing animation's total playtime in milliseconds.
@@ -2981,12 +2981,12 @@ declare module "@altv/natives" {
* return 20800.000000
* Full list of animation dictionaries and anims by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animDictsCompact.json
*/
- export function getEntityAnimTotalTime(entity: Entity | number, animDict: string, animName: string): number;
+ export function getEntityAnimTotalTime(entity: Entity | number, animDict: string | null, animName: string | null): number;
/**
* Full list of animation dictionaries and anims by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animDictsCompact.json
*/
- export function getAnimDuration(animDict: string, animName: string): number;
+ export function getAnimDuration(animDict: string | null, animName: string | null): number;
export function getEntityAttachedTo(entity: Entity | number): number;
@@ -3116,7 +3116,7 @@ declare module "@altv/natives" {
/**
* Returns the name of the script that owns/created the entity or nullptr. Second parameter is unused, can just be a nullptr.
*/
- export function getEntityScript(entity: Entity | number, script?: number | null): [string, number];
+ export function getEntityScript(entity: Entity | number, script?: number | null): [string | null, number];
/**
* result is in meters per second
@@ -3229,7 +3229,7 @@ declare module "@altv/natives" {
/**
* Full list of zones by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/zones.json
*/
- export function isEntityInZone(entity: Entity | number, zone: string): boolean;
+ export function isEntityInZone(entity: Entity | number, zone: string | null): boolean;
export function isEntityInWater(entity: Entity | number): boolean;
@@ -3253,7 +3253,7 @@ declare module "@altv/natives" {
* p4 is always 3 in the scripts.
* Full list of animation dictionaries and anims by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animDictsCompact.json
*/
- export function isEntityPlayingAnim(entity: Entity | number, animDict: string, animName: string, taskFlag: number): boolean;
+ export function isEntityPlayingAnim(entity: Entity | number, animDict: string | null, animName: string | null, taskFlag: number): boolean;
/**
* a static ped will not react to natives like "APPLY_FORCE_TO_ENTITY" or "SET_ENTITY_VELOCITY" and oftentimes will not react to task-natives like "TASK::TASK_COMBAT_PED". The only way I know of to make one of these peds react is to ragdoll them (or sometimes to use CLEAR_PED_TASKS_IMMEDIATELY(). Static peds include almost all far-away peds, beach-combers, peds in certain scenarios, peds crossing a crosswalk, peds walking to get back into their cars, and others. If anyone knows how to make a ped non-static without ragdolling them, please edit this with the solution.
@@ -3400,7 +3400,7 @@ declare module "@altv/natives" {
* seat_r
* I doubt that the function is case-sensitive, since I found a "Chassis" and a "chassis". - Just tested: Definitely not case-sensitive.
*/
- export function getEntityBoneIndexByName(entity: Entity | number, boneName: string): number;
+ export function getEntityBoneIndexByName(entity: Entity | number, boneName: string | null): number;
export function clearEntityLastDamageEntity(entity: Entity | number): void;
@@ -3431,19 +3431,19 @@ declare module "@altv/natives" {
* The only time bitset has a value is 0x4000 and the only time delta has a value is during stealth with usually <1.0f values.
* Full list of animation dictionaries and anims by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animDictsCompact.json
*/
- export function playEntityAnim(entity: Entity | number, animName: string, animDict: string, p3: number, loop: boolean, stayInAnim: boolean, p6: boolean, delta: number, bitset: any): boolean;
+ export function playEntityAnim(entity: Entity | number, animName: string | null, animDict: string | null, p3: number, loop: boolean, stayInAnim: boolean, p6: boolean, delta: number, bitset: any): boolean;
/**
* p4 and p7 are usually 1000.0f.
* Full list of animation dictionaries and anims by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animDictsCompact.json
*/
- export function playSynchronizedEntityAnim(entity: Entity | number, syncedScene: number, animation: string, propName: string, p4: number, p5: number, p6: any, p7: number): boolean;
+ export function playSynchronizedEntityAnim(entity: Entity | number, syncedScene: number, animation: string | null, propName: string | null, p4: number, p5: number, p6: any, p7: number): boolean;
/**
* p6,p7 probably animname and animdict
* Full list of animation dictionaries and anims by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animDictsCompact.json
*/
- export function playSynchronizedMapEntityAnim(x1: number, y1: number, z1: number, x2: number, y2: any, z2: number, p6: string, p7: string, p8: number, p9: number, p10: any, p11: number): boolean;
+ export function playSynchronizedMapEntityAnim(x1: number, y1: number, z1: number, x2: number, y2: any, z2: number, p6: string | null, p7: string | null, p8: number, p9: number, p10: any, p11: number): boolean;
export function stopSynchronizedMapEntityAnim(x1: number, y1: number, z1: number, x2: number, y2: any, z2: number): boolean;
@@ -3451,7 +3451,7 @@ declare module "@altv/natives" {
* Full list of animation dictionaries and anims by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animDictsCompact.json
* RAGEPluginHook list: docs.ragepluginhook.net/html/62951c37-a440-478c-b389-c471230ddfc5.htm
*/
- export function stopEntityAnim(entity: Entity | number, animation: string, animGroup: string, p3: number): boolean;
+ export function stopEntityAnim(entity: Entity | number, animation: string | null, animGroup: string | null, p3: number): boolean;
/**
* p1 sync task id?
@@ -3474,17 +3474,17 @@ declare module "@altv/natives" {
* Both v_A and v_B are seemingly used to contain both Vector3's and floats, so I can't say what either really is other than that they are both output parameters. p4 looks more like a *Vector3 though
* Full list of animation dictionaries and anims by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animDictsCompact.json
*/
- export function findAnimEventPhase(animDictionary: string, animName: string, p2: string, p3?: any | null, p4?: any | null): [boolean, any, any];
+ export function findAnimEventPhase(animDictionary: string | null, animName: string | null, p2: string | null, p3?: any | null, p4?: any | null): [boolean, any, any];
/**
* Full list of animation dictionaries and anims by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animDictsCompact.json
*/
- export function setEntityAnimCurrentTime(entity: Entity | number, animDictionary: string, animName: string, time: number): void;
+ export function setEntityAnimCurrentTime(entity: Entity | number, animDictionary: string | null, animName: string | null, time: number): void;
/**
* Full list of animation dictionaries and anims by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animDictsCompact.json
*/
- export function setEntityAnimSpeed(entity: Entity | number, animDictionary: string, animName: string, speedMultiplier: number): void;
+ export function setEntityAnimSpeed(entity: Entity | number, animDictionary: string | null, animName: string | null, speedMultiplier: number): void;
/**
* Makes the specified entity (ped, vehicle or object) persistent. Persistent entities will not automatically be removed by the engine.
@@ -4242,12 +4242,12 @@ declare module "@altv/natives" {
/**
* NOTE: Debugging functions are not present in the retail version of the game.
*/
- export function drawDebugText(text: string, x: number, y: number, z: number, red: number, green: number, blue: number, alpha: number): void;
+ export function drawDebugText(text: string | null, x: number, y: number, z: number, red: number, green: number, blue: number, alpha: number): void;
/**
* NOTE: Debugging functions are not present in the retail version of the game.
*/
- export function drawDebugText2d(text: string, x: number, y: number, z: number, red: number, green: number, blue: number, alpha: number): void;
+ export function drawDebugText2d(text: string | null, x: number, y: number, z: number, red: number, green: number, blue: number, alpha: number): void;
/**
* Draws a depth-tested line from one point to another.
@@ -4296,14 +4296,14 @@ declare module "@altv/natives" {
* p15 through p23 are values that appear to be related to illiumation, scaling, and rotation; more testing required.
* For UVW mapping (u,v,w parameters), reference your favourite internet resource for more details.
*/
- export function drawTexturedPoly(x1: number, y1: number, z1: number, x2: number, y2: number, z2: number, x3: number, y3: number, z3: number, red: number, green: number, blue: number, alpha: number, textureDict: string, textureName: string, u1: number, v1: number, w1: number, u2: number, v2: number, w2: number, u3: number, v3: number, w3: number): void;
+ export function drawTexturedPoly(x1: number, y1: number, z1: number, x2: number, y2: number, z2: number, x3: number, y3: number, z3: number, red: number, green: number, blue: number, alpha: number, textureDict: string | null, textureName: string | null, u1: number, v1: number, w1: number, u2: number, v2: number, w2: number, u3: number, v3: number, w3: number): void;
/**
* Used for drawling Deadline trailing lights, see deadline.ytd
* Each vertex has its own colour that is blended/illuminated on the texture. Additionally, the R, G, and B components are floats that are int-casted internally.
* For UVW mapping (u,v,w parameters), reference your favourite internet resource for more details.
*/
- export function drawTexturedPolyWithThreeColours(x1: number, y1: number, z1: number, x2: number, y2: number, z2: number, x3: number, y3: number, z3: number, red1: number, green1: number, blue1: number, alpha1: number, red2: number, green2: number, blue2: number, alpha2: number, red3: number, green3: number, blue3: number, alpha3: number, textureDict: string, textureName: string, u1: number, v1: number, w1: number, u2: number, v2: number, w2: number, u3: number, v3: number, w3: number): void;
+ export function drawTexturedPolyWithThreeColours(x1: number, y1: number, z1: number, x2: number, y2: number, z2: number, x3: number, y3: number, z3: number, red1: number, green1: number, blue1: number, alpha1: number, red2: number, green2: number, blue2: number, alpha2: number, red3: number, green3: number, blue3: number, alpha3: number, textureDict: string | null, textureName: string | null, u1: number, v1: number, w1: number, u2: number, v2: number, w2: number, u3: number, v3: number, w3: number): void;
/**
* x,y,z = start pos
@@ -4494,9 +4494,9 @@ declare module "@altv/natives" {
* his is what I used to draw an amber downward pointing chevron "V", has to be redrawn every frame. The 180 is for 180 degrees rotation around the Y axis, the 50 is alpha, assuming max is 100, but it will accept 255.
* GRAPHICS::DRAW_MARKER(2, v.x, v.y, v.z + 2, 0, 0, 0, 0, 180, 0, 2, 2, 2, 255, 128, 0, 50, 0, 1, 1, 0, 0, 0, 0);
*/
- export function drawMarker(type: number, posX: number, posY: number, posZ: number, dirX: number, dirY: number, dirZ: number, rotX: number, rotY: number, rotZ: number, scaleX: number, scaleY: number, scaleZ: number, red: number, green: number, blue: number, alpha: number, bobUpAndDown: boolean, faceCamera: boolean, p19: number, rotate: boolean, textureDict: string, textureName: string, drawOnEnts: boolean): void;
+ export function drawMarker(type: number, posX: number, posY: number, posZ: number, dirX: number, dirY: number, dirZ: number, rotX: number, rotY: number, rotZ: number, scaleX: number, scaleY: number, scaleZ: number, red: number, green: number, blue: number, alpha: number, bobUpAndDown: boolean, faceCamera: boolean, p19: number, rotate: boolean, textureDict: string | null, textureName: string | null, drawOnEnts: boolean): void;
- export function drawMarkerEx(type: number, posX: number, posY: number, posZ: number, dirX: number, dirY: number, dirZ: number, rotX: number, rotY: number, rotZ: number, scaleX: number, scaleY: number, scaleZ: number, red: number, green: number, blue: number, alpha: number, bobUpAndDown: boolean, faceCamera: boolean, p19: any, rotate: boolean, textureDict: string, textureName: string, drawOnEnts: boolean, p24: boolean, p25: boolean): void;
+ export function drawMarkerEx(type: number, posX: number, posY: number, posZ: number, dirX: number, dirY: number, dirZ: number, rotX: number, rotY: number, rotZ: number, scaleX: number, scaleY: number, scaleZ: number, red: number, green: number, blue: number, alpha: number, bobUpAndDown: boolean, faceCamera: boolean, p19: any, rotate: boolean, textureDict: string | null, textureName: string | null, drawOnEnts: boolean, p24: boolean, p25: boolean): void;
/**
* Draws a 3D sphere, typically seen in the GTA:O freemode event "Penned In".
@@ -4596,11 +4596,11 @@ declare module "@altv/natives" {
* scaleform_web.rpf
* last param isnt a toggle
*/
- export function requestStreamedTextureDict(textureDict: string, p1: boolean): void;
+ export function requestStreamedTextureDict(textureDict: string | null, p1: boolean): void;
- export function hasStreamedTextureDictLoaded(textureDict: string): boolean;
+ export function hasStreamedTextureDictLoaded(textureDict: string | null): boolean;
- export function setStreamedTextureDictAsNoLongerNeeded(textureDict: string): void;
+ export function setStreamedTextureDictAsNoLongerNeeded(textureDict: string | null): void;
/**
* Draws a rectangle on the screen.
@@ -4674,7 +4674,7 @@ declare module "@altv/natives" {
* red,green,blue - Sprite color (default = 255/255/255)
* alpha - opacity level
*/
- export function drawSprite(textureDict: string, textureName: string, screenX: number, screenY: number, width: number, height: number, heading: number, red: number, green: number, blue: number, alpha: number, p11: boolean, p12: any): void;
+ export function drawSprite(textureDict: string | null, textureName: string | null, screenX: number, screenY: number, width: number, height: number, heading: number, red: number, green: number, blue: number, alpha: number, p11: boolean, p12: any): void;
/**
* Used in arcade games and Beam hack minigame in Doomsday Heist. I will most certainly dive into this to try replicate arcade games.
@@ -4685,7 +4685,7 @@ declare module "@altv/natives" {
* p6 almost always 0.0
* p11 seems to be unknown but almost always 0 int
*/
- export function drawSpriteArx(textureDict: string, textureName: string, x: number, y: number, width: number, height: number, p6: number, red: number, green: number, blue: number, alpha: number, p11: any, p12: any): void;
+ export function drawSpriteArx(textureDict: string | null, textureName: string | null, x: number, y: number, width: number, height: number, p6: number, red: number, green: number, blue: number, alpha: number, p11: any, p12: any): void;
/**
* Similar to _DRAW_SPRITE, but seems to be some kind of "interactive" sprite, at least used by render targets.
@@ -4701,21 +4701,21 @@ declare module "@altv/natives" {
* Prop_Screen_Nightclub
* And a few others
*/
- export function drawSpriteNamedRendertarget(textureDict: string, textureName: string, screenX: number, screenY: number, width: number, height: number, heading: number, red: number, green: number, blue: number, alpha: number, p11: any): void;
+ export function drawSpriteNamedRendertarget(textureDict: string | null, textureName: string | null, screenX: number, screenY: number, width: number, height: number, heading: number, red: number, green: number, blue: number, alpha: number, p11: any): void;
/**
* Similar to DRAW_SPRITE, but allows to specify the texture coordinates used to draw the sprite.
* u1, v1 - texture coordinates for the top-left corner
* u2, v2 - texture coordinates for the bottom-right corner
*/
- export function drawSpriteArxWithUv(textureDict: string, textureName: string, x: number, y: number, width: number, height: number, u1: number, v1: number, u2: number, v2: number, heading: number, red: number, green: number, blue: number, alpha: number, p15: any): void;
+ export function drawSpriteArxWithUv(textureDict: string | null, textureName: string | null, x: number, y: number, width: number, height: number, u1: number, v1: number, u2: number, v2: number, heading: number, red: number, green: number, blue: number, alpha: number, p15: any): void;
/**
* Example:
* GRAPHICS::ADD_ENTITY_ICON(a_0, "MP_Arrow");
* I tried this and nothing happened...
*/
- export function addEntityIcon(entity: Entity | number, icon: string): number;
+ export function addEntityIcon(entity: Entity | number, icon: string | null): number;
export function setEntityIconVisibility(entity: Entity | number, toggle: boolean): void;
@@ -4745,7 +4745,7 @@ declare module "@altv/natives" {
*/
export function clearDrawOrigin(): void;
- export function setBinkMovie(name: string): number;
+ export function setBinkMovie(name: string | null): number;
export function playBinkMovie(binkMovie: number): void;
@@ -4784,7 +4784,7 @@ declare module "@altv/natives" {
export function setBinkShouldSkip(binkMovie: number, bShouldSkip: boolean): void;
- export function loadMovieMeshSet(movieMeshSetName: string): number;
+ export function loadMovieMeshSet(movieMeshSetName: string | null): number;
export function releaseMovieMeshSet(movieMeshSet: number): void;
@@ -4874,12 +4874,12 @@ declare module "@altv/natives" {
* Returns the texture resolution of the passed texture dict+name.
* Note: Most texture resolutions are doubled compared to the console version of the game.
*/
- export function getTextureResolution(textureDict: string, textureName: string): Vector3;
+ export function getTextureResolution(textureDict: string | null, textureName: string | null): Vector3;
/**
* Overriding ped badge texture to a passed texture. It's synced between players (even custom textures!), don't forget to request used dict on *all* clients to make it sync properly. Can be removed by passing empty strings.
*/
- export function overridePedCrewLogoTexture(ped: Ped | Player | LocalPlayer | number, txd: string, txn: string): boolean;
+ export function overridePedCrewLogoTexture(ped: Ped | Player | LocalPlayer | number, txd: string | null, txn: string | null): boolean;
export function setDistanceBlurStrengthOverride(p0: number): void;
@@ -4994,7 +4994,7 @@ declare module "@altv/natives" {
* "CSM_ST_CLOUDS_DITHER16_RPDB"
* "CSM_ST_CLOUDS_POISSON16_RPDB_GNORM"
*/
- export function cascadeShadowsSetShadowSampleType(type: string): void;
+ export function cascadeShadowsSetShadowSampleType(type: string | null): void;
export function cascadeShadowsClearShadowSampleType(): void;
@@ -5135,7 +5135,7 @@ declare module "@altv/natives" {
export function phonephotoeditorIsActive(): boolean;
- export function phonephotoeditorSetFrameTxd(textureDict: string, p1: boolean): boolean;
+ export function phonephotoeditorSetFrameTxd(textureDict: string | null, p1: boolean): boolean;
/**
* GRAPHICS::START_PARTICLE_FX_NON_LOOPED_AT_COORD("scr_paleto_roof_impact", -140.8576f, 6420.789f, 41.1391f, 0f, 0f, 267.3957f, 0x3F800000, 0, 0, 0);
@@ -5152,24 +5152,24 @@ declare module "@altv/natives" {
* example:
* Function.Call(Hash.START_PARTICLE_FX_NON_LOOPED_AT_COORD, "scr_fbi4_trucks_crash", GTA.Game.Player.Character.Position.X, GTA.Game.Player.Character.Position.Y, GTA.Game.Player.Character.Position.Z + 4f, 0, 0, 0, 5.5f, 0, 0, 0);
*/
- export function startParticleFxNonLoopedAtCoord(effectName: string, xPos: number, yPos: number, zPos: number, xRot: number, yRot: number, zRot: number, scale: number, xAxis: boolean, yAxis: boolean, zAxis: boolean): boolean;
+ export function startParticleFxNonLoopedAtCoord(effectName: string | null, xPos: number, yPos: number, zPos: number, xRot: number, yRot: number, zRot: number, scale: number, xAxis: boolean, yAxis: boolean, zAxis: boolean): boolean;
/**
* Full list of particle effect dictionaries and effects by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/particleEffectsCompact.json
*/
- export function startNetworkedParticleFxNonLoopedAtCoord(effectName: string, xPos: number, yPos: number, zPos: number, xRot: number, yRot: number, zRot: number, scale: number, xAxis: boolean, yAxis: boolean, zAxis: boolean, p11: boolean): boolean;
+ export function startNetworkedParticleFxNonLoopedAtCoord(effectName: string | null, xPos: number, yPos: number, zPos: number, xRot: number, yRot: number, zRot: number, scale: number, xAxis: boolean, yAxis: boolean, zAxis: boolean, p11: boolean): boolean;
/**
* GRAPHICS::START_PARTICLE_FX_NON_LOOPED_ON_PED_BONE("scr_sh_bong_smoke", PLAYER::PLAYER_PED_ID(), -0.025f, 0.13f, 0f, 0f, 0f, 0f, 31086, 0x3F800000, 0, 0, 0);
* Axis - Invert Axis Flags
* Full list of particle effect dictionaries and effects by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/particleEffectsCompact.json
*/
- export function startParticleFxNonLoopedOnPedBone(effectName: string, ped: Ped | Player | LocalPlayer | number, offsetX: number, offsetY: number, offsetZ: number, rotX: number, rotY: number, rotZ: number, boneIndex: number, scale: number, axisX: boolean, axisY: boolean, axisZ: boolean): boolean;
+ export function startParticleFxNonLoopedOnPedBone(effectName: string | null, ped: Ped | Player | LocalPlayer | number, offsetX: number, offsetY: number, offsetZ: number, rotX: number, rotY: number, rotZ: number, boneIndex: number, scale: number, axisX: boolean, axisY: boolean, axisZ: boolean): boolean;
/**
* Full list of particle effect dictionaries and effects by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/particleEffectsCompact.json
*/
- export function startNetworkedParticleFxNonLoopedOnPedBone(effectName: string, ped: Ped | Player | LocalPlayer | number, offsetX: number, offsetY: number, offsetZ: number, rotX: number, rotY: number, rotZ: number, boneIndex: number, scale: number, axisX: boolean, axisY: boolean, axisZ: boolean): boolean;
+ export function startNetworkedParticleFxNonLoopedOnPedBone(effectName: string | null, ped: Ped | Player | LocalPlayer | number, offsetX: number, offsetY: number, offsetZ: number, rotX: number, rotY: number, rotZ: number, boneIndex: number, scale: number, axisX: boolean, axisY: boolean, axisZ: boolean): boolean;
/**
* Starts a particle effect on an entity for example your player.
@@ -5181,17 +5181,17 @@ declare module "@altv/natives" {
* however it uses -1 for the specified bone index, so it should be possible to start a non looped fx on an entity bone using that native
* -can confirm START_PARTICLE_FX_NON_LOOPED_ON_PED_BONE does NOT work on vehicle bones.
*/
- export function startParticleFxNonLoopedOnEntity(effectName: string, entity: Entity | number, offsetX: number, offsetY: number, offsetZ: number, rotX: number, rotY: number, rotZ: number, scale: number, axisX: boolean, axisY: boolean, axisZ: boolean): boolean;
+ export function startParticleFxNonLoopedOnEntity(effectName: string | null, entity: Entity | number, offsetX: number, offsetY: number, offsetZ: number, rotX: number, rotY: number, rotZ: number, scale: number, axisX: boolean, axisY: boolean, axisZ: boolean): boolean;
/**
* Full list of particle effect dictionaries and effects by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/particleEffectsCompact.json
*/
- export function startNetworkedParticleFxNonLoopedOnEntity(effectName: string, entity: Entity | number, offsetX: number, offsetY: number, offsetZ: number, rotX: number, rotY: number, rotZ: number, scale: number, axisX: boolean, axisY: boolean, axisZ: boolean): boolean;
+ export function startNetworkedParticleFxNonLoopedOnEntity(effectName: string | null, entity: Entity | number, offsetX: number, offsetY: number, offsetZ: number, rotX: number, rotY: number, rotZ: number, scale: number, axisX: boolean, axisY: boolean, axisZ: boolean): boolean;
/**
* Full list of particle effect dictionaries and effects by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/particleEffectsCompact.json
*/
- export function startParticleFxNonLoopedOnEntityBone(effectName: string, entity: Entity | number, offsetX: number, offsetY: number, offsetZ: number, rotX: number, rotY: number, rotZ: number, boneIndex: number, scale: number, axisX: boolean, axisY: boolean, axisZ: boolean): boolean;
+ export function startParticleFxNonLoopedOnEntityBone(effectName: string | null, entity: Entity | number, offsetX: number, offsetY: number, offsetZ: number, rotX: number, rotY: number, rotZ: number, boneIndex: number, scale: number, axisX: boolean, axisY: boolean, axisZ: boolean): boolean;
/**
* only works on some fx's, not networked
@@ -5219,32 +5219,32 @@ declare module "@altv/natives" {
* p11 seems to be always 0
* Full list of particle effect dictionaries and effects by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/particleEffectsCompact.json
*/
- export function startParticleFxLoopedAtCoord(effectName: string, x: number, y: number, z: number, xRot: number, yRot: number, zRot: number, scale: number, xAxis: boolean, yAxis: boolean, zAxis: boolean, p11: boolean): number;
+ export function startParticleFxLoopedAtCoord(effectName: string | null, x: number, y: number, z: number, xRot: number, yRot: number, zRot: number, scale: number, xAxis: boolean, yAxis: boolean, zAxis: boolean, p11: boolean): number;
/**
* Full list of particle effect dictionaries and effects by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/particleEffectsCompact.json
*/
- export function startParticleFxLoopedOnPedBone(effectName: string, ped: Ped | Player | LocalPlayer | number, xOffset: number, yOffset: number, zOffset: number, xRot: number, yRot: number, zRot: number, boneIndex: number, scale: number, xAxis: boolean, yAxis: boolean, zAxis: boolean): number;
+ export function startParticleFxLoopedOnPedBone(effectName: string | null, ped: Ped | Player | LocalPlayer | number, xOffset: number, yOffset: number, zOffset: number, xRot: number, yRot: number, zRot: number, boneIndex: number, scale: number, xAxis: boolean, yAxis: boolean, zAxis: boolean): number;
/**
* Full list of particle effect dictionaries and effects by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/particleEffectsCompact.json
*/
- export function startParticleFxLoopedOnEntity(effectName: string, entity: Entity | number, xOffset: number, yOffset: number, zOffset: number, xRot: number, yRot: number, zRot: number, scale: number, xAxis: boolean, yAxis: boolean, zAxis: boolean): number;
+ export function startParticleFxLoopedOnEntity(effectName: string | null, entity: Entity | number, xOffset: number, yOffset: number, zOffset: number, xRot: number, yRot: number, zRot: number, scale: number, xAxis: boolean, yAxis: boolean, zAxis: boolean): number;
/**
* Full list of particle effect dictionaries and effects by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/particleEffectsCompact.json
*/
- export function startParticleFxLoopedOnEntityBone(effectName: string, entity: Entity | number, xOffset: number, yOffset: number, zOffset: number, xRot: number, yRot: number, zRot: number, boneIndex: number, scale: number, xAxis: boolean, yAxis: boolean, zAxis: boolean): number;
+ export function startParticleFxLoopedOnEntityBone(effectName: string | null, entity: Entity | number, xOffset: number, yOffset: number, zOffset: number, xRot: number, yRot: number, zRot: number, boneIndex: number, scale: number, xAxis: boolean, yAxis: boolean, zAxis: boolean): number;
/**
* Full list of particle effect dictionaries and effects by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/particleEffectsCompact.json
*/
- export function startNetworkedParticleFxLoopedOnEntity(effectName: string, entity: Entity | number, xOffset: number, yOffset: number, zOffset: number, xRot: number, yRot: number, zRot: number, scale: number, xAxis: boolean, yAxis: boolean, zAxis: boolean, r: number, g: number, b: number, a: number): number;
+ export function startNetworkedParticleFxLoopedOnEntity(effectName: string | null, entity: Entity | number, xOffset: number, yOffset: number, zOffset: number, xRot: number, yRot: number, zRot: number, scale: number, xAxis: boolean, yAxis: boolean, zAxis: boolean, r: number, g: number, b: number, a: number): number;
/**
* Full list of particle effect dictionaries and effects by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/particleEffectsCompact.json
*/
- export function startNetworkedParticleFxLoopedOnEntityBone(effectName: string, entity: Entity | number, xOffset: number, yOffset: number, zOffset: number, xRot: number, yRot: number, zRot: number, boneIndex: number, scale: number, xAxis: boolean, yAxis: boolean, zAxis: boolean, r: number, g: number, b: number, a: number): number;
+ export function startNetworkedParticleFxLoopedOnEntityBone(effectName: string | null, entity: Entity | number, xOffset: number, yOffset: number, zOffset: number, xRot: number, yRot: number, zRot: number, boneIndex: number, scale: number, xAxis: boolean, yAxis: boolean, zAxis: boolean, r: number, g: number, b: number, a: number): number;
/**
* p1 is always 0 in the native scripts
@@ -5263,7 +5263,7 @@ declare module "@altv/natives" {
export function setParticleFxLoopedOffsets(ptfxHandle: number, x: number, y: number, z: number, rotX: number, rotY: number, rotZ: number): void;
- export function setParticleFxLoopedEvolution(ptfxHandle: number, propertyName: string, amount: number, noNetwork: boolean): void;
+ export function setParticleFxLoopedEvolution(ptfxHandle: number, propertyName: string | null, amount: number, noNetwork: boolean): void;
/**
* only works on some fx's
@@ -5318,7 +5318,7 @@ declare module "@altv/natives" {
/**
* Full list of particle effect dictionaries and effects by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/particleEffectsCompact.json
*/
- export function setParticleFxFootOverrideName(p0: string): void;
+ export function setParticleFxFootOverrideName(p0: string | null): void;
export function setSkidmarkRangeScale(scale: number): void;
@@ -5339,24 +5339,24 @@ declare module "@altv/natives" {
* GRAPHICS::USE_PARTICLE_FX_ASSET("scr_prison_break_heist_station");
* Full list of particle effect dictionaries and effects by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/particleEffectsCompact.json
*/
- export function useParticleFxAsset(name: string): void;
+ export function useParticleFxAsset(name: string | null): void;
/**
* Full list of particle effect dictionaries and effects by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/particleEffectsCompact.json
*/
- export function setParticleFxOverride(oldAsset: string, newAsset: string): void;
+ export function setParticleFxOverride(oldAsset: string | null, newAsset: string | null): void;
/**
* Resets the effect of SET_PARTICLE_FX_OVERRIDE
* Full list of particle effect dictionaries and effects by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/particleEffectsCompact.json
*/
- export function resetParticleFxOverride(name: string): void;
+ export function resetParticleFxOverride(name: string | null): void;
/**
* Returns ptfxHandle
* effectName: scr_sv_drag_burnout
*/
- export function startVehicleParticleFxLooped(vehicle: Vehicle | number, effectName: string, frontBack: boolean, leftRight: boolean, localOnly: boolean): number;
+ export function startVehicleParticleFxLooped(vehicle: Vehicle | number, effectName: string | null, frontBack: boolean, leftRight: boolean, localOnly: boolean): number;
export function setWeatherPtfxUseOverrideSettings(p0: boolean): void;
@@ -5466,7 +5466,7 @@ declare module "@altv/natives" {
export function getIsPetrolDecalInRange(xCoord: number, yCoord: number, zCoord: number, radius: number): boolean;
- export function patchDecalDiffuseMap(decalType: number, textureDict: string, textureName: string): void;
+ export function patchDecalDiffuseMap(decalType: number, textureDict: string | null, textureName: string | null): void;
export function unpatchDecalDiffuseMap(decalType: number): void;
@@ -5491,7 +5491,7 @@ declare module "@altv/natives" {
export function setDecalBulletImpactRangeScale(p0: number): void;
- export function overrideInteriorSmokeName(name: string): void;
+ export function overrideInteriorSmokeName(name: string | null): void;
export function overrideInteriorSmokeLevel(level: number): void;
@@ -5528,7 +5528,7 @@ declare module "@altv/natives" {
* Only one match in the scripts:
* GRAPHICS::PRESET_INTERIOR_AMBIENT_CACHE("int_carrier_hanger");
*/
- export function presetInteriorAmbientCache(timecycleModifierName: string): void;
+ export function presetInteriorAmbientCache(timecycleModifierName: string | null): void;
/**
* Loads the specified timecycle modifier. Modifiers are defined separately in another file (e.g. "timecycle_mods_1.xml")
@@ -5536,14 +5536,14 @@ declare module "@altv/natives" {
* modifierName - The modifier to load (e.g. "V_FIB_IT3", "scanline_cam", etc.)
* Full list of timecycle modifiers by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/timecycleModifiers.json
*/
- export function setTimecycleModifier(modifierName: string): void;
+ export function setTimecycleModifier(modifierName: string | null): void;
export function setTimecycleModifierStrength(strength: number): void;
/**
* Full list of timecycle modifiers by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/timecycleModifiers.json
*/
- export function setTransitionTimecycleModifier(modifierName: string, transition: number): void;
+ export function setTransitionTimecycleModifier(modifierName: string | null, transition: number): void;
export function setTransitionOutOfTimecycleModifier(strength: number): void;
@@ -5563,20 +5563,20 @@ declare module "@altv/natives" {
export function popTimecycleModifier(): void;
- export function setCurrentPlayerTcmodifier(modifierName: string): void;
+ export function setCurrentPlayerTcmodifier(modifierName: string | null): void;
export function setPlayerTcmodifierTransition(value: number): void;
- export function setNextPlayerTcmodifier(modifierName: string): void;
+ export function setNextPlayerTcmodifier(modifierName: string | null): void;
- export function addTcmodifierOverride(modifierName1: string, modifierName2: string): void;
+ export function addTcmodifierOverride(modifierName1: string | null, modifierName2: string | null): void;
- export function clearAllTcmodifierOverrides(p0: string): void;
+ export function clearAllTcmodifierOverrides(p0: string | null): void;
/**
* Full list of timecycle modifiers by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/timecycleModifiers.json
*/
- export function setExtraTcmodifier(modifierName: string): void;
+ export function setExtraTcmodifier(modifierName: string | null): void;
/**
* Clears the secondary timecycle modifier usually set with _SET_EXTRA_TIMECYCLE_MODIFIER
@@ -5599,14 +5599,14 @@ declare module "@altv/natives" {
*/
export function disableMoonCycleOverride(): void;
- export function requestScaleformMovie(scaleformName: string): number;
+ export function requestScaleformMovie(scaleformName: string | null): number;
/**
* Another REQUEST_SCALEFORM_MOVIE equivalent.
*/
- export function requestScaleformMovieWithIgnoreSuperWidescreen(scaleformName: string): number;
+ export function requestScaleformMovieWithIgnoreSuperWidescreen(scaleformName: string | null): number;
- export function requestScaleformMovieInstance(scaleformName: string): number;
+ export function requestScaleformMovieInstance(scaleformName: string | null): number;
/**
* Similar to REQUEST_SCALEFORM_MOVIE, but seems to be some kind of "interactive" scaleform movie?
@@ -5618,7 +5618,7 @@ declare module "@altv/natives" {
* "TEETH_PULLING"
* Note: Unless this hash is out-of-order, this native is next-gen only.
*/
- export function requestScaleformMovieSkipRenderWhilePaused(scaleformName: string): number;
+ export function requestScaleformMovieSkipRenderWhilePaused(scaleformName: string | null): number;
export function hasScaleformMovieLoaded(scaleformHandle: number): boolean;
@@ -5639,7 +5639,7 @@ declare module "@altv/natives" {
* "instructional_buttons"
* "heist_pre"
*/
- export function hasScaleformMovieFilenameLoaded(scaleformName: string): boolean;
+ export function hasScaleformMovieFilenameLoaded(scaleformName: string | null): boolean;
export function hasScaleformContainerMovieLoadedIntoParent(scaleformHandle: number): boolean;
@@ -5670,19 +5670,19 @@ declare module "@altv/natives" {
/**
* Calls the Scaleform function.
*/
- export function callScaleformMovieMethod(scaleform: number, method: string): void;
+ export function callScaleformMovieMethod(scaleform: number, method: string | null): void;
/**
* Calls the Scaleform function and passes the parameters as floats.
* The number of parameters passed to the function varies, so the end of the parameter list is represented by -1.0.
*/
- export function callScaleformMovieMethodWithNumber(scaleform: number, methodName: string, param1: number, param2: number, param3: number, param4: number, param5: number): void;
+ export function callScaleformMovieMethodWithNumber(scaleform: number, methodName: string | null, param1: number, param2: number, param3: number, param4: number, param5: number): void;
/**
* Calls the Scaleform function and passes the parameters as strings.
* The number of parameters passed to the function varies, so the end of the parameter list is represented by 0 (NULL).
*/
- export function callScaleformMovieMethodWithString(scaleform: number, methodName: string, param1: string, param2: string, param3: string, param4: string, param5: string): void;
+ export function callScaleformMovieMethodWithString(scaleform: number, methodName: string | null, param1: string | null, param2: string | null, param3: string | null, param4: string | null, param5: string | null): void;
/**
* Calls the Scaleform function and passes both float and string parameters (in their respective order).
@@ -5694,7 +5694,7 @@ declare module "@altv/natives" {
* // function MY_FUNCTION_2(floatParam, stringParam1, stringParam2)
* GRAPHICS::CALL_SCALEFORM_MOVIE_METHOD_WITH_NUMBER_AND_STRING(scaleform, "MY_FUNCTION_2", 10.0, -1.0, -1.0, -1.0, -1.0, "String param #1", "String param #2", 0, 0, 0);
*/
- export function callScaleformMovieMethodWithNumberAndString(scaleform: number, methodName: string, floatParam1: number, floatParam2: number, floatParam3: number, floatParam4: number, floatParam5: number, stringParam1: string, stringParam2: string, stringParam3: string, stringParam4: string, stringParam5: string): void;
+ export function callScaleformMovieMethodWithNumberAndString(scaleform: number, methodName: string | null, floatParam1: number, floatParam2: number, floatParam3: number, floatParam4: number, floatParam5: number, stringParam1: string | null, stringParam2: string | null, stringParam3: string | null, stringParam4: string | null, stringParam5: string | null): void;
/**
* Pushes a function from the Hud component Scaleform onto the stack. Same behavior as GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD, just a hud component id instead of a Scaleform.
@@ -5703,25 +5703,25 @@ declare module "@altv/natives" {
* 20 - HUD_DIRECTOR_MODE
* This native requires more research - all information can be found inside of 'hud.gfx'. Using a decompiler, the different components are located under "scripts\__Packages\com\rockstargames\gtav\hud\hudComponents" and "scripts\__Packages\com\rockstargames\gtav\Multiplayer".
*/
- export function beginScaleformScriptHudMovieMethod(hudComponent: number, methodName: string): boolean;
+ export function beginScaleformScriptHudMovieMethod(hudComponent: number, methodName: string | null): boolean;
/**
* Push a function from the Scaleform onto the stack
*/
- export function beginScaleformMovieMethod(scaleform: number, methodName: string): boolean;
+ export function beginScaleformMovieMethod(scaleform: number, methodName: string | null): boolean;
/**
* Starts frontend (pause menu) scaleform movie methods.
* This can be used when you want to make custom frontend menus, and customize things like images or text in the menus etc.
* Use `BEGIN_SCALEFORM_MOVIE_METHOD_ON_FRONTEND_HEADER` for header scaleform functions.
*/
- export function beginScaleformMovieMethodOnFrontend(methodName: string): boolean;
+ export function beginScaleformMovieMethodOnFrontend(methodName: string | null): boolean;
/**
* Starts frontend (pause menu) scaleform movie methods for header options.
* Use `BEGIN_SCALEFORM_MOVIE_METHOD_ON_FRONTEND` to customize the content inside the frontend menus.
*/
- export function beginScaleformMovieMethodOnFrontendHeader(methodName: string): boolean;
+ export function beginScaleformMovieMethodOnFrontendHeader(methodName: string | null): boolean;
/**
* Pops and calls the Scaleform function on the stack
@@ -5751,7 +5751,7 @@ declare module "@altv/natives" {
* methodReturn: The return value of this native: END_SCALEFORM_MOVIE_METHOD_RETURN_VALUE
* Used to get a return value from a scaleform function. Returns a string in the same way GET_SCALEFORM_MOVIE_METHOD_RETURN_VALUE_INT returns an int.
*/
- export function getScaleformMovieMethodReturnValueString(methodReturn: number): string;
+ export function getScaleformMovieMethodReturnValueString(methodReturn: number): string | null;
/**
* Pushes an integer for the Scaleform function onto the stack.
@@ -5785,7 +5785,7 @@ declare module "@altv/natives" {
* HUD::ADD_TEXT_COMPONENT_SUBSTRING_TEXT_LABEL_HASH_KEY(v_3);
* GRAPHICS::END_TEXT_COMMAND_SCALEFORM_STRING();
*/
- export function beginTextCommandScaleformString(componentType: string): void;
+ export function beginTextCommandScaleformString(componentType: string | null): void;
export function endTextCommandScaleformString(): void;
@@ -5799,11 +5799,11 @@ declare module "@altv/natives" {
* Same as SCALEFORM_MOVIE_METHOD_ADD_PARAM_TEXTURE_NAME_STRING
* Both SCALEFORM_MOVIE_METHOD_ADD_PARAM_TEXTURE_NAME_STRING / _SCALEFORM_MOVIE_METHOD_ADD_PARAM_TEXTURE_NAME_STRING_2 works, but _SCALEFORM_MOVIE_METHOD_ADD_PARAM_TEXTURE_NAME_STRING_2 is usually used for "name" (organisation, players..).
*/
- export function scaleformMovieMethodAddParamLiteralString(string: string): void;
+ export function scaleformMovieMethodAddParamLiteralString(string: string | null): void;
- export function scaleformMovieMethodAddParamTextureNameString(string: string): void;
+ export function scaleformMovieMethodAddParamTextureNameString(string: string | null): void;
- export function scaleformMovieMethodAddParamPlayerNameString(string: string): void;
+ export function scaleformMovieMethodAddParamPlayerNameString(string: string | null): void;
export function doesLatestBriefStringExist(p0: number): boolean;
@@ -5880,9 +5880,9 @@ declare module "@altv/natives" {
* The above playlists work as intended, and are commonly used, but there are many more playlists, as seen in `tvplaylists.xml`. A pastebin below outlines all playlists, they will be surronded by the name tag I.E. (PL_STD_CNT = PL_STD_CNT).
* https://pastebin.com/zUzGB6h7
*/
- export function setTvChannelPlaylist(tvChannel: number, playlistName: string, restart: boolean): void;
+ export function setTvChannelPlaylist(tvChannel: number, playlistName: string | null, restart: boolean): void;
- export function setTvChannelPlaylistAtHour(tvChannel: number, playlistName: string, hour: number): void;
+ export function setTvChannelPlaylistAtHour(tvChannel: number, playlistName: string | null, hour: number): void;
export function setTvChannelPlaylistDirty(tvChannel: number, p1: boolean): void;
@@ -5905,14 +5905,14 @@ declare module "@altv/natives" {
/**
* All presets can be found in common\data\ui\uiscenes.meta
*/
- export function ui3dscenePushPreset(presetName: string): boolean;
+ export function ui3dscenePushPreset(presetName: string | null): boolean;
/**
* It's called after UI3DSCENE_IS_AVAILABLE and UI3DSCENE_PUSH_PRESET
* presetName was always "CELEBRATION_WINNER"
* All presets can be found in common\data\ui\uiscenes.meta
*/
- export function ui3dsceneAssignPedToSlot(presetName: string, ped: Ped | Player | LocalPlayer | number, slot: number, posX: number, posY: number, posZ: number): boolean;
+ export function ui3dsceneAssignPedToSlot(presetName: string | null, ped: Ped | Player | LocalPlayer | number, slot: number, posX: number, posY: number, posZ: number): boolean;
export function ui3dsceneClearPatchedData(): void;
@@ -5947,26 +5947,26 @@ declare module "@altv/natives" {
* if loop is true, the effect won't stop until you call ANIMPOSTFX_STOP on it. (only loopable effects)
* Full list of animpostFX / screen effects by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animPostFxNamesCompact.json
*/
- export function animpostfxPlay(effectName: string, duration: number, looped: boolean): void;
+ export function animpostfxPlay(effectName: string | null, duration: number, looped: boolean): void;
/**
* See ANIMPOSTFX_PLAY
* Full list of animpostFX / screen effects by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animPostFxNamesCompact.json
*/
- export function animpostfxStop(effectName: string): void;
+ export function animpostfxStop(effectName: string | null): void;
/**
* See ANIMPOSTFX_PLAY
* Full list of animpostFX / screen effects by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animPostFxNamesCompact.json
*/
- export function animpostfxGetCurrentTime(effectName: string): number;
+ export function animpostfxGetCurrentTime(effectName: string | null): number;
/**
* Returns whether the specified effect is active.
* See ANIMPOSTFX_PLAY
* Full list of animpostFX / screen effects by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animPostFxNamesCompact.json
*/
- export function animpostfxIsRunning(effectName: string): boolean;
+ export function animpostfxIsRunning(effectName: string | null): boolean;
/**
* Stops ALL currently playing effects.
@@ -5978,7 +5978,7 @@ declare module "@altv/natives" {
* See ANIMPOSTFX_PLAY
* Full list of animpostFX / screen effects by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animPostFxNamesCompact.json
*/
- export function animpostfxStopAndFlushRequests(effectName: string): void;
+ export function animpostfxStopAndFlushRequests(effectName: string | null): void;
/**
* Initializes the text entry for the the text next to a loading prompt. All natives for building UI texts can be used here
@@ -6014,7 +6014,7 @@ declare module "@altv/natives" {
* "KILL_STRIP_IDM" = Waiting for to accept
* "MP_SPINLOADING" = Loading
*/
- export function beginTextCommandBusyspinnerOn(string: string): void;
+ export function beginTextCommandBusyspinnerOn(string: string | null): void;
/**
* enum eBusySpinnerType
@@ -6161,7 +6161,7 @@ declare module "@altv/natives" {
/**
* Used in the native scripts to reference "GET_PEDHEADSHOT_TXD_STRING" and "CHAR_DEFAULT".
*/
- export function thefeedUpdateItemTexture(txdString1: string, txnString1: string, txdString2: string, txnString2: string): void;
+ export function thefeedUpdateItemTexture(txdString1: string | null, txnString1: string | null, txdString2: string | null, txnString2: string | null): void;
/**
* Declares the entry type of a notification, for example "STRING".
@@ -6172,13 +6172,13 @@ declare module "@altv/natives" {
* return END_TEXT_COMMAND_THEFEED_POST_TICKER(1, 1);
* }
*/
- export function beginTextCommandThefeedPost(text: string): void;
+ export function beginTextCommandThefeedPost(text: string | null): void;
/**
* List of picture names: https://pastebin.com/XdpJVbHz
* Example result: https://i.imgur.com/SdEZ22m.png
*/
- export function endTextCommandThefeedPostStats(statTitle: string, iconEnum: number, stepVal: boolean, barValue: number, isImportant: boolean, pictureTextureDict: string, pictureTextureName: string): number;
+ export function endTextCommandThefeedPostStats(statTitle: string | null, iconEnum: number, stepVal: boolean, barValue: number, isImportant: boolean, pictureTextureDict: string | null, pictureTextureName: string | null): number;
/**
* This function can show pictures of every texture that can be requested by REQUEST_STREAMED_TEXTURE_DICT.
@@ -6197,7 +6197,7 @@ declare module "@altv/natives" {
* "sender" is the very top header. This can be any old string.
* "subject" is the header under the sender.
*/
- export function endTextCommandThefeedPostMessagetext(txdName: string, textureName: string, flash: boolean, iconType: number, sender: string, subject: string): number;
+ export function endTextCommandThefeedPostMessagetext(txdName: string | null, textureName: string | null, flash: boolean, iconType: number, sender: string | null, subject: string | null): number;
/**
* This function can show pictures of every texture that can be requested by REQUEST_STREAMED_TEXTURE_DICT.
@@ -6205,7 +6205,7 @@ declare module "@altv/natives" {
* Only one type of usage in the scripts:
* HUD::END_TEXT_COMMAND_THEFEED_POST_MESSAGETEXT_SUBTITLE_LABEL("CHAR_ACTING_UP", "CHAR_ACTING_UP", 0, 0, "DI_FEED_CHAR", a_0);
*/
- export function endTextCommandThefeedPostMessagetextSubtitleLabel(txdName: string, textureName: string, flash: boolean, iconType: number, sender: string, subject: string): number;
+ export function endTextCommandThefeedPostMessagetextSubtitleLabel(txdName: string | null, textureName: string | null, flash: boolean, iconType: number, sender: string | null, subject: string | null): number;
/**
* This function can show pictures of every texture that can be requested by REQUEST_STREAMED_TEXTURE_DICT.
@@ -6213,7 +6213,7 @@ declare module "@altv/natives" {
* Example, only occurrence in the scripts:
* v_8 = HUD::END_TEXT_COMMAND_THEFEED_POST_MESSAGETEXT_TU("CHAR_SOCIAL_CLUB", "CHAR_SOCIAL_CLUB", 0, 0, &v_9, "", a_5);
*/
- export function endTextCommandThefeedPostMessagetextTu(txdName: string, textureName: string, flash: boolean, iconType: number, sender: string, subject: string, duration: number): number;
+ export function endTextCommandThefeedPostMessagetextTu(txdName: string | null, textureName: string | null, flash: boolean, iconType: number, sender: string | null, subject: string | null, duration: number): number;
/**
* This function can show pictures of every texture that can be requested by REQUEST_STREAMED_TEXTURE_DICT.
@@ -6234,7 +6234,7 @@ declare module "@altv/natives" {
* "duration" is a multiplier, so 1.0 is normal, 2.0 is twice as long (very slow), and 0.5 is half as long.
* "clanTag" shows a crew tag in the "sender" header, after the text. You need to use 3 underscores as padding. Maximum length of this field seems to be 7. (e.g. "MK" becomes "___MK", "ACE" becomes "___ACE", etc.)
*/
- export function endTextCommandThefeedPostMessagetextWithCrewTag(txdName: string, textureName: string, flash: boolean, iconType: number, sender: string, subject: string, duration: number, clanTag: string): number;
+ export function endTextCommandThefeedPostMessagetextWithCrewTag(txdName: string | null, textureName: string | null, flash: boolean, iconType: number, sender: string | null, subject: string | null, duration: number, clanTag: string | null): number;
/**
* This function can show pictures of every texture that can be requested by REQUEST_STREAMED_TEXTURE_DICT.
@@ -6263,7 +6263,7 @@ declare module "@altv/natives" {
* return END_TEXT_COMMAND_THEFEED_POST_TICKER(1, 1);
* }
*/
- export function endTextCommandThefeedPostMessagetextWithCrewTagAndAdditionalIcon(txdName: string, textureName: string, flash: boolean, iconType1: number, sender: string, subject: string, duration: number, clanTag: string, iconType2: number, p9: number): number;
+ export function endTextCommandThefeedPostMessagetextWithCrewTagAndAdditionalIcon(txdName: string | null, textureName: string | null, flash: boolean, iconType1: number, sender: string | null, subject: string | null, duration: number, clanTag: string | null, iconType2: number, p9: number): number;
export function endTextCommandThefeedPostTicker(blink: boolean, p1: boolean): number;
@@ -6277,21 +6277,21 @@ declare module "@altv/natives" {
* HUD::BEGIN_TEXT_COMMAND_THEFEED_POST("HUNT");
* HUD::END_TEXT_COMMAND_THEFEED_POST_AWARD("Hunting", "Hunting_Gold_128", 0, 109, "HUD_MED_UNLKED");
*/
- export function endTextCommandThefeedPostAward(textureDict: string, textureName: string, rpBonus: number, colorOverlay: number, titleLabel: string): number;
+ export function endTextCommandThefeedPostAward(textureDict: string | null, textureName: string | null, rpBonus: number, colorOverlay: number, titleLabel: string | null): number;
export function endTextCommandThefeedPostCrewtag(p0: boolean, p1: boolean, p2: number | null, p3: number, isLeader: boolean, unk0: boolean, clanDesc: number, R: number, G: number, B: number): [number, number];
- export function endTextCommandThefeedPostCrewtagWithGameName(p0: boolean, p1: boolean, p2: number | null, p3: number, isLeader: boolean, unk0: boolean, clanDesc: number, playerName: string, R: number, G: number, B: number): [number, number];
+ export function endTextCommandThefeedPostCrewtagWithGameName(p0: boolean, p1: boolean, p2: number | null, p3: number, isLeader: boolean, unk0: boolean, clanDesc: number, playerName: string | null, R: number, G: number, B: number): [number, number];
- export function endTextCommandThefeedPostUnlock(gxtLabel1: string, p1: number, gxtLabel2: string): number;
+ export function endTextCommandThefeedPostUnlock(gxtLabel1: string | null, p1: number, gxtLabel2: string | null): number;
- export function endTextCommandThefeedPostUnlockTu(gxtLabel1: string, p1: number, gxtLabel2: string, p3: number): number;
+ export function endTextCommandThefeedPostUnlockTu(gxtLabel1: string | null, p1: number, gxtLabel2: string | null, p3: number): number;
export function endTextCommandThefeedPostUnlockTuWithColor(p0: any, p1: any, p2: any, p3: any, p4: any, p5: any): number;
export function endTextCommandThefeedPostMpticker(blink: boolean, p1: boolean): number;
- export function endTextCommandThefeedPostCrewRankupWithLiteralFlag(p0: string, p1: string, p2: string, p3: boolean, p4: boolean): number;
+ export function endTextCommandThefeedPostCrewRankupWithLiteralFlag(p0: string | null, p1: string | null, p2: string | null, p3: boolean, p4: boolean): number;
/**
* This function can show pictures of every texture that can be requested by REQUEST_STREAMED_TEXTURE_DICT.
@@ -6299,7 +6299,7 @@ declare module "@altv/natives" {
* HUD colors and their values: https://pastebin.com/d9aHPbXN
* Shows a deathmatch score above the minimap, example: https://i.imgur.com/YmoMklG.png
*/
- export function endTextCommandThefeedPostVersusTu(txdName1: string, textureName1: string, count1: number, txdName2: string, textureName2: string, count2: number, hudColor1: number, hudColor2: number): number;
+ export function endTextCommandThefeedPostVersusTu(txdName1: string | null, textureName1: string | null, count1: number, txdName2: string | null, textureName2: string | null, count2: number, hudColor1: number, hudColor2: number): number;
/**
* returns a notification handle, prints out a notification like below:
@@ -6309,7 +6309,7 @@ declare module "@altv/natives" {
* HUD::END_TEXT_COMMAND_THEFEED_POST_REPLAY_INPUT(1, 20, "Who you trynna get crazy with, ese? Don't you know I'm LOCO?!");
* - https://imgur.com/lGBPCz3
*/
- export function endTextCommandThefeedPostReplay(type: number, image: number, text: string): number;
+ export function endTextCommandThefeedPostReplay(type: number, image: number, text: string | null): number;
/**
* returns a notification handle, prints out a notification like below:
@@ -6324,7 +6324,7 @@ declare module "@altv/natives" {
* l_D1[1/*1*\/]=HUD::END_TEXT_COMMAND_THEFEED_POST_REPLAY_INPUT(1,"~INPUT_REPLAY_START_STOP_RECORDING~","");
* l_D1[2/*1*\/]=HUD::END_TEXT_COMMAND_THEFEED_POST_REPLAY_INPUT(1,"~INPUT_REPLAY_START_STOP_RECORDING_SECONDARY~","");
*/
- export function endTextCommandThefeedPostReplayInput(type: number, button: string, text: string): number;
+ export function endTextCommandThefeedPostReplayInput(type: number, button: string | null, text: string | null): number;
/**
* void ShowSubtitle(const char *text)
@@ -6334,7 +6334,7 @@ declare module "@altv/natives" {
* END_TEXT_COMMAND_PRINT(2000, true);
* }
*/
- export function beginTextCommandPrint(GxtEntry: string): void;
+ export function beginTextCommandPrint(GxtEntry: string | null): void;
/**
* Draws the subtitle at middle center of the screen.
@@ -6353,7 +6353,7 @@ declare module "@altv/natives" {
* return END_TEXT_COMMAND_IS_MESSAGE_DISPLAYED();
* }
*/
- export function beginTextCommandIsMessageDisplayed(text: string): void;
+ export function beginTextCommandIsMessageDisplayed(text: string | null): void;
export function endTextCommandIsMessageDisplayed(): boolean;
@@ -6364,7 +6364,7 @@ declare module "@altv/natives" {
* ESMINDOLLA - cash (negative)
* Used to be known as _SET_TEXT_ENTRY
*/
- export function beginTextCommandDisplayText(text: string): void;
+ export function beginTextCommandDisplayText(text: string | null): void;
/**
* After applying the properties to the text (See HUD::SET_TEXT_), this will draw the text in the applied position. Also 0.0f < x, y < 1.0f, percentage of the axis.
@@ -6372,7 +6372,7 @@ declare module "@altv/natives" {
*/
export function endTextCommandDisplayText(x: number, y: number, p2: number): void;
- export function beginTextCommandGetScreenWidthOfDisplayText(text: string): void;
+ export function beginTextCommandGetScreenWidthOfDisplayText(text: string | null): void;
export function endTextCommandGetScreenWidthOfDisplayText(p0: boolean): number;
@@ -6384,7 +6384,7 @@ declare module "@altv/natives" {
* return BEGIN_TEXT_COMMAND_GET_NUMBER_OF_LINES_FOR_STRING(x, y);
* }
*/
- export function beginTextCommandGetNumberOfLinesForString(entry: string): void;
+ export function beginTextCommandGetNumberOfLinesForString(entry: string | null): void;
/**
* Determines how many lines the text string will use when drawn on screen.
@@ -6395,7 +6395,7 @@ declare module "@altv/natives" {
/**
* Used to be known as _SET_TEXT_COMPONENT_FORMAT
*/
- export function beginTextCommandDisplayHelp(inputType: string): void;
+ export function beginTextCommandDisplayHelp(inputType: string | null): void;
/**
* shape goes from -1 to 50 (may be more).
@@ -6422,7 +6422,7 @@ declare module "@altv/natives" {
* return END_TEXT_COMMAND_IS_THIS_HELP_MESSAGE_BEING_DISPLAYED(0);
* }
*/
- export function beginTextCommandIsThisHelpMessageBeingDisplayed(labelName: string): void;
+ export function beginTextCommandIsThisHelpMessageBeingDisplayed(labelName: string | null): void;
export function endTextCommandIsThisHelpMessageBeingDisplayed(p0: number): boolean;
@@ -6434,25 +6434,25 @@ declare module "@altv/natives" {
* HUD::ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME("Name");
* HUD::END_TEXT_COMMAND_SET_BLIP_NAME(blip);
*/
- export function beginTextCommandSetBlipName(textLabel: string): void;
+ export function beginTextCommandSetBlipName(textLabel: string | null): void;
/**
* Finalizes a text command started with BEGIN_TEXT_COMMAND_SET_BLIP_NAME, setting the name of the specified blip.
*/
export function endTextCommandSetBlipName(blip: number): void;
- export function beginTextCommandAddDirectlyToPreviousBriefs(p0: string): void;
+ export function beginTextCommandAddDirectlyToPreviousBriefs(p0: string | null): void;
export function endTextCommandAddDirectlyToPreviousBriefs(p0: boolean): void;
/**
* clears a print text command with this text
*/
- export function beginTextCommandClearPrint(text: string): void;
+ export function beginTextCommandClearPrint(text: string | null): void;
export function endTextCommandClearPrint(): void;
- export function beginTextCommandOverrideButtonText(gxtEntry: string): void;
+ export function beginTextCommandOverrideButtonText(gxtEntry: string | null): void;
export function endTextCommandOverrideButtonText(p0: number): void;
@@ -6460,7 +6460,7 @@ declare module "@altv/natives" {
export function addTextComponentFloat(value: number, decimalPlaces: number): void;
- export function addTextComponentSubstringTextLabel(labelName: string): void;
+ export function addTextComponentSubstringTextLabel(labelName: string | null): void;
/**
* It adds the localized text of the specified GXT entry name. Eg. if the argument is GET_HASH_KEY("ES_HELP"), adds "Continue". Just uses a text labels hash key
@@ -6469,7 +6469,7 @@ declare module "@altv/natives" {
export function addTextComponentSubstringBlipName(blip: number): void;
- export function addTextComponentSubstringPlayerName(text: string): void;
+ export function addTextComponentSubstringPlayerName(text: string | null): void;
/**
* Adds a timer (e.g. "00:00:00:000"). The appearance of the timer depends on the flags, which needs more research.
@@ -6481,14 +6481,14 @@ declare module "@altv/natives" {
/**
* p1 was always -1
*/
- export function addTextComponentSubstringPhoneNumber(p0: string, p1: number): void;
+ export function addTextComponentSubstringPhoneNumber(p0: string | null, p1: number): void;
/**
* This native (along with ADD_TEXT_COMPONENT_SUBSTRING_KEYBOARD_DISPLAY and ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME) do not actually filter anything. They simply add the provided text (as of 944)
*/
- export function addTextComponentSubstringWebsite(website: string): void;
+ export function addTextComponentSubstringWebsite(website: string | null): void;
- export function addTextComponentSubstringKeyboardDisplay(string: string): void;
+ export function addTextComponentSubstringKeyboardDisplay(string: string | null): void;
export function setColourOfNextTextComponent(hudColor: number): void;
@@ -6498,7 +6498,7 @@ declare module "@altv/natives" {
* // Get "STRING" text from "MY_STRING"
* subStr = HUD::GET_CHARACTER_FROM_AUDIO_CONVERSATION_FILENAME("MY_STRING", 3, 6);
*/
- export function getCharacterFromAudioConversationFilename(text: string, position: number, length: number): string;
+ export function getCharacterFromAudioConversationFilename(text: string | null, position: number, length: number): string | null;
/**
* Returns a substring of a specified length starting at a specified position. The result is guaranteed not to exceed the specified max length.
@@ -6519,7 +6519,7 @@ declare module "@altv/natives" {
* return TRUE;
* }
*/
- export function getCharacterFromAudioConversationFilenameWithByteLimit(text: string, position: number, length: number, maxLength: number): string;
+ export function getCharacterFromAudioConversationFilenameWithByteLimit(text: string | null, position: number, length: number, maxLength: number): string | null;
/**
* Returns a substring that is between two specified positions. The length of the string will be calculated using (endPosition - startPosition).
@@ -6529,12 +6529,12 @@ declare module "@altv/natives" {
* // Overflows are possibly replaced with underscores (needs verification)
* subStr = HUD::GET_CHARACTER_FROM_AUDIO_CONVERSATION_FILENAME_BYTES("MY_STRING", 3, 10); // "STRING_"?
*/
- export function getCharacterFromAudioConversationFilenameBytes(text: string, startPosition: number, endPosition: number): string;
+ export function getCharacterFromAudioConversationFilenameBytes(text: string | null, startPosition: number, endPosition: number): string | null;
/**
* Gets a localized string literal from a label name. Can be used for output of e.g. VEHICLE::GET_LIVERY_NAME. To check if a GXT label can be localized with this, HUD::DOES_TEXT_LABEL_EXIST can be used.
*/
- export function getFilenameForAudioConversation(labelName: string): string;
+ export function getFilenameForAudioConversation(labelName: string | null): string | null;
export function clearPrints(): void;
@@ -6545,18 +6545,18 @@ declare module "@altv/natives" {
/**
* p0: found arguments in the b617d scripts: https://pastebin.com/X5akCN7z
*/
- export function clearThisPrint(p0: string): void;
+ export function clearThisPrint(p0: string | null): void;
export function clearSmallPrints(): void;
- export function doesTextBlockExist(gxt: string): boolean;
+ export function doesTextBlockExist(gxt: string | null): boolean;
/**
* Request a gxt into the passed slot.
*/
- export function requestAdditionalText(gxt: string, slot: number): void;
+ export function requestAdditionalText(gxt: string | null, slot: number): void;
- export function requestAdditionalTextForDlc(gxt: string, slot: number): void;
+ export function requestAdditionalTextForDlc(gxt: string | null, slot: number): void;
export function hasAdditionalTextLoaded(slot: number): boolean;
@@ -6567,34 +6567,34 @@ declare module "@altv/natives" {
/**
* Checks if the specified gxt has loaded into the passed slot.
*/
- export function hasThisAdditionalTextLoaded(gxt: string, slot: number): boolean;
+ export function hasThisAdditionalTextLoaded(gxt: string | null, slot: number): boolean;
export function isMessageBeingDisplayed(): boolean;
/**
* Checks if the passed gxt name exists in the game files.
*/
- export function doesTextLabelExist(gxt: string): boolean;
+ export function doesTextLabelExist(gxt: string | null): boolean;
- export function getFirstNCharactersOfLiteralString(string: string, length: number): string;
+ export function getFirstNCharactersOfLiteralString(string: string | null, length: number): string | null;
/**
* Returns the string length of the string from the gxt string .
*/
- export function getLengthOfStringWithThisTextLabel(gxt: string): number;
+ export function getLengthOfStringWithThisTextLabel(gxt: string | null): number;
/**
* Returns the length of the string passed (much like strlen).
*/
- export function getLengthOfLiteralString(string: string): number;
+ export function getLengthOfLiteralString(string: string | null): number;
- export function getLengthOfLiteralStringInBytes(string: string): number;
+ export function getLengthOfLiteralStringInBytes(string: string | null): number;
/**
* This functions converts the hash of a street name into a readable string.
* For how to get the hashes, see PATHFIND::GET_STREET_NAME_AT_COORD.
*/
- export function getStreetNameFromHashKey(hash: number): string;
+ export function getStreetNameFromHashKey(hash: number): string | null;
export function isHudPreferenceSwitchedOn(): boolean;
@@ -6787,15 +6787,15 @@ declare module "@altv/natives" {
*/
export function getDefaultScriptRendertargetRenderId(): number;
- export function registerNamedRendertarget(name: string, p1: boolean): boolean;
+ export function registerNamedRendertarget(name: string | null, p1: boolean): boolean;
- export function isNamedRendertargetRegistered(name: string): boolean;
+ export function isNamedRendertargetRegistered(name: string | null): boolean;
- export function releaseNamedRendertarget(name: string): boolean;
+ export function releaseNamedRendertarget(name: string | null): boolean;
export function linkNamedRendertarget(modelHash: number): void;
- export function getNamedRendertargetRenderId(name: string): number;
+ export function getNamedRendertargetRenderId(name: string | null): number;
export function isNamedRendertargetLinked(modelHash: number): boolean;
@@ -6910,7 +6910,7 @@ declare module "@altv/natives" {
/**
* Doesn't work if the label text of gxtEntry is >= 80.
*/
- export function setBlipNameFromTextFile(blip: number, gxtEntry: string): void;
+ export function setBlipNameFromTextFile(blip: number, gxtEntry: string | null): void;
export function setBlipNameToPlayerName(blip: number, player: Player | number): void;
@@ -7316,7 +7316,7 @@ declare module "@altv/natives" {
* p1 doesn't seem to make a difference, regardless of the state it's in.
* picture of where on the screen this is displayed?
*/
- export function displayHelpTextThisFrame(message: string, p1: boolean): void;
+ export function displayHelpTextThisFrame(message: string | null, p1: boolean): void;
/**
* Forces the weapon wheel to show/hide.
@@ -7432,11 +7432,11 @@ declare module "@altv/natives" {
export function setMinimapInSpectatorMode(toggle: boolean, ped: Ped | Player | LocalPlayer | number): void;
- export function setMissionName(p0: boolean, name: string): void;
+ export function setMissionName(p0: boolean, name: string | null): void;
- export function setMissionNameForUgcMission(p0: boolean, name: string): void;
+ export function setMissionNameForUgcMission(p0: boolean, name: string | null): void;
- export function setDescriptionForUgcMissionEightStrings(p0: boolean, p1: string, p2: string, p3: string, p4: string, p5: string, p6: string, p7: string, p8: string): void;
+ export function setDescriptionForUgcMissionEightStrings(p0: boolean, p1: string | null, p2: string | null, p3: string | null, p4: string | null, p5: string | null, p6: string | null, p7: string | null, p8: string | null): void;
export function setMinimapBlockWaypoint(toggle: boolean): void;
@@ -7646,14 +7646,14 @@ declare module "@altv/natives" {
/**
* clanFlag: takes a number 0-5
*/
- export function createMpGamerTagWithCrewColor(player: Player | number, username: string, pointedClanTag: boolean, isRockstarClan: boolean, clanTag: string, clanFlag: number, r: number, g: number, b: number): void;
+ export function createMpGamerTagWithCrewColor(player: Player | number, username: string | null, pointedClanTag: boolean, isRockstarClan: boolean, clanTag: string | null, clanFlag: number, r: number, g: number, b: number): void;
export function isMpGamerTagMovieActive(): boolean;
/**
* clanFlag: takes a number 0-5
*/
- export function createFakeMpGamerTag(ped: Ped | Player | LocalPlayer | number, username: string, pointedClanTag: boolean, isRockstarClan: boolean, clanTag: string, clanFlag: number): number;
+ export function createFakeMpGamerTag(ped: Ped | Player | LocalPlayer | number, username: string | null, pointedClanTag: boolean, isRockstarClan: boolean, clanTag: string | null, clanFlag: number): number;
export function removeMpGamerTag(gamerTagId: number): void;
@@ -7736,11 +7736,11 @@ declare module "@altv/natives" {
export function setMpGamerTagNumPackages(gamerTagId: number, p1: number): void;
- export function setMpGamerTagName(gamerTagId: number, string: string): void;
+ export function setMpGamerTagName(gamerTagId: number, string: string | null): void;
export function isUpdatingMpGamerTagNameAndCrewDetails(gamerTagId: number): boolean;
- export function setMpGamerTagBigText(gamerTagId: number, string: string): void;
+ export function setMpGamerTagBigText(gamerTagId: number, string: string | null): void;
export function getCurrentWebpageId(): number;
@@ -7767,14 +7767,14 @@ declare module "@altv/natives" {
* Example: SET_WARNING_MESSAGE("t20", 3, "adder", false, -1, 0, 0, true);
* errorCode: shows an error code at the bottom left if nonzero
*/
- export function setWarningMessage(titleMsg: string, flags: number, promptMsg: string, p3: boolean, p4: number, p5: string, p6: string, showBackground: boolean, errorCode: number): void;
+ export function setWarningMessage(titleMsg: string | null, flags: number, promptMsg: string | null, p3: boolean, p4: number, p5: string | null, p6: string | null, showBackground: boolean, errorCode: number): void;
/**
* Shows a warning message on screen with a header.
* Note: You can only use text entries. No custom text. You can recreate this easily with scaleforms.
* Example: https://i.imgur.com/ITJt8bJ.png
*/
- export function setWarningMessageWithHeader(entryHeader: string, entryLine1: string, instructionalKey: number, entryLine2: string, p4: boolean, p5: any, showBackground: any | null, p7: any | null, p8: boolean, p9: any): [any, any];
+ export function setWarningMessageWithHeader(entryHeader: string | null, entryLine1: string | null, instructionalKey: number, entryLine2: string | null, p4: boolean, p5: any, showBackground: any | null, p7: any | null, p8: boolean, p9: any): [any, any];
/**
* You can use this native for custom input, without having to use any scaleform-related natives.
@@ -7792,9 +7792,9 @@ declare module "@altv/natives" {
* Screenshot:
* https://imgur.com/a/IYA7vJ8
*/
- export function setWarningMessageWithHeaderAndSubstringFlags(entryHeader: string, entryLine1: string, instructionalKey: number, entryLine2: string, p4: boolean, p5: any, additionalIntInfo: any, additionalTextInfoLine1: string, additionalTextInfoLine2: string, showBackground: boolean, errorCode: number): void;
+ export function setWarningMessageWithHeaderAndSubstringFlags(entryHeader: string | null, entryLine1: string | null, instructionalKey: number, entryLine2: string | null, p4: boolean, p5: any, additionalIntInfo: any, additionalTextInfoLine1: string | null, additionalTextInfoLine2: string | null, showBackground: boolean, errorCode: number): void;
- export function setWarningMessageWithHeaderExtended(entryHeader: string, entryLine1: string, flags: number, entryLine2: string, p4: boolean, p5: any, p6: any | null, p7: any | null, showBg: boolean, p9: any, p10: any): [any, any];
+ export function setWarningMessageWithHeaderExtended(entryHeader: string | null, entryLine1: string | null, flags: number, entryLine2: string | null, p4: boolean, p5: any, p6: any | null, p7: any | null, showBg: boolean, p9: any, p10: any): [any, any];
/**
* labelTitle: Label of the alert's title.
@@ -7853,7 +7853,7 @@ declare module "@altv/natives" {
* }
* Example: https://i.imgur.com/TvmNF4k.png
*/
- export function setWarningMessageWithHeaderAndSubstringFlagsExtended(labelTitle: string, labelMessage: string, p2: number, p3: number, labelMessage2: string, p5: boolean, p6: number, p7: number, p8: string, p9: string, background: boolean, errorCode: number): void;
+ export function setWarningMessageWithHeaderAndSubstringFlagsExtended(labelTitle: string | null, labelMessage: string | null, p2: number, p3: number, labelMessage2: string | null, p5: boolean, p6: number, p7: number, p8: string | null, p9: string | null, background: boolean, errorCode: number): void;
/**
* Has to do with the confirmation overlay (E.g. confirm exit)
@@ -7865,7 +7865,7 @@ declare module "@altv/natives" {
* Param names copied from the corresponding scaleform function "SET_LIST_ROW".
* Example: https://i.imgur.com/arKvOYx.png
*/
- export function setWarningMessageOptionItems(index: number, name: string, cash: number, rp: number, lvl: number, colour: number): boolean;
+ export function setWarningMessageOptionItems(index: number, name: string | null, cash: number, rp: number, lvl: number, colour: number): boolean;
export function setWarningMessageOptionHighlight(p0: any): boolean;
@@ -8010,7 +8010,7 @@ declare module "@altv/natives" {
* Not present in retail version of the game, actual definiton seems to be
* _LOG_DEBUG_INFO(const char* category, const char* debugText);
*/
- export function forceScriptedGfxWhenFrontendActive(p0: string): void;
+ export function forceScriptedGfxWhenFrontendActive(p0: string | null): void;
export function pauseMenuceptionGoDeeper(page: number): void;
@@ -8159,7 +8159,7 @@ declare module "@altv/natives" {
* HUD::SET_SOCIAL_CLUB_TOUR("General");
* HUD::SET_SOCIAL_CLUB_TOUR("Playlists");
*/
- export function setSocialClubTour(name: string): void;
+ export function setSocialClubTour(name: string | null): void;
export function isSocialClubActive(): boolean;
@@ -8296,7 +8296,7 @@ declare module "@altv/natives" {
* Example of use (carmod_shop)
* INTERIOR::SET_ROOM_FOR_GAME_VIEWPORT_BY_NAME("V_CarModRoom");
*/
- export function setRoomForGameViewportByName(roomName: string): void;
+ export function setRoomForGameViewportByName(roomName: string | null): void;
/**
* Usage: INTERIOR::SET_ROOM_FOR_GAME_VIEWPORT_BY_KEY(INTERIOR::GET_KEY_FOR_ENTITY_IN_ROOM(PLAYER::PLAYER_PED_ID()));
@@ -8319,7 +8319,7 @@ declare module "@altv/natives" {
*/
export function getInteriorAtCoords(x: number, y: number, z: number): number;
- export function addPickupToInteriorRoomByName(pickup: number, roomName: string): void;
+ export function addPickupToInteriorRoomByName(pickup: number, roomName: string | null): void;
export function pinInteriorInMemory(interior: number): void;
@@ -8343,7 +8343,7 @@ declare module "@altv/natives" {
* Interior types include: "V_Michael", "V_Franklins", "V_Franklinshouse", etc.. you can find them in the scripts.
* Not a very useful native as you could just use GET_INTERIOR_AT_COORDS instead and get the same result, without even having to specify the interior type.
*/
- export function getInteriorAtCoordsWithType(x: number, y: number, z: number, interiorType: string): number;
+ export function getInteriorAtCoordsWithType(x: number, y: number, z: number, interiorType: string | null): number;
/**
* Hashed version of GET_INTERIOR_AT_COORDS_WITH_TYPE
@@ -8365,22 +8365,22 @@ declare module "@altv/natives" {
* More info: http://gtaforums.com/topic/836367-adding-props-to-interiors/
* Full list of IPLs and interior entity sets by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/ipls.json
*/
- export function activateInteriorEntitySet(interior: number, entitySetName: string): void;
+ export function activateInteriorEntitySet(interior: number, entitySetName: string | null): void;
/**
* Full list of IPLs and interior entity sets by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/ipls.json
*/
- export function deactivateInteriorEntitySet(interior: number, entitySetName: string): void;
+ export function deactivateInteriorEntitySet(interior: number, entitySetName: string | null): void;
/**
* Full list of IPLs and interior entity sets by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/ipls.json
*/
- export function isInteriorEntitySetActive(interior: number, entitySetName: string): boolean;
+ export function isInteriorEntitySetActive(interior: number, entitySetName: string | null): boolean;
/**
* Full list of IPLs and interior entity sets by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/ipls.json
*/
- export function setInteriorEntitySetTintIndex(interior: number, entitySetName: string, color: number): void;
+ export function setInteriorEntitySetTintIndex(interior: number, entitySetName: string | null, color: number): void;
export function refreshInterior(interior: number): void;
@@ -8514,22 +8514,22 @@ declare module "@altv/natives" {
/**
* Returns pointer to an empty string.
*/
- export function getContentToLoad(): string;
+ export function getContentToLoad(): string | null;
/**
* Does nothing (it's a nullsub). Seems to be PS4 specific.
*/
- export function activityFeedCreate(p0: string, p1: string): void;
+ export function activityFeedCreate(p0: string | null, p1: string | null): void;
/**
* Does nothing (it's a nullsub). Seems to be PS4 specific.
*/
- export function activityFeedAddSubstringToCaption(p0: string): void;
+ export function activityFeedAddSubstringToCaption(p0: string | null): void;
/**
* Does nothing (it's a nullsub). Seems to be PS4 specific.
*/
- export function activityFeedAddLiteralSubstringToCaption(p0: string): void;
+ export function activityFeedAddLiteralSubstringToCaption(p0: string | null): void;
/**
* Does nothing (it's a nullsub). Seems to be PS4 specific.
@@ -8539,17 +8539,17 @@ declare module "@altv/natives" {
/**
* Does nothing (it's a nullsub). Seems to be PS4 specific.
*/
- export function activityFeedLargeImageUrl(p0: string): void;
+ export function activityFeedLargeImageUrl(p0: string | null): void;
/**
* Does nothing (it's a nullsub). Seems to be PS4 specific.
*/
- export function activityFeedActionStartWithCommandLine(p0: string, p1: string): void;
+ export function activityFeedActionStartWithCommandLine(p0: string | null, p1: string | null): void;
/**
* Does nothing (it's a nullsub). Seems to be PS4 specific.
*/
- export function activityFeedActionStartWithCommandLineAdd(p0: string): void;
+ export function activityFeedActionStartWithCommandLineAdd(p0: string | null): void;
/**
* Does nothing (it's a nullsub). Seems to be PS4 specific.
@@ -8560,7 +8560,7 @@ declare module "@altv/natives" {
* Does nothing (it's a nullsub). Seems to be PS4 specific.
* Used only once in the scripts (ingamehud) with p0 = "AF_GAMEMODE"
*/
- export function activityFeedOnlinePlayedWithPost(p0: string): void;
+ export function activityFeedOnlinePlayedWithPost(p0: string | null): void;
/**
* Hardcoded to return false.
@@ -8577,7 +8577,7 @@ declare module "@altv/natives" {
*/
export function setThisIsATriggerScript(toggle: boolean): void;
- export function informCodeOfContentIdOfCurrentUgcMission(p0: string): void;
+ export function informCodeOfContentIdOfCurrentUgcMission(p0: string | null): void;
export function getBaseElementLocationFromMetadataBlock(p0: any | null, p1: any | null, p2: any, p3: boolean): [boolean, any, any];
@@ -8591,9 +8591,9 @@ declare module "@altv/natives" {
*/
export function getNextWeatherTypeHashName(): number;
- export function isPrevWeatherType(weatherType: string): boolean;
+ export function isPrevWeatherType(weatherType: string | null): boolean;
- export function isNextWeatherType(weatherType: string): boolean;
+ export function isNextWeatherType(weatherType: string | null): boolean;
/**
* The following weatherTypes are used in the scripts:
@@ -8613,7 +8613,7 @@ declare module "@altv/natives" {
* "HALLOWEEN"
* "NEUTRAL"
*/
- export function setWeatherTypePersist(weatherType: string): void;
+ export function setWeatherTypePersist(weatherType: string | null): void;
/**
* The following weatherTypes are used in the scripts:
@@ -8633,7 +8633,7 @@ declare module "@altv/natives" {
* "HALLOWEEN"
* "NEUTRAL"
*/
- export function setWeatherTypeNowPersist(weatherType: string): void;
+ export function setWeatherTypeNowPersist(weatherType: string | null): void;
/**
* The following weatherTypes are used in the scripts:
@@ -8653,9 +8653,9 @@ declare module "@altv/natives" {
* "HALLOWEEN"
* "NEUTRAL"
*/
- export function setWeatherTypeNow(weatherType: string): void;
+ export function setWeatherTypeNow(weatherType: string | null): void;
- export function setWeatherTypeOvertimePersist(weatherType: string, time: number): void;
+ export function setWeatherTypeOvertimePersist(weatherType: string | null, time: number): void;
export function setRandomWeatherType(): void;
@@ -8693,12 +8693,12 @@ declare module "@altv/natives" {
* Appears to have an optional bool parameter that is unused in the scripts.
* If you pass true, something will be set to zero.
*/
- export function setOverrideWeather(weatherType: string): void;
+ export function setOverrideWeather(weatherType: string | null): void;
/**
* Identical to SET_OVERRIDE_WEATHER but has an additional BOOL param that sets some weather var to 0 if true
*/
- export function setOverrideWeatherex(weatherType: string, p1: boolean): void;
+ export function setOverrideWeatherex(weatherType: string | null, p1: boolean): void;
export function clearOverrideWeather(): void;
@@ -8774,9 +8774,9 @@ declare module "@altv/natives" {
*/
export function forceLightningFlash(): void;
- export function setCloudSettingsOverride(p0: string): void;
+ export function setCloudSettingsOverride(p0: string | null): void;
- export function preloadCloudHat(name: string): void;
+ export function preloadCloudHat(name: string | null): void;
/**
* The following cloudhats are useable:
@@ -8801,9 +8801,9 @@ declare module "@altv/natives" {
* shower
* Wispy
*/
- export function loadCloudHat(name: string, transitionTime: number): void;
+ export function loadCloudHat(name: string | null, transitionTime: number): void;
- export function unloadCloudHat(name: string, p1: number): void;
+ export function unloadCloudHat(name: string | null, p1: number): void;
export function unloadAllCloudHats(): void;
@@ -8902,7 +8902,7 @@ declare module "@altv/natives" {
/**
* This native converts its past string to hash. It is hashed using jenkins one at a time method.
*/
- export function getHashKey(string: string): number;
+ export function getHashKey(string: string | null): number;
/**
* This native always come right before SET_ENTITY_QUATERNION where its final 4 parameters are SLERP_NEAR_QUATERNION p9 to p12
@@ -8984,7 +8984,7 @@ declare module "@altv/natives" {
export function areCreditsRunning(): boolean;
- export function terminateAllScriptsWithThisName(scriptName: string): void;
+ export function terminateAllScriptsWithThisName(scriptName: string | null): void;
export function networkSetScriptIsSafeForNetworkGame(): void;
@@ -9037,7 +9037,7 @@ declare module "@altv/natives" {
/**
* returns savehouseHandle
*/
- export function registerSaveHouse(x: number, y: number, z: number, p3: number, p4: string, p5: any, p6: any): number;
+ export function registerSaveHouse(x: number, y: number, z: number, p3: number, p4: string | null, p5: any, p6: any): number;
export function setSaveHouse(savehouseHandle: number, p1: boolean, p2: boolean): void;
@@ -9140,7 +9140,7 @@ declare module "@altv/natives" {
export function getProfileSetting(profileSetting: number): number;
- export function areStringsEqual(string1: string, string2: string): boolean;
+ export function areStringsEqual(string1: string | null, string2: string | null): boolean;
/**
* Compares two strings up to a specified number of characters.
@@ -9164,7 +9164,7 @@ declare module "@altv/natives" {
* MISC::COMPARE_STRINGS("A", "a", true, 1); // -1; 'A' < 'a'
* MISC::COMPARE_STRINGS("a", "A", true, 1); // 1; 'a' > 'A'
*/
- export function compareStrings(str1: string, str2: string, matchCase: boolean, maxLength: number): number;
+ export function compareStrings(str1: string | null, str2: string | null, matchCase: boolean, maxLength: number): number;
export function absi(value: number): number;
@@ -9259,19 +9259,19 @@ declare module "@altv/natives" {
*/
export function isProsperoVersion(): boolean;
- export function isStringNull(string: string): boolean;
+ export function isStringNull(string: string | null): boolean;
- export function isStringNullOrEmpty(string: string): boolean;
+ export function isStringNullOrEmpty(string: string | null): boolean;
/**
* 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.
* If all checks have passed successfully, the return value will be set to whatever strtol(string, 0i64, 10); returns.
*/
- export function stringToInt(string: string, outInteger?: number | null): [boolean, number];
+ export function stringToInt(string: string | null, outInteger?: number | null): [boolean, number];
- export function setBitsInRange(value: number | null, rangeStart: number, rangeEnd: number, p3: number): number;
+ export function setBitsInRange(unkVar: number | null, rangeStart: number, rangeEnd: number, p3: number): number;
- export function getBitsInRange(value: number, rangeStart: number, rangeEnd: number): number;
+ export function getBitsInRange(unkVar: number, rangeStart: number, rangeEnd: number): number;
/**
* See description of `ADD_STUNT_JUMP_ANGLED` for detailed info. The only difference really is this one does not have the radius (or angle, not sure) floats parameters for entry and landing zones.
@@ -9387,24 +9387,24 @@ declare module "@altv/natives" {
export function getSizeOfSaveData(p0: boolean): number;
- export function registerIntToSave(p0: any | null, name: string): any;
+ export function registerIntToSave(p0: any | null, name: string | null): any;
- export function registerInt64ToSave(p0: any | null, name: string): any;
+ export function registerInt64ToSave(p0: any | null, name: string | null): any;
- export function registerEnumToSave(p0: any | null, name: string): any;
+ export function registerEnumToSave(p0: any | null, name: string | null): any;
- export function registerFloatToSave(p0: any | null, name: string): any;
+ export function registerFloatToSave(p0: any | null, name: string | null): any;
- export function registerBoolToSave(p0: any | null, name: string): any;
+ export function registerBoolToSave(p0: any | null, name: string | null): any;
- export function registerTextLabelToSave(p0: any | null, name: string): any;
+ export function registerTextLabelToSave(p0: any | null, name: string | null): any;
/**
* MISC::REGISTER_TEXT_LABEL_15_TO_SAVE(&a_0._f1, "tlPlateText");
* MISC::REGISTER_TEXT_LABEL_15_TO_SAVE(&a_0._f1C, "tlPlateText_pending");
* MISC::REGISTER_TEXT_LABEL_15_TO_SAVE(&a_0._f10B, "tlCarAppPlateText");
*/
- export function registerTextLabel15ToSave(p0: any | null, name: string): any;
+ export function registerTextLabel15ToSave(p0: any | null, name: string | null): any;
/**
* Only found 3 times in decompiled scripts.
@@ -9412,14 +9412,14 @@ declare module "@altv/natives" {
* MISC::REGISTER_TEXT_LABEL_23_TO_SAVE(&a_0._fB, "Ringtone_For_This_Player");
* MISC::REGISTER_TEXT_LABEL_23_TO_SAVE(&a_0._f1EC4._f12[v_A/*6*\/], &v_13); // where v_13 is "MPATMLOGSCRS0" thru "MPATMLOGSCRS15"
*/
- export function registerTextLabel23ToSave(p0: any | null, name: string): any;
+ export function registerTextLabel23ToSave(p0: any | null, name: string | null): any;
/**
* Only found 2 times in decompiled scripts.
* MISC::REGISTER_TEXT_LABEL_31_TO_SAVE(&a_0._f1F5A._f6[0/*8*\/], "TEMPSTAT_LABEL"); // gets saved in a struct called "g_SaveData_STRING_ScriptSaves"
* MISC::REGISTER_TEXT_LABEL_31_TO_SAVE(&a_0._f4B4[v_1A/*8*\/], &v_5); // where v_5 is "Name0" thru "Name9", gets saved in a struct called "OUTFIT_Name"
*/
- export function registerTextLabel31ToSave(p0: any | null, name: string): any;
+ export function registerTextLabel31ToSave(p0: any | null, name: string | null): any;
/**
* MISC::REGISTER_TEXT_LABEL_63_TO_SAVE(a_0, "Thumb_label");
@@ -9433,13 +9433,13 @@ declare module "@altv/natives" {
* MISC::REGISTER_TEXT_LABEL_63_TO_SAVE(&a_0._f4B, "PAID_PLAYER");
* MISC::REGISTER_TEXT_LABEL_63_TO_SAVE(&a_0._f5B, "RADIO_STATION");
*/
- export function registerTextLabel63ToSave(p0: any | null, name: string): any;
+ export function registerTextLabel63ToSave(p0: any | null, name: string | null): any;
- export function startSaveStructWithSize(p0: any | null, size: number, structName: string): any;
+ export function startSaveStructWithSize(p0: any | null, size: number, structName: string | null): any;
export function stopSaveStruct(): void;
- export function startSaveArrayWithSize(p0: any | null, size: number, arrayName: string): any;
+ export function startSaveArrayWithSize(p0: any | null, size: number, arrayName: string | null): any;
export function stopSaveArray(): void;
@@ -9532,7 +9532,7 @@ declare module "@altv/natives" {
/**
* Full list of animation dictionaries and anims by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animDictsCompact.json
*/
- export function playTennisSwingAnim(ped: Ped | Player | LocalPlayer | number, animDict: string, animName: string, p3: number, p4: number, p5: boolean): void;
+ export function playTennisSwingAnim(ped: Ped | Player | LocalPlayer | number, animDict: string | null, animName: string | null, p3: number, p4: number, p5: boolean): void;
export function getTennisSwingAnimComplete(ped: Ped | Player | LocalPlayer | number): boolean;
@@ -9547,7 +9547,7 @@ declare module "@altv/natives" {
* MISC::SET_TENNIS_MOVE_NETWORK_SIGNAL_FLOAT(sub_aa49(a_0), "ForcedStopDirection", v_E);
* Related to tennis mode.
*/
- export function setTennisMoveNetworkSignalFloat(ped: Ped | Player | LocalPlayer | number, p1: string, p2: number): void;
+ export function setTennisMoveNetworkSignalFloat(ped: Ped | Player | LocalPlayer | number, p1: string | null, p2: number): void;
export function resetDispatchSpawnLocation(): void;
@@ -9588,7 +9588,7 @@ declare module "@altv/natives" {
*/
export function setRiotModeEnabled(toggle: boolean): void;
- export function displayOnscreenKeyboardWithLongerInitialString(p0: number, windowTitle: string, p2: any | null, defaultText: string, defaultConcat1: string, defaultConcat2: string, defaultConcat3: string, defaultConcat4: string, defaultConcat5: string, defaultConcat6: string, defaultConcat7: string, maxInputLength: number): any;
+ export function displayOnscreenKeyboardWithLongerInitialString(p0: number, windowTitle: string | null, p2: any | null, defaultText: string | null, defaultConcat1: string | null, defaultConcat2: string | null, defaultConcat3: string | null, defaultConcat4: string | null, defaultConcat5: string | null, defaultConcat6: string | null, defaultConcat7: string | null, maxInputLength: number): any;
/**
* sfink: note, p0 is set to 6 for PC platform in at least 1 script, or to `unk::_get_ui_language_id() == 0` otherwise.
@@ -9621,7 +9621,7 @@ declare module "@altv/natives" {
* FMMC_KEY_TIP9N = "Outfit Name"
* PM_NAME_CHALL = "Enter Challenge Name"
*/
- export function displayOnscreenKeyboard(p0: number, windowTitle: string, p2: string, defaultText: string, defaultConcat1: string, defaultConcat2: string, defaultConcat3: string, maxInputLength: number): void;
+ export function displayOnscreenKeyboard(p0: number, windowTitle: string | null, p2: string | null, defaultText: string | null, defaultConcat1: string | null, defaultConcat2: string | null, defaultConcat3: string | null, maxInputLength: number): void;
/**
* Returns the current status of the onscreen keyboard, and updates the output.
@@ -9636,7 +9636,7 @@ declare module "@altv/natives" {
/**
* Returns NULL unless UPDATE_ONSCREEN_KEYBOARD() returns 1 in the same tick.
*/
- export function getOnscreenKeyboardResult(): string;
+ export function getOnscreenKeyboardResult(): string | null;
/**
* DO NOT use this as it doesn't clean up the text input box properly and your script will get stuck in the UPDATE_ONSCREEN_KEYBOARD() loop.
@@ -9937,9 +9937,9 @@ declare module "@altv/natives" {
* -----
* Unknown bool value
*/
- export function networkRefundCash(index: number, context: string, reason: string, p3: boolean): void;
+ export function networkRefundCash(index: number, context: string | null, reason: string | null, p3: boolean): void;
- export function networkDeductCash(amount: number, p1: string, p2: string, p3: boolean, p4: boolean, p5: boolean): void;
+ export function networkDeductCash(amount: number, p1: string | null, p2: string | null, p3: boolean, p4: boolean, p5: boolean): void;
export function networkMoneyCanBet(amount: number, p1: boolean, p2: boolean): boolean;
@@ -9990,15 +9990,15 @@ declare module "@altv/natives" {
export function networkEarnFromCrateDrop(amount: number): void;
- export function networkEarnFromBetting(amount: number, p1: string): void;
+ export function networkEarnFromBetting(amount: number, p1: string | null): void;
- export function networkEarnFromJob(amount: number, p1: string): void;
+ export function networkEarnFromJob(amount: number, p1: string | null): void;
- export function networkEarnFromJobx2(amount: number, p1: string): void;
+ export function networkEarnFromJobx2(amount: number, p1: string | null): void;
- export function networkEarnFromPremiumJob(amount: number, p1: string): void;
+ export function networkEarnFromPremiumJob(amount: number, p1: string | null): void;
- export function networkEarnFromBendJob(amount: number, heistHash: string): void;
+ export function networkEarnFromBendJob(amount: number, heistHash: string | null): void;
export function networkEarnFromChallengeWin(p0: any, p1: any | null, p2: boolean): any;
@@ -10024,12 +10024,12 @@ declare module "@altv/natives" {
/**
* type either Monthly,Weekly,Daily
*/
- export function networkEarnFromDailyObjectives(amount: number, type: string, characterSlot: number): void;
+ export function networkEarnFromDailyObjectives(amount: number, type: string | null, characterSlot: number): void;
/**
* Example for p1: "AM_DISTRACT_COPS"
*/
- export function networkEarnFromAmbientJob(p0: number, p1: string, p2?: any | null): any;
+ export function networkEarnFromAmbientJob(p0: number, p1: string | null, p2?: any | null): any;
export function networkEarnFromJobBonus(p0: any, p1?: any | null, p2?: any | null): [any, any];
@@ -10081,15 +10081,15 @@ declare module "@altv/natives" {
export function networkCanSpendMoney2(p0: any, p1: boolean, p2: boolean, p3: boolean, p4: any | null, p5: any, p6: any): [boolean, any];
- export function networkBuyItem(amount: number, item: number, p2: any, p3: any, p4: boolean, item_name: string, p6: any, p7: any, p8: any, p9: boolean): void;
+ export function networkBuyItem(amount: number, item: number, p2: any, p3: any, p4: boolean, item_name: string | null, p6: any, p7: any, p8: any, p9: boolean): void;
export function networkSpentTaxi(amount: number, p1: boolean, p2: boolean, p3: any, p4: any): void;
export function networkPayEmployeeWage(p0: any, p1: boolean, p2: boolean): void;
- export function networkPayMatchEntryFee(amount: number, matchId: string, p2: boolean, p3: boolean): void;
+ export function networkPayMatchEntryFee(amount: number, matchId: string | null, p2: boolean, p3: boolean): void;
- export function networkSpentBetting(amount: number, p1: number, matchId: string, p3: boolean, p4: boolean): void;
+ export function networkSpentBetting(amount: number, p1: number, matchId: string | null, p3: boolean, p4: boolean): void;
export function networkSpentWager(p0: any, p1: any, amount: number): void;
@@ -10188,7 +10188,7 @@ declare module "@altv/natives" {
/**
* This isn't a hash collision.
*/
- export function processCashGift(p0: number | null, p1: number | null, p2: string): [string, number, number];
+ export function processCashGift(p0: number | null, p1: number | null, p2: string | null): [string | null, number, number];
export function networkSpentMoveSubmarine(p0: any, p1: any, p2: any): void;
@@ -10212,7 +10212,7 @@ declare module "@altv/natives" {
export function networkEconomyHasFixedCrazyNumbers(): boolean;
- export function networkSpentJobSkip(amount: number, matchId: string, p2: boolean, p3: boolean): void;
+ export function networkSpentJobSkip(amount: number, matchId: string | null, p2: boolean, p3: boolean): void;
export function networkSpentBossGoon(amount: number, p1: boolean, p2: boolean): boolean;
@@ -10336,9 +10336,9 @@ declare module "@altv/natives" {
export function networkEarnDoomsdayFinaleBonus(amount: number, vehicleHash: number): void;
- export function networkEarnGangopsAward(amount: number, p1: string, p2: any): void;
+ export function networkEarnGangopsAward(amount: number, p1: string | null, p2: any): void;
- export function networkEarnGangopsElite(amount: number, p1: string, actIndex: number): void;
+ export function networkEarnGangopsElite(amount: number, p1: string | null, actIndex: number): void;
export function networkServiceEarnGangopsRivalDelivery(earnedMoney: number): void;
@@ -10348,9 +10348,9 @@ declare module "@altv/natives" {
export function networkEarnGangopsPrepParticipation(amount: number): void;
- export function networkEarnGangopsSetup(amount: number, p1: string): void;
+ export function networkEarnGangopsSetup(amount: number, p1: string | null): void;
- export function networkEarnGangopsFinale(amount: number, p1: string): void;
+ export function networkEarnGangopsFinale(amount: number, p1: string | null): void;
export function networkSpendGangopsRepairCost(p0: any, p1: any, p2: any): void;
@@ -10392,9 +10392,9 @@ declare module "@altv/natives" {
export function networkSpendMakeItRain(amount: number, p1: boolean, p2: boolean): void;
- export function networkSpendBuyArena(amount: number, p1: boolean, p2: boolean, p3: string): void;
+ export function networkSpendBuyArena(amount: number, p1: boolean, p2: boolean, p3: string | null): void;
- export function networkSpendUpgradeArena(amount: number, p1: boolean, p2: boolean, p3: string): void;
+ export function networkSpendUpgradeArena(amount: number, p1: boolean, p2: boolean, p3: string | null): void;
/**
* type either, 1 for cam spectate, 2 for drone
@@ -10670,12 +10670,12 @@ declare module "@altv/natives" {
*/
export function networkSpentMissileJammer(amount: number, fromBank: boolean, fromBankAndWallet: boolean, p3: number): void;
- export function networkSpentGeneric(price: number, p1: boolean, p2: boolean, stat: number, spent: number, p5: string, p6: string, data?: any | null): any;
+ export function networkSpentGeneric(price: number, p1: boolean, p2: boolean, stat: number, spent: number, p5: string | null, p6: string | null, data?: any | null): any;
/**
* _NETWORK_EARN_G*
*/
- export function networkEarnGeneric(amount: number, earn: number, p2: string, p3: string, data?: any | null): any;
+ export function networkEarnGeneric(amount: number, earn: number, p2: string | null, p3: string | null, data?: any | null): any;
export function networkClearTransactionTelemetryNonce(): void;
@@ -10689,11 +10689,11 @@ declare module "@altv/natives" {
export function networkGetPvcBalance(): number;
- export function networkGetStringWalletBalance(characterSlot: number): string;
+ export function networkGetStringWalletBalance(characterSlot: number): string | null;
- export function networkGetStringBankBalance(): string;
+ export function networkGetStringBankBalance(): string | null;
- export function networkGetStringBankWalletBalance(character: number): string;
+ export function networkGetStringBankWalletBalance(character: number): string | null;
/**
* Returns true if wallet balance >= amount.
@@ -10749,7 +10749,7 @@ declare module "@altv/natives" {
export function netGameserverUseServerTransactions(): boolean;
- export function netGameserverCatalogItemIsValid(name: string): boolean;
+ export function netGameserverCatalogItemIsValid(name: string | null): boolean;
export function netGameserverCatalogItemKeyIsValid(hash: number): boolean;
@@ -10849,7 +10849,7 @@ declare module "@altv/natives" {
* 1.33
* _GET_ONLINE_VERSION() will return "1.33"
*/
- export function getOnlineVersion(): string;
+ export function getOnlineVersion(): string | null;
/**
* Returns whether the player is signed into Social Club.
@@ -11252,7 +11252,7 @@ declare module "@altv/natives" {
/**
* Message is limited to 64 characters.
*/
- export function networkSendTextMessage(message: string, gamerHandle?: any | null): [boolean, any];
+ export function networkSendTextMessage(message: string | null, gamerHandle?: any | null): [boolean, any];
export function networkSetActivitySpectator(toggle: boolean): void;
@@ -11353,9 +11353,9 @@ declare module "@altv/natives" {
export function networkApplyTransitionParameter(p0: number, p1: number): void;
- export function networkApplyTransitionParameterString(p0: number, string: string, p2: boolean): void;
+ export function networkApplyTransitionParameterString(p0: number, string: string | null, p2: boolean): void;
- export function networkSendTransitionGamerInstruction(gamerHandle: any | null, p1: string, p2: number, p3: number, p4: boolean): [boolean, any];
+ export function networkSendTransitionGamerInstruction(gamerHandle: any | null, p1: string | null, p2: number, p3: number, p4: boolean): [boolean, any];
export function networkMarkTransitionGamerAsFullyJoined(p0?: any | null): [boolean, any];
@@ -11423,14 +11423,14 @@ declare module "@altv/natives" {
*/
export function networkSetPresenceSessionInvitesBlocked(toggle: boolean): void;
- export function networkSendInviteViaPresence(gamerHandle: any | null, p1: string, dataCount: number, p3: number): [boolean, any];
+ export function networkSendInviteViaPresence(gamerHandle: any | null, p1: string | null, dataCount: number, p3: number): [boolean, any];
- export function networkSendTransitionInviteViaPresence(gamerHandle: any | null, p1: string, dataCount: number, p3: number): [boolean, any];
+ export function networkSendTransitionInviteViaPresence(gamerHandle: any | null, p1: string | null, dataCount: number, p3: number): [boolean, any];
/**
* Contains the string "NETWORK_SEND_PRESENCE_TRANSITION_INVITE" but so does 0xC116FF9B4D488291; seems to fit alphabetically here, tho.
*/
- export function networkSendImportantTransitionInviteViaPresence(gamerHandle: any | null, p1: string, dataCount: number, p3: number): [boolean, any];
+ export function networkSendImportantTransitionInviteViaPresence(gamerHandle: any | null, p1: string | null, dataCount: number, p3: number): [boolean, any];
export function networkGetPresenceInviteIndexById(p0: number): number;
@@ -11442,13 +11442,13 @@ declare module "@altv/natives" {
export function networkGetPresenceInviteId(p0: number): number;
- export function networkGetPresenceInviteInviter(p0: number): string;
+ export function networkGetPresenceInviteInviter(p0: number): string | null;
export function networkGetPresenceInviteHandle(p0: any, p1?: any | null): [boolean, any];
export function networkGetPresenceInviteSessionId(p0: any): number;
- export function networkGetPresenceInviteContentId(p0: number): string;
+ export function networkGetPresenceInviteContentId(p0: number): string | null;
export function networkGetPresenceInvitePlaylistLength(p0: number): number;
@@ -11572,9 +11572,9 @@ declare module "@altv/natives" {
export function networkGetScriptStatus(): number;
- export function networkRegisterHostBroadcastVariables(vars: number | null, numVars: number, debugName: string): number;
+ export function networkRegisterHostBroadcastVariables(vars: number | null, numVars: number, debugName: string | null): number;
- export function networkRegisterPlayerBroadcastVariables(vars: number | null, numVars: number, debugName: string): number;
+ export function networkRegisterPlayerBroadcastVariables(vars: number | null, numVars: number, debugName: string | null): number;
export function networkRegisterHighFrequencyHostBroadcastVariables(p0: any, p1: any, p2: any): void;
@@ -11619,23 +11619,23 @@ declare module "@altv/natives" {
* instance_id = -1
* position_hash = 0
*/
- export function networkGetHostOfScript(scriptName: string, instance_id: number, position_hash: number): number;
+ export function networkGetHostOfScript(scriptName: string | null, instance_id: number, position_hash: number): number;
export function networkSetMissionFinished(): void;
- export function networkIsScriptActive(scriptName: string, instance_id: number, p2: boolean, position_hash: number): boolean;
+ export function networkIsScriptActive(scriptName: string | null, instance_id: number, p2: boolean, position_hash: number): boolean;
export function networkIsScriptActiveByHash(scriptHash: number, p1: number, p2: boolean, p3: number): boolean;
export function networkIsThreadANetworkScript(threadId: number): boolean;
- export function networkGetNumScriptParticipants(scriptName: string, instance_id: number, position_hash: number): number;
+ export function networkGetNumScriptParticipants(scriptName: string | null, instance_id: number, position_hash: number): number;
export function networkGetInstanceIdOfThisScript(): number;
export function networkGetPositionHashOfThisScript(): number;
- export function networkIsPlayerAParticipantOnScript(player: Player | number, script: string, instance_id: number): boolean;
+ export function networkIsPlayerAParticipantOnScript(player: Player | number, script: string | null, instance_id: number): boolean;
export function networkPreventScriptHostMigration(): void;
@@ -11667,7 +11667,7 @@ declare module "@altv/natives" {
export function networkGetEntityKillerOfPlayer(player: Player | number, weaponHash?: number | null): [number, number];
- export function networkSetCurrentPublicContentId(missionId: string): void;
+ export function networkSetCurrentPublicContentId(missionId: string | null): void;
export function networkSetCurrentChatOption(newChatOption: number): void;
@@ -11796,9 +11796,9 @@ declare module "@altv/natives" {
export function networkGetLocalHandle(gamerHandle: any | null, gamerHandleSize: number): any;
- export function networkHandleFromUserId(userId: string, gamerHandle: any | null, gamerHandleSize: number): any;
+ export function networkHandleFromUserId(userId: string | null, gamerHandle: any | null, gamerHandleSize: number): any;
- export function networkHandleFromMemberId(memberId: string, gamerHandle: any | null, gamerHandleSize: number): any;
+ export function networkHandleFromMemberId(memberId: string | null, gamerHandle: any | null, gamerHandleSize: number): any;
export function networkHandleFromPlayer(player: Player | number, gamerHandle: any | null, gamerHandleSize: number): any;
@@ -11814,7 +11814,7 @@ declare module "@altv/natives" {
export function networkGamertagFromHandleSucceeded(): boolean;
- export function networkGetGamertagFromHandle(gamerHandle?: any | null): [string, any];
+ export function networkGetGamertagFromHandle(gamerHandle?: any | null): [string | null, any];
/**
* Hardcoded to return -1.
@@ -11832,7 +11832,7 @@ declare module "@altv/natives" {
export function networkGetPlayerFromGamerHandle(gamerHandle?: any | null): [number, any];
- export function networkMemberIdFromGamerHandle(gamerHandle?: any | null): [string, any];
+ export function networkMemberIdFromGamerHandle(gamerHandle?: any | null): [string | null, any];
export function networkIsGamerInMySession(gamerHandle?: any | null): [boolean, any];
@@ -11841,13 +11841,13 @@ declare module "@altv/natives" {
/**
* Returns the name of a given player. Returns "**Invalid**" if rlGamerInfo of the given player cannot be retrieved or the player doesn't exist.
*/
- export function networkPlayerGetName(player: Player | number): string;
+ export function networkPlayerGetName(player: Player | number): string | null;
/**
* Returns a string of the player's Rockstar Id.
* Takes a 24 char buffer. Returns the buffer or "**Invalid**" if rlGamerInfo of the given player cannot be retrieved or the player doesn't exist.
*/
- export function networkPlayerGetUserid(player: Player | number, userID?: number | null): [string, number];
+ export function networkPlayerGetUserid(player: Player | number, userID?: number | null): [string | null, number];
/**
* Checks if a specific value (BYTE) in CNetGamePlayer is nonzero.
@@ -11877,20 +11877,20 @@ declare module "@altv/natives" {
export function networkGetFriendCount(): number;
- export function networkGetFriendName(friendIndex: number): string;
+ export function networkGetFriendName(friendIndex: number): string | null;
- export function networkGetFriendDisplayName(friendIndex: number): string;
+ export function networkGetFriendDisplayName(friendIndex: number): string | null;
- export function networkIsFriendOnline(name: string): boolean;
+ export function networkIsFriendOnline(name: string | null): boolean;
export function networkIsFriendHandleOnline(gamerHandle?: any | null): [boolean, any];
/**
* In scripts R* calls 'NETWORK_GET_FRIEND_NAME' in this param.
*/
- export function networkIsFriendInSameTitle(friendName: string): boolean;
+ export function networkIsFriendInSameTitle(friendName: string | null): boolean;
- export function networkIsFriendInMultiplayer(friendName: string): boolean;
+ export function networkIsFriendInMultiplayer(friendName: string | null): boolean;
export function networkIsFriend(gamerHandle?: any | null): [boolean, any];
@@ -11901,7 +11901,7 @@ declare module "@altv/natives" {
export function networkIsAddingFriend(): boolean;
- export function networkAddFriend(gamerHandle: any | null, message: string): [boolean, any];
+ export function networkAddFriend(gamerHandle: any | null, message: string | null): [boolean, any];
export function networkIsFriendIndexOnline(friendIndex: number): boolean;
@@ -12099,7 +12099,7 @@ declare module "@altv/natives" {
/**
* This native does absolutely nothing, just a nullsub
*/
- export function networkSetRichPresenceString(p0: number, textLabel: string): void;
+ export function networkSetRichPresenceString(p0: number, textLabel: string | null): void;
export function networkGetTimeoutTime(): number;
@@ -12139,7 +12139,7 @@ declare module "@altv/natives" {
/**
* bufferSize is 35 in the scripts.
*/
- export function networkClanGetUiFormattedTag(clanDesc: any | null, bufferSize: number, formattedTag: string): any;
+ export function networkClanGetUiFormattedTag(clanDesc: any | null, bufferSize: number, formattedTag: string | null): any;
export function networkClanGetLocalMembershipsCount(): number;
@@ -12165,13 +12165,13 @@ declare module "@altv/natives" {
* Only documented...
* Full list of animation dictionaries and anims by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animDictsCompact.json
*/
- export function networkClanCrewinfoGetStringValue(animDict: string, animName: string): boolean;
+ export function networkClanCrewinfoGetStringValue(animDict: string | null, animName: string | null): boolean;
- export function networkClanCrewinfoGetCrewranktitle(p0: number, p1: string): boolean;
+ export function networkClanCrewinfoGetCrewranktitle(p0: number, p1: string | null): boolean;
export function networkClanHasCrewinfoMetadataBeenReceived(): boolean;
- export function networkClanGetEmblemTxdName(netHandle: any | null, txdName: string): [boolean, any];
+ export function networkClanGetEmblemTxdName(netHandle: any | null, txdName: string | null): [boolean, any];
export function networkClanRequestEmblem(p0: any): boolean;
@@ -12393,12 +12393,12 @@ declare module "@altv/natives" {
*/
export function getTimeDifference(timeA: number, timeB: number): number;
- export function getTimeAsString(time: number): string;
+ export function getTimeAsString(time: number): string | null;
/**
* Same as GET_CLOUD_TIME_AS_INT but returns the value as a hex string (%I64X).
*/
- export function getCloudTimeAsString(): string;
+ export function getCloudTimeAsString(): string | null;
/**
* Returns POSIX timestamp, an int representing the cloud time.
@@ -12490,19 +12490,19 @@ declare module "@altv/natives" {
export function networkCreateSynchronisedScene(x: number, y: number, z: number, xRot: number, yRot: number, zRot: number, rotationOrder: number, useOcclusionPortal: boolean, looped: boolean, p9: number, animTime: number, p11: number): number;
- export function networkAddPedToSynchronisedScene(ped: Ped | Player | LocalPlayer | number, netScene: number, animDict: string, animnName: string, speed: number, speedMultiplier: number, duration: number, flag: number, playbackRate: number, p9: any): void;
+ export function networkAddPedToSynchronisedScene(ped: Ped | Player | LocalPlayer | number, netScene: number, animDict: string | null, animnName: string | null, speed: number, speedMultiplier: number, duration: number, flag: number, playbackRate: number, p9: any): void;
export function networkAddPedToSynchronisedSceneWithIk(p0: any, p1: any, p2: any, p3: any, p4: any, p5: any, p6: any, p7: any, p8: any, p9: any): void;
- export function networkAddEntityToSynchronisedScene(entity: Entity | number, netScene: number, animDict: string, animName: string, speed: number, speedMulitiplier: number, flag: number): void;
+ export function networkAddEntityToSynchronisedScene(entity: Entity | number, netScene: number, animDict: string | null, animName: string | null, speed: number, speedMulitiplier: number, flag: number): void;
/**
* Similar structure as NETWORK_ADD_ENTITY_TO_SYNCHRONISED_SCENE but it includes this time a hash.
* In casino_slots it is used one time in a synced scene involving a ped and the slot machine?
*/
- export function networkAddMapEntityToSynchronisedScene(netScene: number, modelHash: number, x: number, y: number, z: number, p5: number, p6: string, p7: number, p8: number, flags: number): void;
+ export function networkAddMapEntityToSynchronisedScene(netScene: number, modelHash: number, x: number, y: number, z: number, p5: number, p6: string | null, p7: number, p8: number, flags: number): void;
- export function networkAddSynchronisedSceneCamera(netScene: number, animDict: string, animName: string): void;
+ export function networkAddSynchronisedSceneCamera(netScene: number, animDict: string | null, animName: string | null): void;
export function networkAttachSynchronisedSceneToEntity(netScene: number, entity: Entity | number, bone: number): void;
@@ -12627,13 +12627,13 @@ declare module "@altv/natives" {
*/
export function networkGetTunableCloudCrc(): number;
- export function networkDoesTunableExist(tunableContext: string, tunableName: string): boolean;
+ export function networkDoesTunableExist(tunableContext: string | null, tunableName: string | null): boolean;
- export function networkAccessTunableInt(tunableContext: string, tunableName: string, value?: number | null): [boolean, number];
+ export function networkAccessTunableInt(tunableContext: string | null, tunableName: string | null, value?: number | null): [boolean, number];
- export function networkAccessTunableFloat(tunableContext: string, tunableName: string, value?: number | null): [boolean, number];
+ export function networkAccessTunableFloat(tunableContext: string | null, tunableName: string | null, value?: number | null): [boolean, number];
- export function networkAccessTunableBool(tunableContext: string, tunableName: string): boolean;
+ export function networkAccessTunableBool(tunableContext: string | null, tunableName: string | null): boolean;
export function networkDoesTunableExistHash(tunableContext: number, tunableName: number): boolean;
@@ -12741,20 +12741,20 @@ declare module "@altv/natives" {
export function isCommerceDataFetchInProgress(): boolean;
- export function getCommerceItemId(index: number): string;
+ export function getCommerceItemId(index: number): string | null;
- export function getCommerceItemName(index: number): string;
+ export function getCommerceItemName(index: number): string | null;
- export function getCommerceProductPrice(index: number): string;
+ export function getCommerceProductPrice(index: number): string | null;
export function getCommerceItemNumCats(index: number): number;
/**
* index2 is unused
*/
- export function getCommerceItemCat(index: number, index2: number): string;
+ export function getCommerceItemCat(index: number, index2: number): string | null;
- export function openCommerceStore(p0: string, p1: string, p2: number): void;
+ export function openCommerceStore(p0: string | null, p1: string | null, p2: number): void;
export function isCommerceStoreOpen(): boolean;
@@ -12767,7 +12767,7 @@ declare module "@altv/natives" {
export function releaseAllCommerceItemImages(): void;
- export function getCommerceItemTexturename(index: number): string;
+ export function getCommerceItemTexturename(index: number): string | null;
export function isStoreAvailableToUser(): boolean;
@@ -12789,7 +12789,7 @@ declare module "@altv/natives" {
*/
export function getUserStarterAccess(): number;
- export function cloudDeleteMemberFile(p0: string): number;
+ export function cloudDeleteMemberFile(p0: string | null): number;
export function cloudHasRequestCompleted(requestId: number): boolean;
@@ -12834,33 +12834,33 @@ declare module "@altv/natives" {
export function ugcGetCreateResult(): number;
- export function ugcGetCreateContentId(): string;
+ export function ugcGetCreateContentId(): string | null;
export function ugcClearCreateResult(): void;
export function ugcQueryMyContent(p0: any, p1: any, p2: any | null, p3: any, p4: any, p5: any): [boolean, any];
- export function ugcQueryByCategory(p0: any, p1: any, p2: any, p3: string, p4: any, p5: boolean): boolean;
+ export function ugcQueryByCategory(p0: any, p1: any, p2: any, p3: string | null, p4: any, p5: boolean): boolean;
- export function ugcQueryByContentId(contentId: string, latestVersion: boolean, contentTypeName: string): boolean;
+ export function ugcQueryByContentId(contentId: string | null, latestVersion: boolean, contentTypeName: string | null): boolean;
- export function ugcQueryByContentIds(data: any | null, count: number, latestVersion: boolean, contentTypeName: string): [boolean, any];
+ export function ugcQueryByContentIds(data: any | null, count: number, latestVersion: boolean, contentTypeName: string | null): [boolean, any];
- export function ugcQueryMostRecentlyCreatedContent(offset: number, count: number, contentTypeName: string, p3: number): boolean;
+ export function ugcQueryMostRecentlyCreatedContent(offset: number, count: number, contentTypeName: string | null, p3: number): boolean;
- export function ugcGetBookmarkedContent(p0: any, p1: any, p2: string, p3?: any | null): [boolean, any];
+ export function ugcGetBookmarkedContent(p0: any, p1: any, p2: string | null, p3?: any | null): [boolean, any];
- export function ugcGetMyContent(p0: any, p1: any, p2: string, p3?: any | null): [boolean, any];
+ export function ugcGetMyContent(p0: any, p1: any, p2: string | null, p3?: any | null): [boolean, any];
- export function ugcGetFriendContent(p0: any, p1: any, p2: string, p3?: any | null): [boolean, any];
+ export function ugcGetFriendContent(p0: any, p1: any, p2: string | null, p3?: any | null): [boolean, any];
- export function ugcGetCrewContent(p0: any, p1: any, p2: any, p3: string, p4?: any | null): [boolean, any];
+ export function ugcGetCrewContent(p0: any, p1: any, p2: any, p3: string | null, p4?: any | null): [boolean, any];
- export function ugcGetGetByCategory(p0: any, p1: any, p2: any, p3: string, p4?: any | null): [boolean, any];
+ export function ugcGetGetByCategory(p0: any, p1: any, p2: any, p3: string | null, p4?: any | null): [boolean, any];
- export function ugcGetGetByContentId(contentId: string, contentTypeName: string): boolean;
+ export function ugcGetGetByContentId(contentId: string | null, contentTypeName: string | null): boolean;
- export function ugcGetGetByContentIds(data: any | null, dataCount: number, contentTypeName: string): [boolean, any];
+ export function ugcGetGetByContentIds(data: any | null, dataCount: number, contentTypeName: string | null): [boolean, any];
export function ugcGetMostRecentlyCreatedContent(p0: any, p1: any, p2?: any | null, p3?: any | null): [boolean, any, any];
@@ -12888,13 +12888,13 @@ declare module "@altv/natives" {
export function ugcClearQueryResults(): void;
- export function ugcGetContentUserId(p0: number): string;
+ export function ugcGetContentUserId(p0: number): string | null;
export function ugcGetContentCreatorGamerHandle(p0: number, p1?: any | null): [boolean, any];
export function ugcGetContentCreatedByLocalPlayer(p0: any): boolean;
- export function ugcGetContentUserName(p0: any): string;
+ export function ugcGetContentUserName(p0: any): string | null;
export function ugcGetContentIsUsingScNickname(p0: any): boolean;
@@ -12903,18 +12903,18 @@ declare module "@altv/natives" {
/**
* Return the mission id of a job.
*/
- export function ugcGetContentId(p0: number): string;
+ export function ugcGetContentId(p0: number): string | null;
/**
* Return the root content id of a job.
*/
- export function ugcGetRootContentId(p0: number): string;
+ export function ugcGetRootContentId(p0: number): string | null;
- export function ugcGetContentName(p0: any): string;
+ export function ugcGetContentName(p0: any): string | null;
export function ugcGetContentDescriptionHash(p0: any): number;
- export function ugcGetContentPath(p0: number, p1: number): string;
+ export function ugcGetContentPath(p0: number, p1: number): string | null;
export function ugcGetContentUpdatedDate(p0: any, p1?: any | null): any;
@@ -12944,7 +12944,7 @@ declare module "@altv/natives" {
export function ugcRequestContentDataFromIndex(p0: number, p1: number): number;
- export function ugcRequestContentDataFromParams(contentTypeName: string, contentId: string, p2: number, p3: number, p4: number): number;
+ export function ugcRequestContentDataFromParams(contentTypeName: string | null, contentId: string | null, p2: number, p3: number, p4: number): number;
export function ugcRequestCachedDescription(p0: number): number;
@@ -12954,7 +12954,7 @@ declare module "@altv/natives" {
export function ugcDidDescriptionRequestSucceed(p0: any): boolean;
- export function ugcGetCachedDescription(p0: any, p1: any): string;
+ export function ugcGetCachedDescription(p0: any, p1: any): string | null;
export function ugcReleaseCachedDescription(p0: any): boolean;
@@ -12962,11 +12962,11 @@ declare module "@altv/natives" {
export function ugcHasPermissionToWrite(): boolean;
- export function ugcPublish(contentId: string, baseContentId: string, contentTypeName: string): boolean;
+ export function ugcPublish(contentId: string | null, baseContentId: string | null, contentTypeName: string | null): boolean;
- export function ugcSetBookmarked(contentId: string, bookmarked: boolean, contentTypeName: string): boolean;
+ export function ugcSetBookmarked(contentId: string | null, bookmarked: boolean, contentTypeName: string | null): boolean;
- export function ugcSetDeleted(p0: any | null, p1: boolean, p2: string): [boolean, any];
+ export function ugcSetDeleted(p0: any | null, p1: boolean, p2: string | null): [boolean, any];
export function ugcIsModifying(): boolean;
@@ -12996,7 +12996,7 @@ declare module "@altv/natives" {
export function ugcIsLanguageSupported(p0: any): boolean;
- export function facebookPostCompletedHeist(heistName: string, cashEarned: number, xpEarned: number): boolean;
+ export function facebookPostCompletedHeist(heistName: string | null, cashEarned: number, xpEarned: number): boolean;
export function facebookPostCreateCharacter(): boolean;
@@ -13008,17 +13008,17 @@ declare module "@altv/natives" {
export function facebookCanPostToFacebook(): boolean;
- export function textureDownloadRequest(gamerHandle: any | null, filePath: string, name: string, p3: boolean): [number, any];
+ export function textureDownloadRequest(gamerHandle: any | null, filePath: string | null, name: string | null, p3: boolean): [number, any];
- export function titleTextureDownloadRequest(filePath: string, name: string, p2: boolean): number;
+ export function titleTextureDownloadRequest(filePath: string | null, name: string | null, p2: boolean): number;
- export function ugcTextureDownloadRequest(p0: string, p1: number, p2: number, p3: number, p4: string, p5: boolean): number;
+ export function ugcTextureDownloadRequest(p0: string | null, p1: number, p2: number, p3: number, p4: string | null, p5: boolean): number;
export function textureDownloadRelease(p0: number): void;
export function textureDownloadHasFailed(p0: number): boolean;
- export function textureDownloadGetName(p0: number): string;
+ export function textureDownloadGetName(p0: number): string | null;
/**
* 0 = succeeded
@@ -13452,7 +13452,7 @@ declare module "@altv/natives" {
* Example:
* OBJECT::GET_RAYFIRE_MAP_OBJECT(-809.9619750976562, 170.919, 75.7406997680664, 3.0, "des_tvsmash");
*/
- export function getRayfireMapObject(x: number, y: number, z: number, radius: number, name: string): number;
+ export function getRayfireMapObject(x: number, y: number, z: number, radius: number, name: string | null): number;
/**
* Defines the state of a destructible object.
@@ -13925,12 +13925,12 @@ declare module "@altv/natives" {
* gtaforums.com/topic/819070-c-draw-instructional-buttons-scaleform-movie/#entry1068197378
* control: unused parameter
*/
- export function getControlInstructionalButtonsString(control: number, action: number, allowXOSwap: boolean): string;
+ export function getControlInstructionalButtonsString(control: number, action: number, allowXOSwap: boolean): string | null;
/**
* control: unused parameter
*/
- export function getControlGroupInstructionalButtonsString(control: number, controlGroup: number, allowXOSwap: boolean): string;
+ export function getControlGroupInstructionalButtonsString(control: number, controlGroup: number, allowXOSwap: boolean): string | null;
/**
* control: see IS_CONTROL_ENABLED
@@ -14042,12 +14042,12 @@ declare module "@altv/natives" {
/**
* Used in carsteal3 script with schemeName = "Carsteal4_spycar".
*/
- export function initPcScriptedControls(schemeName: string): boolean;
+ export function initPcScriptedControls(schemeName: string | null): boolean;
/**
* Same as INIT_PC_SCRIPTED_CONTROLS
*/
- export function switchPcScriptedControls(schemeName: string): boolean;
+ export function switchPcScriptedControls(schemeName: string | null): boolean;
export function shutdownPcScriptedControls(): void;
@@ -14793,7 +14793,7 @@ declare module "@altv/natives" {
/**
* p1 is usually 0 in the scripts. action is either 0 or a pointer to "DEFAULT_ACTION".
*/
- export function setPedStealthMovement(ped: Ped | Player | LocalPlayer | number, p1: boolean, action: string): void;
+ export function setPedStealthMovement(ped: Ped | Player | LocalPlayer | number, p1: boolean, action: string | null): void;
/**
* Returns whether the entity is in stealth mode
@@ -14944,7 +14944,7 @@ declare module "@altv/natives" {
/**
* Can't select void. This function returns nothing. The hash of the created relationship group is output in the second parameter.
*/
- export function addRelationshipGroup(name: string, groupHash?: number | null): [boolean, number];
+ export function addRelationshipGroup(name: string | null, groupHash?: number | null): [boolean, number];
export function removeRelationshipGroup(groupHash: number): void;
@@ -15302,7 +15302,7 @@ declare module "@altv/natives" {
* ~ NotCrunchyTaco
* Full list of movement clipsets by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/movementClipsetsCompact.json
*/
- export function setPedMovementClipset(ped: Ped | Player | LocalPlayer | number, clipSet: string, transitionSpeed: number): void;
+ export function setPedMovementClipset(ped: Ped | Player | LocalPlayer | number, clipSet: string | null, transitionSpeed: number): void;
/**
* If p1 is 0.0, I believe you are back to normal.
@@ -15315,15 +15315,15 @@ declare module "@altv/natives" {
/**
* Full list of movement clipsets by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/movementClipsetsCompact.json
*/
- export function setPedStrafeClipset(ped: Ped | Player | LocalPlayer | number, clipSet: string): void;
+ export function setPedStrafeClipset(ped: Ped | Player | LocalPlayer | number, clipSet: string | null): void;
export function resetPedStrafeClipset(ped: Ped | Player | LocalPlayer | number): void;
- export function setPedWeaponMovementClipset(ped: Ped | Player | LocalPlayer | number, clipSet: string): void;
+ export function setPedWeaponMovementClipset(ped: Ped | Player | LocalPlayer | number, clipSet: string | null): void;
export function resetPedWeaponMovementClipset(ped: Ped | Player | LocalPlayer | number): void;
- export function setPedDriveByClipsetOverride(ped: Ped | Player | LocalPlayer | number, clipset: string): void;
+ export function setPedDriveByClipsetOverride(ped: Ped | Player | LocalPlayer | number, clipset: string | null): void;
export function clearPedDriveByClipsetOverride(ped: Ped | Player | LocalPlayer | number): void;
@@ -15331,7 +15331,7 @@ declare module "@altv/natives" {
* Found in the b617d scripts:
* PED::SET_PED_MOTION_IN_COVER_CLIPSET_OVERRIDE(v_7, "trevor_heist_cover_2h");
*/
- export function setPedMotionInCoverClipsetOverride(ped: Ped | Player | LocalPlayer | number, p1: string): void;
+ export function setPedMotionInCoverClipsetOverride(ped: Ped | Player | LocalPlayer | number, p1: string | null): void;
export function clearPedMotionInCoverClipsetOverride(ped: Ped | Player | LocalPlayer | number): void;
@@ -15354,13 +15354,13 @@ declare module "@altv/natives" {
/**
* Full list of animation dictionaries and anims by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animDictsCompact.json
*/
- export function isScriptedScenarioPedUsingConditionalAnim(ped: Ped | Player | LocalPlayer | number, animDict: string, anim: string): boolean;
+ export function isScriptedScenarioPedUsingConditionalAnim(ped: Ped | Player | LocalPlayer | number, animDict: string | null, anim: string | null): boolean;
/**
* Full list of animation dictionaries and anims by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animDictsCompact.json
* Full list of movement clipsets by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/movementClipsetsCompact.json
*/
- export function setPedAlternateWalkAnim(ped: Ped | Player | LocalPlayer | number, animDict: string, animName: string, p3: number, p4: boolean): void;
+ export function setPedAlternateWalkAnim(ped: Ped | Player | LocalPlayer | number, animDict: string | null, animName: string | null, p3: number, p4: boolean): void;
export function clearPedAlternateWalkAnim(ped: Ped | Player | LocalPlayer | number, p1: number): void;
@@ -15373,7 +15373,7 @@ declare module "@altv/natives" {
* Full list of animation dictionaries and anims by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animDictsCompact.json
* Full list of movement clipsets by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/movementClipsetsCompact.json
*/
- export function setPedAlternateMovementAnim(ped: Ped | Player | LocalPlayer | number, stance: number, animDictionary: string, animationName: string, p4: number, p5: boolean): void;
+ export function setPedAlternateMovementAnim(ped: Ped | Player | LocalPlayer | number, stance: number, animDictionary: string | null, animationName: string | null, p4: number, p5: boolean): void;
export function clearPedAlternateMovementAnim(ped: Ped | Player | LocalPlayer | number, stance: number, p2: number): void;
@@ -15384,17 +15384,17 @@ declare module "@altv/natives" {
* PED::SET_PED_GESTURE_GROUP(PLAYER::PLAYER_PED_ID(),
* "ANIM_GROUP_GESTURE_MISS_DocksSetup1");
*/
- export function setPedGestureGroup(ped: Ped | Player | LocalPlayer | number, animGroupGesture: string): void;
+ export function setPedGestureGroup(ped: Ped | Player | LocalPlayer | number, animGroupGesture: string | null): void;
/**
* Full list of animation dictionaries and anims by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animDictsCompact.json
*/
- export function getAnimInitialOffsetPosition(animDict: string, animName: string, x: number, y: number, z: number, xRot: number, yRot: number, zRot: number, p8: number, p9: number): Vector3;
+ export function getAnimInitialOffsetPosition(animDict: string | null, animName: string | null, x: number, y: number, z: number, xRot: number, yRot: number, zRot: number, p8: number, p9: number): Vector3;
/**
* Full list of animation dictionaries and anims by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animDictsCompact.json
*/
- export function getAnimInitialOffsetRotation(animDict: string, animName: string, x: number, y: number, z: number, xRot: number, yRot: number, zRot: number, p8: number, p9: number): Vector3;
+ export function getAnimInitialOffsetRotation(animDict: string | null, animName: string | null, x: number, y: number, z: number, xRot: number, yRot: number, zRot: number, p8: number, p9: number): Vector3;
/**
* Ids
@@ -16035,7 +16035,7 @@ declare module "@altv/natives" {
* NOTE: Debugging functions are not present in the retail version of the game.
* *untested but char *name could also be a hash for a localized string
*/
- export function setPedNameDebug(ped: Ped | Player | LocalPlayer | number, name: string): void;
+ export function setPedNameDebug(ped: Ped | Player | LocalPlayer | number, name: string | null): void;
/**
* Gets the offset the specified ped has moved since the previous tick.
@@ -16074,11 +16074,11 @@ declare module "@altv/natives" {
* - Scripted_Ped_Splash_Back
* - BackSplash
*/
- export function applyPedBlood(ped: Ped | Player | LocalPlayer | number, boneIndex: number, xRot: number, yRot: number, zRot: number, woundType: string): void;
+ export function applyPedBlood(ped: Ped | Player | LocalPlayer | number, boneIndex: number, xRot: number, yRot: number, zRot: number, woundType: string | null): void;
- export function applyPedBloodByZone(ped: Ped | Player | LocalPlayer | number, p1: number, p2: number, p3: number, p4: string): void;
+ export function applyPedBloodByZone(ped: Ped | Player | LocalPlayer | number, p1: number, p2: number, p3: number, p4: string | null): void;
- export function applyPedBloodSpecific(ped: Ped | Player | LocalPlayer | number, p1: number, p2: number, p3: number, p4: number, p5: number, p6: number, p7: number, p8: string): void;
+ export function applyPedBloodSpecific(ped: Ped | Player | LocalPlayer | number, p1: number, p2: number, p3: number, p4: number, p5: number, p6: number, p7: number, p8: string | null): void;
/**
* enum eDamageZone
@@ -16104,7 +16104,7 @@ declare module "@altv/natives" {
* cs_trev1_dirt
* APPLY_PED_DAMAGE_DECAL(ped, 1, 0.5f, 0.513f, 0f, 1f, unk, 0, 0, "blushing");
*/
- export function applyPedDamageDecal(ped: Ped | Player | LocalPlayer | number, damageZone: number, xOffset: number, yOffset: number, heading: number, scale: number, alpha: number, variation: number, fadeIn: boolean, decalName: string): void;
+ export function applyPedDamageDecal(ped: Ped | Player | LocalPlayer | number, damageZone: number, xOffset: number, yOffset: number, heading: number, scale: number, alpha: number, variation: number, fadeIn: boolean, decalName: string | null): void;
/**
* Damage Packs:
@@ -16133,7 +16133,7 @@ declare module "@altv/natives" {
* gist.github.com/alexguirre/f3f47f75ddcf617f416f3c8a55ae2227
* Full list of ped damage packs by DurtyFree https://github.com/DurtyFree/gta-v-data-dumps/blob/master/pedDamagePacks.json
*/
- export function applyPedDamagePack(ped: Ped | Player | LocalPlayer | number, damagePack: string, damage: number, mult: number): void;
+ export function applyPedDamagePack(ped: Ped | Player | LocalPlayer | number, damagePack: string | null, damage: number, mult: number): void;
export function clearPedBloodDamage(ped: Ped | Player | LocalPlayer | number): void;
@@ -16148,7 +16148,7 @@ declare module "@altv/natives" {
* p1: from 0 to 5 in the b617d scripts.
* p2: "blushing" and "ALL" found in the b617d scripts.
*/
- export function clearPedDamageDecalByZone(ped: Ped | Player | LocalPlayer | number, p1: number, p2: string): void;
+ export function clearPedDamageDecalByZone(ped: Ped | Player | LocalPlayer | number, p1: number, p2: string | null): void;
export function getPedDecorationsState(ped: Ped | Player | LocalPlayer | number): number;
@@ -16287,7 +16287,7 @@ declare module "@altv/natives" {
/**
* Full list of ped scenarios by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/scenariosCompact.json
*/
- export function isPedUsingScenario(ped: Ped | Player | LocalPlayer | number, scenario: string): boolean;
+ export function isPedUsingScenario(ped: Ped | Player | LocalPlayer | number, scenario: string | null): boolean;
export function isPedUsingAnyScenario(ped: Ped | Player | LocalPlayer | number): boolean;
@@ -16318,7 +16318,7 @@ declare module "@altv/natives" {
/**
* Full list of animation dictionaries and anims by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animDictsCompact.json
*/
- export function playFacialAnim(ped: Ped | Player | LocalPlayer | number, animName: string, animDict: string): void;
+ export function playFacialAnim(ped: Ped | Player | LocalPlayer | number, animName: string | null, animDict: string | null): void;
/**
* Clipsets:
@@ -16331,12 +16331,12 @@ declare module "@altv/natives" {
* mood_happy_1
* mood_talking_1
*/
- export function setFacialClipset(ped: Ped | Player | LocalPlayer | number, animDict: string): void;
+ export function setFacialClipset(ped: Ped | Player | LocalPlayer | number, animDict: string | null): void;
/**
* Full list of animation dictionaries and anims by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animDictsCompact.json
*/
- export function setFacialIdleAnimOverride(ped: Ped | Player | LocalPlayer | number, animName: string, animDict: string): void;
+ export function setFacialIdleAnimOverride(ped: Ped | Player | LocalPlayer | number, animName: string | null, animDict: string | null): void;
export function clearFacialIdleAnimOverride(ped: Ped | Player | LocalPlayer | number): void;
@@ -17154,7 +17154,7 @@ declare module "@altv/natives" {
/**
* p1: Only "CODE_HUMAN_STAND_COWER" found in the b617d scripts.
*/
- export function setPedCowerHash(ped: Ped | Player | LocalPlayer | number, p1: string): void;
+ export function setPedCowerHash(ped: Ped | Player | LocalPlayer | number, p1: string | null): void;
export function setPedSteersAroundDeadBodies(ped: Ped | Player | LocalPlayer | number, toggle: boolean): void;
@@ -17516,12 +17516,12 @@ declare module "@altv/natives" {
/**
* p2 is usually -1 in the scripts. action is either 0 or "DEFAULT_ACTION".
*/
- export function setPedUsingActionMode(ped: Ped | Player | LocalPlayer | number, p1: boolean, p2: number, action: string): void;
+ export function setPedUsingActionMode(ped: Ped | Player | LocalPlayer | number, p1: boolean, p2: number, action: string | null): void;
/**
* name: "MP_FEMALE_ACTION" found multiple times in the b617d scripts.
*/
- export function setMovementModeOverride(ped: Ped | Player | LocalPlayer | number, name: string): void;
+ export function setMovementModeOverride(ped: Ped | Player | LocalPlayer | number, name: string | null): void;
/**
* Overrides the ped's collision capsule radius for the current tick.
@@ -17560,7 +17560,7 @@ declare module "@altv/natives" {
/**
* gtaforums.com/topic/885580-ped-headshotmugshot-txd/
*/
- export function getPedheadshotTxdString(id: number): string;
+ export function getPedheadshotTxdString(id: number): string | null;
export function requestPedheadshotImgUpload(id: number): boolean;
@@ -17598,17 +17598,17 @@ declare module "@altv/natives" {
export function forceInstantLegIkSetup(ped: Ped | Player | LocalPlayer | number): void;
- export function requestActionModeAsset(asset: string): void;
+ export function requestActionModeAsset(asset: string | null): void;
- export function hasActionModeAssetLoaded(asset: string): boolean;
+ export function hasActionModeAssetLoaded(asset: string | null): boolean;
- export function removeActionModeAsset(asset: string): void;
+ export function removeActionModeAsset(asset: string | null): void;
- export function requestStealthModeAsset(asset: string): void;
+ export function requestStealthModeAsset(asset: string | null): void;
- export function hasStealthModeAssetLoaded(asset: string): boolean;
+ export function hasStealthModeAssetLoaded(asset: string | null): boolean;
- export function removeStealthModeAsset(asset: string): void;
+ export function removeStealthModeAsset(asset: string | null): void;
export function setPedLodMultiplier(ped: Ped | Player | LocalPlayer | number, multiplier: number): void;
@@ -17691,7 +17691,7 @@ declare module "@altv/natives" {
/**
* Rope presets can be found in the gamefiles. One example is "ropeFamily3", it is NOT a hash but rather a string.
*/
- export function loadRopeData(ropeId: number, rope_preset: string): void;
+ export function loadRopeData(ropeId: number, rope_preset: string | null): void;
export function pinRopeVertex(ropeId: number, vertex: number, x: number, y: number, z: number): void;
@@ -17838,7 +17838,7 @@ declare module "@altv/natives" {
export function getNumberOfPlayersInTeam(team: number): number;
- export function getPlayerName(player: Player | number): string;
+ export function getPlayerName(player: Player | number): string | null;
/**
* Remnant from GTA IV. Does nothing in GTA V.
@@ -18240,7 +18240,7 @@ declare module "@altv/natives" {
/**
* PLAYER::FORCE_CLEANUP_FOR_ALL_THREADS_WITH_THIS_NAME("pb_prostitute", 1); // Found in decompilation
*/
- export function forceCleanupForAllThreadsWithThisName(name: string, cleanupFlags: number): void;
+ export function forceCleanupForAllThreadsWithThisName(name: string | null, cleanupFlags: number): void;
export function forceCleanupForThreadWithThisId(id: number, cleanupFlags: number): void;
@@ -18949,7 +18949,7 @@ declare module "@altv/natives" {
* first one seems to be a string of a mission name, second one seems to be a bool/toggle
* p1 was always 0.
*/
- export function replayCheckForEventThisFrame(missionNameLabel: string, p1: any): void;
+ export function replayCheckForEventThisFrame(missionNameLabel: string | null, p1: any): void;
/**
* This disable the recording feature and has to be called every frame.
@@ -19004,7 +19004,7 @@ declare module "@altv/natives" {
/**
* Does nothing (it's a nullsub).
*/
- export function registerEffectForReplayEditor(p0: string, p1: boolean): void;
+ export function registerEffectForReplayEditor(p0: string | null, p1: boolean): void;
/**
* Returns a bool if interior rendering is disabled, if yes, all "normal" rendered interiors are invisible
@@ -19042,16 +19042,16 @@ declare module "@altv/natives" {
export function savemigrationMpGetStatus(): number;
- export function requestScript(scriptName: string): void;
+ export function requestScript(scriptName: string | null): void;
- export function setScriptAsNoLongerNeeded(scriptName: string): void;
+ export function setScriptAsNoLongerNeeded(scriptName: string | null): void;
/**
* Returns if a script has been loaded into the game. Used to see if a script was loaded after requesting.
*/
- export function hasScriptLoaded(scriptName: string): boolean;
+ export function hasScriptLoaded(scriptName: string | null): boolean;
- export function doesScriptExist(scriptName: string): boolean;
+ export function doesScriptExist(scriptName: string | null): boolean;
/**
* formerly _REQUEST_STREAMED_SCRIPT
@@ -19068,7 +19068,7 @@ declare module "@altv/natives" {
export function isThreadActive(threadId: number): boolean;
- export function getNameOfScriptWithThisId(threadId: number): string;
+ export function getNameOfScriptWithThisId(threadId: number): string | null;
/**
* Starts a new iteration of the current threads.
@@ -19094,7 +19094,7 @@ declare module "@altv/natives" {
*/
export function getNumberOfThreadsRunningTheScriptWithThisHash(scriptHash: number): number;
- export function getThisScriptName(): string;
+ export function getThisScriptName(): string | null;
export function getHashOfThisScriptName(): number;
@@ -19157,16 +19157,16 @@ declare module "@altv/natives" {
/**
* Inserts the given context into the background scripts context map.
*/
- export function bgStartContext(contextName: string): void;
+ export function bgStartContext(contextName: string | null): void;
/**
* Deletes the given context from the background scripts context map.
*/
- export function bgEndContext(contextName: string): void;
+ export function bgEndContext(contextName: string | null): void;
- export function bgDoesLaunchParamExist(scriptIndex: number, p1: string): boolean;
+ export function bgDoesLaunchParamExist(scriptIndex: number, p1: string | null): boolean;
- export function bgGetLaunchParamValue(scriptIndex: number, p1: string): number;
+ export function bgGetLaunchParamValue(scriptIndex: number, p1: string | null): number;
export function bgGetScriptIdFromNameHash(p0: number): number;
@@ -19248,15 +19248,15 @@ declare module "@altv/natives" {
export function scInboxSetMessageAsReadAtIndex(msgIndex: number): boolean;
- export function scInboxMessageGetDataInt(p0: number, context: string, out?: number | null): [boolean, number];
+ export function scInboxMessageGetDataInt(p0: number, context: string | null, out?: number | null): [boolean, number];
- export function scInboxMessageGetDataBool(p0: number, p1: string): boolean;
+ export function scInboxMessageGetDataBool(p0: number, p1: string | null): boolean;
- export function scInboxMessageGetDataString(p0: number, context: string, out: string): boolean;
+ export function scInboxMessageGetDataString(p0: number, context: string | null, out: string | null): boolean;
export function scInboxMessageDoApply(p0: number): boolean;
- export function scInboxMessageGetRawTypeAtIndex(p0: number): string;
+ export function scInboxMessageGetRawTypeAtIndex(p0: number): string | null;
export function scInboxMessagePushGamerT0RecipList(gamerHandle?: any | null): any;
@@ -19280,7 +19280,7 @@ declare module "@altv/natives" {
export function scEmailMessageClearRecipList(): void;
- export function scEmailSendEmail(p0: string): void;
+ export function scEmailSendEmail(p0: string | null): void;
export function scEmailSetCurrentEmailTag(p0: any): boolean;
@@ -19288,23 +19288,23 @@ declare module "@altv/natives" {
export function scHasNewRockstarMsg(): boolean;
- export function scGetNewRockstarMsg(): string;
+ export function scGetNewRockstarMsg(): string | null;
export function scPresenceAttrSetInt(attrHash: number, value: number): boolean;
export function scPresenceAttrSetFloat(attrHash: number, value: number): boolean;
- export function scPresenceAttrSetString(attrHash: number, value: string): boolean;
+ export function scPresenceAttrSetString(attrHash: number, value: string | null): boolean;
export function scPresenceSetActivityRating(p0: any, p1: number): boolean;
- export function scGamerdataGetInt(name: string, value?: number | null): [boolean, number];
+ export function scGamerdataGetInt(name: string | null, value?: number | null): [boolean, number];
- export function scGamerdataGetFloat(name: string, value?: number | null): [boolean, number];
+ export function scGamerdataGetFloat(name: string | null, value?: number | null): [boolean, number];
- export function scGamerdataGetBool(name: string): boolean;
+ export function scGamerdataGetBool(name: string | null): boolean;
- export function scGamerdataGetString(name: string, value: string): boolean;
+ export function scGamerdataGetString(name: string | null, value: string | null): boolean;
export function scGamerdataGetActiveXpBonus(value?: number | null): [boolean, number];
@@ -19312,9 +19312,9 @@ declare module "@altv/natives" {
* Starts a task to check an entered string for profanity on the ROS/Social Club services.
* See also: 1753344C770358AE, 82E4A58BABC15AE7.
*/
- export function scProfanityCheckString(string: string, token?: number | null): [boolean, number];
+ export function scProfanityCheckString(string: string | null, token?: number | null): [boolean, number];
- export function scProfanityCheckStringUgc(string: string, token?: number | null): [boolean, number];
+ export function scProfanityCheckStringUgc(string: string | null, token?: number | null): [boolean, number];
export function scProfanityGetCheckIsValid(token: number): boolean;
@@ -19324,7 +19324,7 @@ declare module "@altv/natives" {
export function scProfanityGetStringStatus(token: number): number;
- export function scLicenseplateCheckString(p0: string, p1?: number | null): [boolean, number];
+ export function scLicenseplateCheckString(p0: string | null, p1?: number | null): [boolean, number];
export function scLicenseplateGetCheckIsValid(p0: any): boolean;
@@ -19332,19 +19332,19 @@ declare module "@altv/natives" {
export function scLicenseplateGetCount(token: number): number;
- export function scLicenseplateGetPlate(token: number, plateIndex: number): string;
+ export function scLicenseplateGetPlate(token: number, plateIndex: number): string | null;
- export function scLicenseplateGetPlateData(token: number, plateIndex: number): string;
+ export function scLicenseplateGetPlateData(token: number, plateIndex: number): string | null;
- export function scLicenseplateSetPlateData(oldPlateText: string, newPlateText: string, plateData?: any | null): [boolean, any];
+ export function scLicenseplateSetPlateData(oldPlateText: string | null, newPlateText: string | null, plateData?: any | null): [boolean, any];
- export function scLicenseplateAdd(plateText: string, plateData?: any | null, token?: number | null): [boolean, any, number];
+ export function scLicenseplateAdd(plateText: string | null, plateData?: any | null, token?: number | null): [boolean, any, number];
export function scLicenseplateGetAddIsPending(token: number): boolean;
export function scLicenseplateGetAddStatus(token: number): number;
- export function scLicenseplateIsvalid(plateText: string, token?: number | null): [boolean, number];
+ export function scLicenseplateIsvalid(plateText: string | null, token?: number | null): [boolean, number];
export function scLicenseplateGetIsvalidIsPending(token: number): boolean;
@@ -19354,35 +19354,35 @@ declare module "@altv/natives" {
export function scCommunityEventGetEventId(): number;
- export function scCommunityEventGetExtraDataInt(p0: string, p1?: number | null): [boolean, number];
+ export function scCommunityEventGetExtraDataInt(p0: string | null, p1?: number | null): [boolean, number];
- export function scCommunityEventGetExtraDataFloat(p0: string, p1?: number | null): [boolean, number];
+ export function scCommunityEventGetExtraDataFloat(p0: string | null, p1?: number | null): [boolean, number];
- export function scCommunityEventGetExtraDataString(p0: string, p1: string): boolean;
+ export function scCommunityEventGetExtraDataString(p0: string | null, p1: string | null): boolean;
- export function scCommunityEventGetDisplayName(p0: string): boolean;
+ export function scCommunityEventGetDisplayName(p0: string | null): boolean;
- export function scCommunityEventIsActiveForType(p0: string): boolean;
+ export function scCommunityEventIsActiveForType(p0: string | null): boolean;
- export function scCommunityEventGetEventIdForType(p0: string): number;
+ export function scCommunityEventGetEventIdForType(p0: string | null): number;
- export function scCommunityEventGetExtraDataIntForType(p0: string, p1: number | null, p2: string): [boolean, number];
+ export function scCommunityEventGetExtraDataIntForType(p0: string | null, p1: number | null, p2: string | null): [boolean, number];
- export function scCommunityEventGetExtraDataFloatForType(p0: string, p1: number | null, p2: string): [boolean, number];
+ export function scCommunityEventGetExtraDataFloatForType(p0: string | null, p1: number | null, p2: string | null): [boolean, number];
- export function scCommunityEventGetExtraDataStringForType(p0: string, p1: string, p2: string): boolean;
+ export function scCommunityEventGetExtraDataStringForType(p0: string | null, p1: string | null, p2: string | null): boolean;
- export function scCommunityEventGetDisplayNameForType(p0: string, p1: string): boolean;
+ export function scCommunityEventGetDisplayNameForType(p0: string | null, p1: string | null): boolean;
export function scCommunityEventIsActiveById(p0: number): boolean;
- export function scCommunityEventGetExtraDataIntById(p0: number, p1: string, p2?: number | null): [boolean, number];
+ export function scCommunityEventGetExtraDataIntById(p0: number, p1: string | null, p2?: number | null): [boolean, number];
- export function scCommunityEventGetExtraDataFloatById(p0: number, p1: string, p2?: number | null): [boolean, number];
+ export function scCommunityEventGetExtraDataFloatById(p0: number, p1: string | null, p2?: number | null): [boolean, number];
- export function scCommunityEventGetExtraDataStringById(p0: number, p1: string, p2: string): boolean;
+ export function scCommunityEventGetExtraDataStringById(p0: number, p1: string | null, p2: string | null): boolean;
- export function scCommunityEventGetDisplayNameById(p0: number, p1: string): boolean;
+ export function scCommunityEventGetDisplayNameById(p0: number, p1: string | null): boolean;
export function scTransitionNewsShow(p0: any): boolean;
@@ -19392,7 +19392,7 @@ declare module "@altv/natives" {
export function scTransitionNewsHasExtraDataTu(): boolean;
- export function scTransitionNewsGetExtraDataIntTu(p0: string, p1?: number | null): [boolean, number];
+ export function scTransitionNewsGetExtraDataIntTu(p0: string | null, p1?: number | null): [boolean, number];
export function scTransitionNewsEnd(): void;
@@ -19408,7 +19408,7 @@ declare module "@altv/natives" {
/**
* Returns the nickname of the logged-in Rockstar Social Club account.
*/
- export function scAccountInfoGetNickname(): string;
+ export function scAccountInfoGetNickname(): string | null;
export function scAchievementInfoStatus(p0?: number | null): [boolean, number];
@@ -19551,7 +19551,7 @@ declare module "@altv/natives" {
* "RC_TON4"
* "RC_TON5"
*/
- export function statSetGxtLabel(statName: number, value: string, save: boolean): boolean;
+ export function statSetGxtLabel(statName: number, value: string | null, save: boolean): boolean;
/**
* 'value' is a structure to a structure, 'numFields' is how many fields there are in said structure (usually 7).
@@ -19567,13 +19567,13 @@ declare module "@altv/natives" {
*/
export function statSetDate(statName: number, value: any | null, numFields: number, save: boolean): [boolean, any];
- export function statSetString(statName: number, value: string, save: boolean): boolean;
+ export function statSetString(statName: number, value: string | null, save: boolean): boolean;
export function statSetPos(statName: number, x: number, y: number, z: number, save: boolean): boolean;
export function statSetMaskedInt(statName: number, p1: number, p2: number, p3: number, save: boolean): boolean;
- export function statSetUserId(statName: number, value: string, save: boolean): boolean;
+ export function statSetUserId(statName: number, value: string | null, save: boolean): boolean;
/**
* p1 always true.
@@ -19597,7 +19597,7 @@ declare module "@altv/natives" {
/**
* p1 is always -1 in the script files
*/
- export function statGetString(statHash: number, p1: number): string;
+ export function statGetString(statHash: number, p1: number): string | null;
/**
* p3 is probably characterSlot or BOOL save, always -1
@@ -19612,11 +19612,11 @@ declare module "@altv/natives" {
/**
* Returns the rockstar ID (user id) value of a given stat. Returns "STAT_UNKNOWN" if the statHash is invalid or the stat has no userId
*/
- export function statGetUserId(statHash: number): string;
+ export function statGetUserId(statHash: number): string | null;
- export function statGetLicensePlate(statName: number): string;
+ export function statGetLicensePlate(statName: number): string | null;
- export function statSetLicensePlate(statName: number, str: string): boolean;
+ export function statSetLicensePlate(statName: number, str: string | null): boolean;
export function statIncrement(statName: number, value: number): void;
@@ -19684,7 +19684,7 @@ declare module "@altv/natives" {
* "_CASINOPSTAT_INT"
* "_CASINOHSTPSTAT_INT"
*/
- export function getPackedNgIntStatKey(index: number, spStat: boolean, charStat: boolean, character: number, section: string): number;
+ export function getPackedNgIntStatKey(index: number, spStat: boolean, charStat: boolean, character: number, section: string | null): number;
export function getPackedStatBoolCode(index: number, characterSlot: number): boolean;
@@ -19694,20 +19694,20 @@ declare module "@altv/natives" {
export function setPackedStatIntCode(index: number, value: number, characterSlot: number): void;
- export function playstatsBackgroundScriptAction(action: string, value: number): void;
+ export function playstatsBackgroundScriptAction(action: string | null, value: number): void;
/**
* p3: VehicleConversion, SCAdminCashGift
* p4: 0
*/
- export function playstatsFlowLow(posX: number, posY: number, posZ: number, p3: string, p4: any, amount: number): void;
+ export function playstatsFlowLow(posX: number, posY: number, posZ: number, p3: string | null, p4: any, amount: number): void;
/**
* interiorAction: can either be InteriorEntry or InteriorExit
*/
- export function playstatsFlowMedium(x: number, y: number, z: number, interiorAction: string, p4: number, p5: number): void;
+ export function playstatsFlowMedium(x: number, y: number, z: number, interiorAction: string | null, p4: number, p5: number): void;
- export function playstatsNpcInvite(p0: string): void;
+ export function playstatsNpcInvite(p0: string | null): void;
export function playstatsAwardXp(amount: number, type: number, category: number): void;
@@ -19719,13 +19719,13 @@ declare module "@altv/natives" {
export function playstatsLeaveJobChain(p0: any, p1: any, p2: any, p3: any, p4: any): void;
- export function playstatsMissionStarted(p0: string, p1: any, p2: any, p3: boolean): void;
+ export function playstatsMissionStarted(p0: string | null, p1: any, p2: any, p3: boolean): void;
- export function playstatsMissionOver(p0: string, p1: any, p2: any, p3: boolean, p4: boolean, p5: boolean): void;
+ export function playstatsMissionOver(p0: string | null, p1: any, p2: any, p3: boolean, p4: boolean, p5: boolean): void;
- export function playstatsMissionCheckpoint(p0: string, p1: any, p2: any, p3: any): void;
+ export function playstatsMissionCheckpoint(p0: string | null, p1: any, p2: any, p3: any): void;
- export function playstatsRandomMissionDone(name: string, p1: any, p2: any, p3: any): void;
+ export function playstatsRandomMissionDone(name: string | null, p1: any, p2: any, p3: any): void;
export function playstatsRosBet(amount: number, act: number, player: Player | number, cm: number): void;
@@ -19767,7 +19767,7 @@ declare module "@altv/natives" {
*/
export function playstatsWeaponModeChange(weaponHash: number, componentHashTo: number, componentHashFrom: number): void;
- export function playstatsCheatApplied(cheat: string): void;
+ export function playstatsCheatApplied(cheat: string | null): void;
export function playstatsJobActivityEnd(p0?: any | null, p1?: any | null, p2?: any | null, p3?: any | null): [any, any, any, any];
@@ -19777,7 +19777,7 @@ declare module "@altv/natives" {
export function playstatsJobLtsRoundEnd(p0?: any | null, p1?: any | null, p2?: any | null, p3?: any | null): [any, any, any, any];
- export function playstatsQuickfixTool(element: number, item: string): void;
+ export function playstatsQuickfixTool(element: number, item: string | null): void;
export function playstatsIdleKick(msStoodIdle: number): void;
@@ -19851,7 +19851,7 @@ declare module "@altv/natives" {
export function leaderboards2ReadRankPrediction(p0?: any | null, p1?: any | null, p2?: any | null): [boolean, any, any, any];
- export function leaderboards2ReadByPlaform(p0: any | null, gamerHandleCsv: string, platformName: string): [boolean, any];
+ export function leaderboards2ReadByPlaform(p0: any | null, gamerHandleCsv: string | null, platformName: string | null): [boolean, any];
export function leaderboards2ReadGetRowDataStart(p0?: any | null): [boolean, any];
@@ -19887,7 +19887,7 @@ declare module "@altv/natives" {
export function presenceEventUpdatestatFloat(statHash: number, value: number, p2: number): void;
- export function presenceEventUpdatestatIntWithString(statHash: number, value: number, p2: number, string: string): void;
+ export function presenceEventUpdatestatIntWithString(statHash: number, value: number, p2: number, string: string | null): void;
export function getPlayerHasDrivenAllVehicles(): boolean;
@@ -19937,7 +19937,7 @@ declare module "@altv/natives" {
/**
* platformName must be one of the following: ps3, xbox360, ps4, xboxone
*/
- export function statMigrateSavegameStart(platformName: string): boolean;
+ export function statMigrateSavegameStart(platformName: string | null): boolean;
export function statMigrateSavegameGetStatus(): number;
@@ -19955,7 +19955,7 @@ declare module "@altv/natives" {
export function statGetCancelSaveMigrationStatus(): number;
- export function statSaveMigrationConsumeContent(contentId: number, srcPlatform: string, srcGamerHandle: string): boolean;
+ export function statSaveMigrationConsumeContent(contentId: number, srcPlatform: string | null, srcGamerHandle: string | null): boolean;
export function statGetSaveMigrationConsumeContentStatus(p0?: number | null): [number, number];
@@ -20381,7 +20381,7 @@ declare module "@altv/natives" {
* STREAMING::REQUEST_MODELS_IN_ROOM(l_13BC, "v_fib01_jan_elev");
* STREAMING::REQUEST_MODELS_IN_ROOM(l_13BC, "limbo");
*/
- export function requestModelsInRoom(interior: number, roomName: string): void;
+ export function requestModelsInRoom(interior: number, roomName: string | null): void;
/**
* Unloads model from memory
@@ -20419,29 +20419,29 @@ declare module "@altv/natives" {
/**
* Full list of animation dictionaries and anims by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animDictsCompact.json
*/
- export function doesAnimDictExist(animDict: string): boolean;
+ export function doesAnimDictExist(animDict: string | null): boolean;
/**
* Full list of animation dictionaries and anims by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animDictsCompact.json
*/
- export function requestAnimDict(animDict: string): void;
+ export function requestAnimDict(animDict: string | null): void;
/**
* Full list of animation dictionaries and anims by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animDictsCompact.json
*/
- export function hasAnimDictLoaded(animDict: string): boolean;
+ export function hasAnimDictLoaded(animDict: string | null): boolean;
/**
* Full list of animation dictionaries and anims by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animDictsCompact.json
*/
- export function removeAnimDict(animDict: string): void;
+ export function removeAnimDict(animDict: string | null): void;
/**
* Starts loading the specified animation set. An animation set provides movement animations for a ped. See SET_PED_MOVEMENT_CLIPSET.
* Full list of animation dictionaries and anims by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animDictsCompact.json
* Full list of movement clipsets by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/movementClipsetsCompact.json
*/
- export function requestAnimSet(animSet: string): void;
+ export function requestAnimSet(animSet: string | null): void;
/**
* Gets whether the specified animation set has finished loading. An animation set provides movement animations for a ped. See SET_PED_MOVEMENT_CLIPSET.
@@ -20449,7 +20449,7 @@ declare module "@altv/natives" {
* Full list of animation dictionaries and anims by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animDictsCompact.json
* Full list of movement clipsets by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/movementClipsetsCompact.json
*/
- export function hasAnimSetLoaded(animSet: string): boolean;
+ export function hasAnimSetLoaded(animSet: string | null): boolean;
/**
* Unloads the specified animation set. An animation set provides movement animations for a ped. See SET_PED_MOVEMENT_CLIPSET.
@@ -20457,33 +20457,33 @@ declare module "@altv/natives" {
* Full list of animation dictionaries and anims by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animDictsCompact.json
* Full list of movement clipsets by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/movementClipsetsCompact.json
*/
- export function removeAnimSet(animSet: string): void;
+ export function removeAnimSet(animSet: string | null): void;
/**
* Full list of animation dictionaries and anims by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animDictsCompact.json
* Full list of movement clipsets by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/movementClipsetsCompact.json
*/
- export function requestClipSet(clipSet: string): void;
+ export function requestClipSet(clipSet: string | null): void;
/**
* Alias for HAS_ANIM_SET_LOADED.
* Full list of animation dictionaries and anims by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animDictsCompact.json
* Full list of movement clipsets by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/movementClipsetsCompact.json
*/
- export function hasClipSetLoaded(clipSet: string): boolean;
+ export function hasClipSetLoaded(clipSet: string | null): boolean;
/**
* Alias for REMOVE_ANIM_SET.
* Full list of animation dictionaries and anims by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animDictsCompact.json
* Full list of movement clipsets by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/movementClipsetsCompact.json
*/
- export function removeClipSet(clipSet: string): void;
+ export function removeClipSet(clipSet: string | null): void;
/**
* Exemple: REQUEST_IPL("TrevorsTrailerTrash");
* Full list of IPLs and interior entity sets by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/ipls.json
*/
- export function requestIpl(iplName: string): void;
+ export function requestIpl(iplName: string | null): void;
/**
* Removes an IPL from the map.
@@ -20495,12 +20495,12 @@ declare module "@altv/natives" {
* STREAMING::REMOVE_IPL("trevorstrailertidy");
* iplName = Name of IPL you want to remove.
*/
- export function removeIpl(iplName: string): void;
+ export function removeIpl(iplName: string | null): void;
/**
* Full list of IPLs and interior entity sets by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/ipls.json
*/
- export function isIplActive(iplName: string): boolean;
+ export function isIplActive(iplName: string | null): boolean;
export function setStreaming(toggle: boolean): void;
@@ -20550,11 +20550,11 @@ declare module "@altv/natives" {
* STREAMING::REQUEST_NAMED_PTFX_ASSET("scr_ornate_heist");
* STREAMING::REQUEST_NAMED_PTFX_ASSET("scr_prison_break_heist_station");
*/
- export function requestNamedPtfxAsset(fxName: string): void;
+ export function requestNamedPtfxAsset(fxName: string | null): void;
- export function hasNamedPtfxAssetLoaded(fxName: string): boolean;
+ export function hasNamedPtfxAssetLoaded(fxName: string | null): boolean;
- export function removeNamedPtfxAsset(fxName: string): void;
+ export function removeNamedPtfxAsset(fxName: string | null): void;
export function setVehiclePopulationBudget(p0: number): void;
@@ -20586,7 +20586,7 @@ declare module "@altv/natives" {
* "prologue"
* "Prologue_Main"
*/
- export function setMapdatacullboxEnabled(name: string, toggle: boolean): void;
+ export function setMapdatacullboxEnabled(name: string | null, toggle: boolean): void;
/**
* This native does absolutely nothing, just a nullsub
@@ -20684,7 +20684,7 @@ declare module "@altv/natives" {
/**
* All names can be found in playerswitchestablishingshots.meta
*/
- export function setPlayerSwitchEstablishingShot(name: string): void;
+ export function setPlayerSwitchEstablishingShot(name: string | null): void;
export function allowPlayerSwitchPan(): void;
@@ -20745,7 +20745,7 @@ declare module "@altv/natives" {
export function forceAllowTimeBasedFadingThisFrame(): void;
- export function iplGroupSwapStart(iplName1: string, iplName2: string): void;
+ export function iplGroupSwapStart(iplName1: string | null, iplName2: string | null): void;
export function iplGroupSwapCancel(): void;
@@ -20761,7 +20761,7 @@ declare module "@altv/natives" {
* https://pastebin.com/2EeKVeLA : a list of SRL found in srllist.meta
* https://pastebin.com/zd9XYUWY here is the content of a SRL file opened with codewalker.
*/
- export function prefetchSrl(srl: string): void;
+ export function prefetchSrl(srl: string | null): void;
/**
* Returns true when the srl from BEGIN_SRL is loaded.
@@ -20807,7 +20807,7 @@ declare module "@altv/natives" {
/**
* Enables the specified island. For more information, see islandhopper.meta
*/
- export function setIslandEnabled(name: string, toggle: boolean): void;
+ export function setIslandEnabled(name: string | null, toggle: boolean): void;
/**
* Stand still (?)
@@ -20856,7 +20856,7 @@ declare module "@altv/natives" {
* 3 = outside left
* 4 = outside right
*/
- export function taskEnterVehicle(ped: Ped | Player | LocalPlayer | number, vehicle: Vehicle | number, timeout: number, seat: number, speed: number, flag: number, overrideEntryClipsetName: string, p7: any): void;
+ export function taskEnterVehicle(ped: Ped | Player | LocalPlayer | number, vehicle: Vehicle | number, timeout: number, seat: number, speed: number, flag: number, overrideEntryClipsetName: string | null, p7: any): void;
/**
* Flags from decompiled scripts:
@@ -20987,7 +20987,7 @@ declare module "@altv/natives" {
*/
export function taskWanderStandard(ped: Ped | Player | LocalPlayer | number, heading: number, flags: number): void;
- export function taskWanderSpecific(ped: Ped | Player | LocalPlayer | number, conditionalAnimGroupStr: string, conditionalAnimStr: string, heading: number): void;
+ export function taskWanderSpecific(ped: Ped | Player | LocalPlayer | number, conditionalAnimGroupStr: string | null, conditionalAnimStr: string | null, heading: number): void;
/**
* Modes:
@@ -21111,18 +21111,18 @@ declare module "@altv/natives" {
* 0 for single player
* Can be 1 but only for MP
*/
- export function taskPlayAnim(ped: Ped | Player | LocalPlayer | number, animDictionary: string, animationName: string, blendInSpeed: number, blendOutSpeed: number, duration: number, flag: number, playbackRate: number, lockX: boolean, lockY: boolean, lockZ: boolean): void;
+ export function taskPlayAnim(ped: Ped | Player | LocalPlayer | number, animDictionary: string | null, animationName: string | null, blendInSpeed: number, blendOutSpeed: number, duration: number, flag: number, playbackRate: number, lockX: boolean, lockY: boolean, lockZ: boolean): void;
/**
* It's similar to TASK_PLAY_ANIM, except the first 6 floats let you specify the initial position and rotation of the task. (Ped gets teleported to the position).
* Full list of animation dictionaries and anims by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animDictsCompact.json
*/
- export function taskPlayAnimAdvanced(ped: Ped | Player | LocalPlayer | number, animDict: string, animName: string, posX: number, posY: number, posZ: number, rotX: number, rotY: number, rotZ: number, animEnterSpeed: number, animExitSpeed: number, duration: number, flag: any, animTime: number, rotOrder: number, ikFlags: number): void;
+ export function taskPlayAnimAdvanced(ped: Ped | Player | LocalPlayer | number, animDict: string | null, animName: string | null, posX: number, posY: number, posZ: number, rotX: number, rotY: number, rotZ: number, animEnterSpeed: number, animExitSpeed: number, duration: number, flag: any, animTime: number, rotOrder: number, ikFlags: number): void;
/**
* Full list of animation dictionaries and anims by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animDictsCompact.json
*/
- export function stopAnimTask(entity: Entity | number, animDictionary: string, animationName: string, blendDelta: number): void;
+ export function stopAnimTask(entity: Entity | number, animDictionary: string | null, animationName: string | null, blendDelta: number): void;
/**
* From fm_mission_controller.c:
@@ -21196,7 +21196,7 @@ declare module "@altv/natives" {
* =========================================================
* Full list of animation dictionaries and anims by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animDictsCompact.json
*/
- export function taskPlayPhoneGestureAnimation(ped: Ped | Player | LocalPlayer | number, animDict: string, animation: string, boneMaskType: string, blendInDuration: number, blendOutDuration: number, isLooping: boolean, holdLastFrame: boolean): void;
+ export function taskPlayPhoneGestureAnimation(ped: Ped | Player | LocalPlayer | number, animDict: string | null, animation: string | null, boneMaskType: string | null, blendInDuration: number, blendOutDuration: number, isLooping: boolean, holdLastFrame: boolean): void;
export function taskStopPhoneGestureAnimation(ped: Ped | Player | LocalPlayer | number, blendOutOverride: number): void;
@@ -21213,7 +21213,7 @@ declare module "@altv/natives" {
* TASK::TASK_VEHICLE_PLAY_ANIM(l_556[0/*1*\/], "missfra0_chop_drhome", "InCar_GetOutofBack_Speedo");
* FYI : Speedo is the name of van in which chop was put in the mission.
*/
- export function taskVehiclePlayAnim(vehicle: Vehicle | number, animationSet: string, animationName: string): void;
+ export function taskVehiclePlayAnim(vehicle: Vehicle | number, animationSet: string | null, animationName: string | null): void;
/**
* enum eScriptLookatFlags
@@ -21292,7 +21292,7 @@ declare module "@altv/natives" {
export function updateTaskAimGunScriptedTarget(ped: Ped | Player | LocalPlayer | number, target: Ped | Player | LocalPlayer | number, x: number, y: number, z: number, disableBlockingClip: boolean): void;
- export function getClipSetForScriptedGunTask(gunTaskType: number): string;
+ export function getClipSetForScriptedGunTask(gunTaskType: number): string | null;
/**
* duration: the amount of time in milliseconds to do the task. -1 will keep the task going until either another task is applied, or CLEAR_ALL_TASKS() is called with the ped
@@ -21647,7 +21647,7 @@ declare module "@altv/natives" {
* Attaches a ped to a rope and allows player control to rappel down a wall. Disables all collisions while on the rope.
* p10: Usually 1 in the scripts, clipSet: Clipset to use for the task, minZ: Minimum Z that the player can descend to, ropeHandle: Rope to attach this task to created with ADD_ROPE
*/
- export function taskRappelDownWallUsingClipsetOverride(ped: Ped | Player | LocalPlayer | number, x1: number, y1: number, z1: number, x2: number, y2: number, z2: number, minZ: number, ropeHandle: number, clipSet: string, p10: any, p11: any): void;
+ export function taskRappelDownWallUsingClipsetOverride(ped: Ped | Player | LocalPlayer | number, x1: number, y1: number, z1: number, x2: number, y2: number, z2: number, minZ: number, ropeHandle: number, clipSet: string | null, p10: any, p11: any): void;
export function getTaskRappelDownWallState(ped: Ped | Player | LocalPlayer | number): number;
@@ -21767,7 +21767,7 @@ declare module "@altv/natives" {
/**
* scenarioName example: "WORLD_HUMAN_GUARD_STAND"
*/
- export function taskStandGuard(ped: Ped | Player | LocalPlayer | number, x: number, y: number, z: number, heading: number, scenarioName: string): void;
+ export function taskStandGuard(ped: Ped | Player | LocalPlayer | number, x: number, y: number, z: number, heading: number, scenarioName: string | null): void;
export function setDriveTaskCruiseSpeed(driver: Ped | Player | LocalPlayer | number, cruiseSpeed: number): void;
@@ -21828,7 +21828,7 @@ declare module "@altv/natives" {
* WORLD_VEHICLE_TRUCK_LOGS
* Full list of ped scenarios by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/scenariosCompact.json
*/
- export function taskStartScenarioInPlace(ped: Ped | Player | LocalPlayer | number, scenarioName: string, unkDelay: number, playEnterAnim: boolean): void;
+ export function taskStartScenarioInPlace(ped: Ped | Player | LocalPlayer | number, scenarioName: string | null, unkDelay: number, playEnterAnim: boolean): void;
/**
* Full list of ped scenarios by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/scenariosCompact.json
@@ -21843,7 +21843,7 @@ declare module "@altv/natives" {
* p7 used for sitting scenarios
* p8 teleports ped to position
*/
- export function taskStartScenarioAtPosition(ped: Ped | Player | LocalPlayer | number, scenarioName: string, x: number, y: number, z: number, heading: number, duration: number, sittingScenario: boolean, teleport: boolean): void;
+ export function taskStartScenarioAtPosition(ped: Ped | Player | LocalPlayer | number, scenarioName: string | null, x: number, y: number, z: number, heading: number, duration: number, sittingScenario: boolean, teleport: boolean): void;
/**
* Updated variables
@@ -21865,7 +21865,7 @@ declare module "@altv/natives" {
export function doesScenarioExistInArea(x: number, y: number, z: number, radius: number, mustBeFree: boolean): boolean;
- export function doesScenarioOfTypeExistInArea(x: number, y: number, z: number, scenarioName: string, radius: number, mustBeFree: boolean): boolean;
+ export function doesScenarioOfTypeExistInArea(x: number, y: number, z: number, scenarioName: string | null, radius: number, mustBeFree: boolean): boolean;
export function isScenarioOccupied(x: number, y: number, z: number, maxRange: number, onlyUsersActuallyAtScenario: boolean): boolean;
@@ -21874,7 +21874,7 @@ declare module "@altv/natives" {
/**
* Full list of animation dictionaries and anims by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animDictsCompact.json
*/
- export function playAnimOnRunningScenario(ped: Ped | Player | LocalPlayer | number, animDict: string, animName: string): void;
+ export function playAnimOnRunningScenario(ped: Ped | Player | LocalPlayer | number, animDict: string | null, animName: string | null): void;
/**
* Full list of scenario groups used in scripts by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/scenarioGroupNames.json
@@ -21911,7 +21911,7 @@ declare module "@altv/natives" {
* if (TASK::DOES_SCENARIO_GROUP_EXIST("Observatory_Bikers") && (!TASK::IS_SCENARIO_GROUP_ENABLED("Observatory_Bikers"))) {
* else if (TASK::IS_SCENARIO_GROUP_ENABLED("BLIMP")) {
*/
- export function doesScenarioGroupExist(scenarioGroup: string): boolean;
+ export function doesScenarioGroupExist(scenarioGroup: string | null): boolean;
/**
* Full list of scenario groups used in scripts by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/scenarioGroupNames.json
@@ -21943,13 +21943,13 @@ declare module "@altv/natives" {
* if (TASK::DOES_SCENARIO_GROUP_EXIST("Observatory_Bikers") && (!TASK::IS_SCENARIO_GROUP_ENABLED("Observatory_Bikers"))) {
* else if (TASK::IS_SCENARIO_GROUP_ENABLED("BLIMP")) {
*/
- export function isScenarioGroupEnabled(scenarioGroup: string): boolean;
+ export function isScenarioGroupEnabled(scenarioGroup: string | null): boolean;
/**
* Full list of scenario groups used in scripts by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/scenarioGroupNames.json
* Occurrences in the b617d scripts: https://pastebin.com/Tvg2PRHU
*/
- export function setScenarioGroupEnabled(scenarioGroup: string, enabled: boolean): void;
+ export function setScenarioGroupEnabled(scenarioGroup: string | null, enabled: boolean): void;
export function resetScenarioGroupsEnabled(): void;
@@ -21962,7 +21962,7 @@ declare module "@altv/natives" {
* "Triathlon_2",
* "Triathlon_3"
*/
- export function setExclusiveScenarioGroup(scenarioGroup: string): void;
+ export function setExclusiveScenarioGroup(scenarioGroup: string | null): void;
export function resetExclusiveScenarioGroup(): void;
@@ -21978,7 +21978,7 @@ declare module "@altv/natives" {
* Sometimes used together with MISC::IS_STRING_NULL_OR_EMPTY in the scripts.
* scenarioType could be the same as scenarioName, used in for example TASK::TASK_START_SCENARIO_AT_POSITION.
*/
- export function isScenarioTypeEnabled(scenarioType: string): boolean;
+ export function isScenarioTypeEnabled(scenarioType: string | null): boolean;
/**
* Full list of scenario types used in scripts by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/scenariosCompact.json
@@ -22014,7 +22014,7 @@ declare module "@altv/natives" {
* "WORLD_VEHICLE_TRUCK_LOGS"
* scenarioType could be the same as scenarioName, used in for example TASK::TASK_START_SCENARIO_AT_POSITION.
*/
- export function setScenarioTypeEnabled(scenarioType: string, toggle: boolean): void;
+ export function setScenarioTypeEnabled(scenarioType: string | null, toggle: boolean): void;
export function resetScenarioTypesEnabled(): void;
@@ -22109,7 +22109,7 @@ declare module "@altv/natives" {
* "miss_Tower_08",
* "miss_Tower_10"
*/
- export function openPatrolRoute(patrolRoute: string): void;
+ export function openPatrolRoute(patrolRoute: string | null): void;
export function closePatrolRoute(): void;
@@ -22125,7 +22125,7 @@ declare module "@altv/natives" {
* p5, p6 and p7 are for example set to: 1599.0406494140625, 2713.392578125, 44.4309.
* p8 is an int, often random set to for example: MISC::GET_RANDOM_INT_IN_RANGE(5000, 10000).
*/
- export function addPatrolRouteNode(nodeId: number, nodeType: string, posX: number, posY: number, posZ: number, headingX: number, headingY: number, headingZ: number, duration: number): void;
+ export function addPatrolRouteNode(nodeId: number, nodeType: string | null, posX: number, posY: number, posZ: number, headingX: number, headingY: number, headingZ: number, duration: number): void;
export function addPatrolRouteLink(nodeId1: number, nodeId2: number): void;
@@ -22138,7 +22138,7 @@ declare module "@altv/natives" {
* TASK::DELETE_PATROL_ROUTE("miss_merc2");
* TASK::DELETE_PATROL_ROUTE("miss_dock");
*/
- export function deletePatrolRoute(patrolRoute: string): void;
+ export function deletePatrolRoute(patrolRoute: string | null): void;
export function getPatrolTaskInfo(ped: Ped | Player | LocalPlayer | number, timeLeftAtNode?: number | null, nodeId?: number | null): [boolean, number, number];
@@ -22160,7 +22160,7 @@ declare module "@altv/natives" {
* TASK::CLOSE_PATROL_ROUTE();
* TASK::CREATE_PATROL_ROUTE();
*/
- export function taskPatrol(ped: Ped | Player | LocalPlayer | number, patrolRouteName: string, alertState: number, canChatToPeds: boolean, useHeadLookAt: boolean): void;
+ export function taskPatrol(ped: Ped | Player | LocalPlayer | number, patrolRouteName: string | null, alertState: number, canChatToPeds: boolean, useHeadLookAt: boolean): void;
/**
* Makes the ped run to take cover
@@ -22256,42 +22256,42 @@ declare module "@altv/natives" {
* For a full list of the points, see here: goo.gl/wIH0vn
* Max number of loaded recordings is 32.
*/
- export function requestWaypointRecording(name: string): void;
+ export function requestWaypointRecording(name: string | null): void;
/**
* Full list of waypoint recordings by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/waypointRecordings.json
*/
- export function getIsWaypointRecordingLoaded(name: string): boolean;
+ export function getIsWaypointRecordingLoaded(name: string | null): boolean;
/**
* Full list of waypoint recordings by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/waypointRecordings.json
*/
- export function removeWaypointRecording(name: string): void;
+ export function removeWaypointRecording(name: string | null): void;
/**
* Full list of waypoint recordings by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/waypointRecordings.json
* For a full list of the points, see here: goo.gl/wIH0vn
*/
- export function waypointRecordingGetNumPoints(name: string, points?: number | null): [boolean, number];
+ export function waypointRecordingGetNumPoints(name: string | null, points?: number | null): [boolean, number];
/**
* Full list of waypoint recordings by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/waypointRecordings.json
* For a full list of the points, see here: goo.gl/wIH0vn
*/
- export function waypointRecordingGetCoord(name: string, point: number, coord?: Vector3 | null): [boolean, Vector3];
+ export function waypointRecordingGetCoord(name: string | null, point: number, coord?: Vector3 | null): [boolean, Vector3];
/**
* Full list of waypoint recordings by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/waypointRecordings.json
*/
- export function waypointRecordingGetSpeedAtPoint(name: string, point: number): number;
+ export function waypointRecordingGetSpeedAtPoint(name: string | null, point: number): number;
/**
* Full list of waypoint recordings by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/waypointRecordings.json
* For a full list of the points, see here: goo.gl/wIH0vn
*/
- export function waypointRecordingGetClosestWaypoint(name: string, x: number, y: number, z: number, point?: number | null): [boolean, number];
+ export function waypointRecordingGetClosestWaypoint(name: string | null, x: number, y: number, z: number, point?: number | null): [boolean, number];
- export function taskFollowWaypointRecording(ped: Ped | Player | LocalPlayer | number, name: string, p2: number, p3: number, p4: number): void;
+ export function taskFollowWaypointRecording(ped: Ped | Player | LocalPlayer | number, name: string | null, p2: number, p3: number, p4: number): void;
export function isWaypointPlaybackGoingOnForPed(ped: Ped | Player | LocalPlayer | number): boolean;
@@ -22301,7 +22301,7 @@ declare module "@altv/natives" {
export function setPedWaypointRouteOffset(ped: Ped | Player | LocalPlayer | number, x: number, y: number, z: number): boolean;
- export function getWaypointDistanceAlongRoute(name: string, point: number): number;
+ export function getWaypointDistanceAlongRoute(name: string | null, point: number): number;
export function waypointPlaybackGetIsPaused(p0: any): boolean;
@@ -22313,7 +22313,7 @@ declare module "@altv/natives" {
export function waypointPlaybackUseDefaultSpeed(p0: any): void;
- export function useWaypointRecordingAsAssistedMovementRoute(name: string, p1: boolean, p2: number, p3: number): void;
+ export function useWaypointRecordingAsAssistedMovementRoute(name: string | null, p1: boolean, p2: number, p3: number): void;
export function waypointPlaybackStartAimingAtPed(ped: Ped | Player | LocalPlayer | number, target: Ped | Player | LocalPlayer | number, p2: boolean): void;
@@ -22328,13 +22328,13 @@ declare module "@altv/natives" {
/**
* Routes: "1_FIBStairs", "2_FIBStairs", "3_FIBStairs", "4_FIBStairs", "5_FIBStairs", "5_TowardsFire", "6a_FIBStairs", "7_FIBStairs", "8_FIBStairs", "Aprtmnt_1", "AssAfterLift", "ATM_1", "coroner2", "coroner_stairs", "f5_jimmy1", "fame1", "family5b", "family5c", "Family5d", "family5d", "FIB_Glass1", "FIB_Glass2", "FIB_Glass3", "finaBroute1A", "finalb1st", "finalB1sta", "finalbround", "finalbroute2", "Hairdresser1", "jan_foyet_ft_door", "Jo_3", "Lemar1", "Lemar2", "mansion_1", "Mansion_1", "pols_1", "pols_2", "pols_3", "pols_4", "pols_5", "pols_6", "pols_7", "pols_8", "Pro_S1", "Pro_S1a", "Pro_S2", "Towards_case", "trev_steps", "tunrs1", "tunrs2", "tunrs3", "Wave01457s"
*/
- export function assistedMovementRequestRoute(route: string): void;
+ export function assistedMovementRequestRoute(route: string | null): void;
- export function assistedMovementRemoveRoute(route: string): void;
+ export function assistedMovementRemoveRoute(route: string | null): void;
- export function assistedMovementIsRouteLoaded(route: string): boolean;
+ export function assistedMovementIsRouteLoaded(route: string | null): boolean;
- export function assistedMovementSetRouteProperties(route: string, props: number): void;
+ export function assistedMovementSetRouteProperties(route: string | null, props: number): void;
export function assistedMovementOverrideLoadDistanceThisFrame(dist: number): void;
@@ -22349,7 +22349,7 @@ declare module "@altv/natives" {
* p11 = 1073741824
* Full list of waypoint recordings by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/waypointRecordings.json
*/
- export function taskVehicleFollowWaypointRecording(ped: Ped | Player | LocalPlayer | number, vehicle: Vehicle | number, WPRecording: string, p3: number, p4: number, p5: number, p6: number, p7: number, p8: boolean, p9: number): void;
+ export function taskVehicleFollowWaypointRecording(ped: Ped | Player | LocalPlayer | number, vehicle: Vehicle | number, WPRecording: string | null, p3: number, p4: number, p5: number, p6: number, p7: number, p8: boolean, p9: number): void;
export function isWaypointPlaybackGoingOnForVehicle(vehicle: Vehicle | number): boolean;
@@ -22383,34 +22383,34 @@ declare module "@altv/natives" {
* Example:
* TASK::TASK_MOVE_NETWORK_BY_NAME(PLAYER::PLAYER_PED_ID(), "arm_wrestling_sweep_paired_a_rev3", 0.0f, true, "mini@arm_wrestling", 0);
*/
- export function taskMoveNetworkByName(ped: Ped | Player | LocalPlayer | number, task: string, multiplier: number, allowOverrideCloneUpdate: boolean, animDict: string, flags: number): void;
+ export function taskMoveNetworkByName(ped: Ped | Player | LocalPlayer | number, task: string | null, multiplier: number, allowOverrideCloneUpdate: boolean, animDict: string | null, flags: number): void;
/**
* Example:
* TASK::TASK_MOVE_NETWORK_ADVANCED_BY_NAME(PLAYER::PLAYER_PED_ID(), "minigame_tattoo_michael_parts", 324.13f, 181.29f, 102.6f, 0.0f, 0.0f, 22.32f, 2, 0, false, 0, 0);
*/
- export function taskMoveNetworkAdvancedByName(ped: Ped | Player | LocalPlayer | number, network: string, x: number, y: number, z: number, rotX: number, rotY: number, rotZ: number, rotOrder: number, blendDuration: number, allowOverrideCloneUpdate: boolean, animDict: string, flags: number): void;
+ export function taskMoveNetworkAdvancedByName(ped: Ped | Player | LocalPlayer | number, network: string | null, x: number, y: number, z: number, rotX: number, rotY: number, rotZ: number, rotOrder: number, blendDuration: number, allowOverrideCloneUpdate: boolean, animDict: string | null, flags: number): void;
/**
* Used only once in the scripts (am_mp_nightclub)
*/
- export function taskMoveNetworkByNameWithInitParams(ped: Ped | Player | LocalPlayer | number, network: string, initialParameters: number | null, blendDuration: number, allowOverrideCloneUpdate: boolean, animDict: string, flags: number): number;
+ export function taskMoveNetworkByNameWithInitParams(ped: Ped | Player | LocalPlayer | number, network: string | null, initialParameters: number | null, blendDuration: number, allowOverrideCloneUpdate: boolean, animDict: string | null, flags: number): number;
- export function taskMoveNetworkAdvancedByNameWithInitParams(ped: Ped | Player | LocalPlayer | number, network: string, initialParameters: number | null, x: number, y: number, z: number, rotX: number, rotY: number, rotZ: number, rotOrder: number, blendDuration: number, allowOverrideCloneUpdate: boolean, dictionary: string, flags: number): number;
+ export function taskMoveNetworkAdvancedByNameWithInitParams(ped: Ped | Player | LocalPlayer | number, network: string | null, initialParameters: number | null, x: number, y: number, z: number, rotX: number, rotY: number, rotZ: number, rotOrder: number, blendDuration: number, allowOverrideCloneUpdate: boolean, dictionary: string | null, flags: number): number;
export function isTaskMoveNetworkActive(ped: Ped | Player | LocalPlayer | number): boolean;
export function isTaskMoveNetworkReadyForTransition(ped: Ped | Player | LocalPlayer | number): boolean;
- export function requestTaskMoveNetworkStateTransition(ped: Ped | Player | LocalPlayer | number, name: string): boolean;
+ export function requestTaskMoveNetworkStateTransition(ped: Ped | Player | LocalPlayer | number, name: string | null): boolean;
/**
* Used only once in the scripts (fm_mission_controller) like so:
* TASK::SET_EXPECTED_CLONE_NEXT_TASK_MOVE_NETWORK_STATE(iLocal_3160, "Cutting");
*/
- export function setExpectedCloneNextTaskMoveNetworkState(ped: Ped | Player | LocalPlayer | number, state: string): boolean;
+ export function setExpectedCloneNextTaskMoveNetworkState(ped: Ped | Player | LocalPlayer | number, state: string | null): boolean;
- export function getTaskMoveNetworkState(ped: Ped | Player | LocalPlayer | number): string;
+ export function getTaskMoveNetworkState(ped: Ped | Player | LocalPlayer | number): string | null;
export function setTaskMoveNetworkAnimSet(ped: Ped | Player | LocalPlayer | number, clipSet: number, variableClipSet: number): void;
@@ -22419,19 +22419,19 @@ declare module "@altv/natives" {
* p2 - From what i can see it goes up to 1f (maybe).
* Example: TASK::SET_TASK_MOVE_NETWORK_SIGNAL_FLOAT(PLAYER::PLAYER_PED_ID(), "Phase", 0.5);
*/
- export function setTaskMoveNetworkSignalFloat(ped: Ped | Player | LocalPlayer | number, signalName: string, value: number): void;
+ export function setTaskMoveNetworkSignalFloat(ped: Ped | Player | LocalPlayer | number, signalName: string | null, value: number): void;
- export function setTaskMoveNetworkSignalLocalFloat(ped: Ped | Player | LocalPlayer | number, signalName: string, value: number): void;
+ export function setTaskMoveNetworkSignalLocalFloat(ped: Ped | Player | LocalPlayer | number, signalName: string | null, value: number): void;
- export function setTaskMoveNetworkSignalFloatLerpRate(ped: Ped | Player | LocalPlayer | number, signalName: string, value: number): void;
+ export function setTaskMoveNetworkSignalFloatLerpRate(ped: Ped | Player | LocalPlayer | number, signalName: string | null, value: number): void;
- export function setTaskMoveNetworkSignalBool(ped: Ped | Player | LocalPlayer | number, signalName: string, value: boolean): void;
+ export function setTaskMoveNetworkSignalBool(ped: Ped | Player | LocalPlayer | number, signalName: string | null, value: boolean): void;
- export function getTaskMoveNetworkSignalFloat(ped: Ped | Player | LocalPlayer | number, signalName: string): number;
+ export function getTaskMoveNetworkSignalFloat(ped: Ped | Player | LocalPlayer | number, signalName: string | null): number;
- export function getTaskMoveNetworkSignalBool(ped: Ped | Player | LocalPlayer | number, signalName: string): boolean;
+ export function getTaskMoveNetworkSignalBool(ped: Ped | Player | LocalPlayer | number, signalName: string | null): boolean;
- export function getTaskMoveNetworkEvent(ped: Ped | Player | LocalPlayer | number, eventName: string): boolean;
+ export function getTaskMoveNetworkEvent(ped: Ped | Player | LocalPlayer | number, eventName: string | null): boolean;
/**
* Doesn't actually return anything.
@@ -22465,7 +22465,7 @@ declare module "@altv/natives" {
* TASK::TASK_SYNCHRONIZED_SCENE(ped, scene, "creatures@rottweiler@in_vehicle@std_car", "get_in", 1000.0, -8.0, 4, 0, 0x447a0000, 0);
* Full list of animation dictionaries and anims by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animDictsCompact.json
*/
- export function taskSynchronizedScene(ped: Ped | Player | LocalPlayer | number, scene: number, animDictionary: string, animationName: string, blendIn: number, blendOut: number, flags: number, ragdollBlockingFlags: number, moverBlendDelta: number, ikFlags: number): void;
+ export function taskSynchronizedScene(ped: Ped | Player | LocalPlayer | number, scene: number, animDictionary: string | null, animationName: string | null, blendIn: number, blendOut: number, flags: number, ragdollBlockingFlags: number, moverBlendDelta: number, ikFlags: number): void;
export function taskAgitatedActionConfrontResponse(ped: Ped | Player | LocalPlayer | number, ped2: Ped | Player | LocalPlayer | number): void;
@@ -22475,11 +22475,11 @@ declare module "@altv/natives" {
* p2, p3, p4: "sweep_low", "sweep_med" or "sweep_high"
* p5: no idea what it does but is usually -1
*/
- export function taskSweepAimEntity(ped: Ped | Player | LocalPlayer | number, animDict: string, lowAnimName: string, medAnimName: string, hiAnimName: string, runtime: number, targetEntity: Entity | number, turnRate: number, blendInDuration: number): void;
+ export function taskSweepAimEntity(ped: Ped | Player | LocalPlayer | number, animDict: string | null, lowAnimName: string | null, medAnimName: string | null, hiAnimName: string | null, runtime: number, targetEntity: Entity | number, turnRate: number, blendInDuration: number): void;
export function updateTaskSweepAimEntity(ped: Ped | Player | LocalPlayer | number, entity: Entity | number): void;
- export function taskSweepAimPosition(ped: Ped | Player | LocalPlayer | number, animDict: string, lowAnimName: string, medAnimName: string, hiAnimName: string, runtime: number, x: number, y: number, z: number, turnRate: number, blendInDuration: number): void;
+ export function taskSweepAimPosition(ped: Ped | Player | LocalPlayer | number, animDict: string | null, lowAnimName: string | null, medAnimName: string | null, hiAnimName: string | null, runtime: number, x: number, y: number, z: number, turnRate: number, blendInDuration: number): void;
export function updateTaskSweepAimPosition(ped: Ped | Player | LocalPlayer | number, x: number, y: number, z: number): void;
@@ -22753,7 +22753,7 @@ declare module "@altv/natives" {
* garageName example "Michael - Beverly Hills"
* Full list of garages by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/garages.json
*/
- export function isVehicleInGarageArea(garageName: string, vehicle: Vehicle | number): boolean;
+ export function isVehicleInGarageArea(garageName: string | null, vehicle: Vehicle | number): boolean;
/**
* colorPrimary & colorSecondary are the paint index for the vehicle.
@@ -23211,12 +23211,12 @@ declare module "@altv/natives" {
* char *plateText = "KING";
* VEHICLE::SET_VEHICLE_NUMBER_PLATE_TEXT(veh, plateText);
*/
- export function setVehicleNumberPlateText(vehicle: Vehicle | number, plateText: string): void;
+ export function setVehicleNumberPlateText(vehicle: Vehicle | number, plateText: string | null): void;
/**
* Returns the license plate text from a vehicle. 8 chars maximum.
*/
- export function getVehicleNumberPlateText(vehicle: Vehicle | number): string;
+ export function getVehicleNumberPlateText(vehicle: Vehicle | number): string | null;
/**
* Returns the number of *types* of licence plates, enumerated below in SET_VEHICLE_NUMBER_PLATE_TEXT_INDEX.
@@ -23309,24 +23309,24 @@ declare module "@altv/natives" {
/**
* See REQUEST_VEHICLE_RECORDING
*/
- export function getVehicleRecordingId(recording: number, script: string): number;
+ export function getVehicleRecordingId(recording: number, script: string | null): number;
/**
* Request the vehicle recording defined by the lowercase format string "%s%03d.yvr". For example, REQUEST_VEHICLE_RECORDING(1, "FBIs1UBER") corresponds to fbis1uber001.yvr.
* For all vehicle recording/playback natives, "script" is a common prefix that usually corresponds to the script/mission the recording is used in, "recording" is its int suffix, and "id" (e.g., in native GET_TOTAL_DURATION_OF_VEHICLE_RECORDING_ID) corresponds to a unique identifier within the recording streaming module.
* Note that only 24 recordings (hardcoded in multiple places) can ever active at a given time before clobbering begins.
*/
- export function requestVehicleRecording(recording: number, script: string): void;
+ export function requestVehicleRecording(recording: number, script: string | null): void;
/**
* See REQUEST_VEHICLE_RECORDING
*/
- export function hasVehicleRecordingBeenLoaded(recording: number, script: string): boolean;
+ export function hasVehicleRecordingBeenLoaded(recording: number, script: string | null): boolean;
/**
* See REQUEST_VEHICLE_RECORDING
*/
- export function removeVehicleRecording(recording: number, script: string): void;
+ export function removeVehicleRecording(recording: number, script: string | null): void;
export function getPositionOfVehicleRecordingIdAtTime(id: number, time: number): Vector3;
@@ -23334,7 +23334,7 @@ declare module "@altv/natives" {
* This native does no interpolation between pathpoints. The same position will be returned for all times up to the next pathpoint in the recording.
* See REQUEST_VEHICLE_RECORDING
*/
- export function getPositionOfVehicleRecordingAtTime(recording: number, time: number, script: string): Vector3;
+ export function getPositionOfVehicleRecordingAtTime(recording: number, time: number, script: string | null): Vector3;
export function getRotationOfVehicleRecordingIdAtTime(id: number, time: number): Vector3;
@@ -23342,14 +23342,14 @@ declare module "@altv/natives" {
* This native does no interpolation between pathpoints. The same rotation will be returned for all times up to the next pathpoint in the recording.
* See REQUEST_VEHICLE_RECORDING
*/
- export function getRotationOfVehicleRecordingAtTime(recording: number, time: number, script: string): Vector3;
+ export function getRotationOfVehicleRecordingAtTime(recording: number, time: number, script: string | null): Vector3;
export function getTotalDurationOfVehicleRecordingId(id: number): number;
/**
* See REQUEST_VEHICLE_RECORDING
*/
- export function getTotalDurationOfVehicleRecording(recording: number, script: string): number;
+ export function getTotalDurationOfVehicleRecording(recording: number, script: string | null): number;
/**
* Distance traveled in the vehicles current recording.
@@ -23365,13 +23365,13 @@ declare module "@altv/natives" {
* p3 is some flag related to 'trailers' (invokes CVehicle::GetTrailer).
* See REQUEST_VEHICLE_RECORDING
*/
- export function startPlaybackRecordedVehicle(vehicle: Vehicle | number, recording: number, script: string, p3: boolean): void;
+ export function startPlaybackRecordedVehicle(vehicle: Vehicle | number, recording: number, script: string | null, p3: boolean): void;
/**
* flags requires further research, e.g., 0x4/0x8 are related to the AI driving task and 0x20 is internally set and interacts with dynamic entity components.
* time, often zero and capped at 500, is related to SET_PLAYBACK_TO_USE_AI_TRY_TO_REVERT_BACK_LATER
*/
- export function startPlaybackRecordedVehicleWithFlags(vehicle: Vehicle | number, recording: number, script: string, flags: number, time: number, drivingStyle: number): void;
+ export function startPlaybackRecordedVehicleWithFlags(vehicle: Vehicle | number, recording: number, script: string | null, flags: number, time: number, drivingStyle: number): void;
/**
* Often called after START_PLAYBACK_RECORDED_VEHICLE and SKIP_TIME_IN_PLAYBACK_RECORDED_VEHICLE; similar in use to FORCE_ENTITY_AI_AND_ANIMATION_UPDATE.
@@ -23398,7 +23398,7 @@ declare module "@altv/natives" {
* AI abides by the provided driving style (e.g., stopping at red lights or waiting behind traffic) while executing the specificed vehicle recording.
* FORCE_PLAYBACK_RECORDED_VEHICLE_UPDATE is a related native that deals with the AI physics for such recordings.
*/
- export function startPlaybackRecordedVehicleUsingAi(vehicle: Vehicle | number, recording: number, script: string, speed: number, drivingStyle: number): void;
+ export function startPlaybackRecordedVehicleUsingAi(vehicle: Vehicle | number, recording: number, script: string | null, speed: number, drivingStyle: number): void;
/**
* SET_TIME_POSITION_IN_RECORDING can be emulated by: desired_time - GET_TIME_POSITION_IN_RECORDING(vehicle)
@@ -24002,14 +24002,14 @@ declare module "@altv/natives" {
* Using HUD::GET_FILENAME_FOR_AUDIO_CONVERSATION, you can get the localized name.
* Full list of vehicles by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/vehicles.json
*/
- export function getDisplayNameFromVehicleModel(modelHash: number): string;
+ export function getDisplayNameFromVehicleModel(modelHash: number): string | null;
/**
* Will return a vehicle's manufacturer display label.
* Returns "CARNOTFOUND" if the hash doesn't match a vehicle hash.
* Full list of vehicles by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/vehicles.json
*/
- export function getMakeNameFromVehicleModel(modelHash: number): string;
+ export function getMakeNameFromVehicleModel(modelHash: number): string | null;
/**
* The only example I can find of this function in the scripts, is this:
@@ -24100,7 +24100,7 @@ declare module "@altv/natives" {
/**
* NOTE: Debugging functions are not present in the retail version of the game.
*/
- export function setVehicleNameDebug(vehicle: Vehicle | number, name: string): void;
+ export function setVehicleNameDebug(vehicle: Vehicle | number, name: string | null): void;
/**
* Sets a vehicle to be strongly resistant to explosions. p0 is the vehicle; set p1 to false to toggle the effect on/off.
@@ -24494,12 +24494,12 @@ declare module "@altv/natives" {
* Returns a string which is the codename of the vehicle's currently selected primary color
* p1 is always 0
*/
- export function getVehicleModColor1Name(vehicle: Vehicle | number, p1: boolean): string;
+ export function getVehicleModColor1Name(vehicle: Vehicle | number, p1: boolean): string | null;
/**
* Returns a string which is the codename of the vehicle's currently selected secondary color
*/
- export function getVehicleModColor2Name(vehicle: Vehicle | number): string;
+ export function getVehicleModColor2Name(vehicle: Vehicle | number): string | null;
export function haveVehicleModsStreamedIn(vehicle: Vehicle | number): boolean;
@@ -24581,12 +24581,12 @@ declare module "@altv/natives" {
* Returns the text label of a mod type for a given vehicle
* Use GET_FILENAME_FOR_AUDIO_CONVERSATION to get the part name in the game's language
*/
- export function getModTextLabel(vehicle: Vehicle | number, modType: number, modValue: number): string;
+ export function getModTextLabel(vehicle: Vehicle | number, modType: number, modValue: number): string | null;
/**
* Returns the name for the type of vehicle mod(Armour, engine etc)
*/
- export function getModSlotName(vehicle: Vehicle | number, modType: number): string;
+ export function getModSlotName(vehicle: Vehicle | number, modType: number): string | null;
/**
* Returns the text label of the vehicle's liveryIndex, as specified by the liveryNames section of the vehicle's modkit data in the carcols file.
@@ -24606,7 +24606,7 @@ declare module "@altv/natives" {
* Use GET_FILENAME_FOR_AUDIO_CONVERSATION, to get the localized livery name.
* Full list of vehicle mod kits and mods by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/vehicleModKits.json
*/
- export function getLiveryName(vehicle: Vehicle | number, liveryIndex: number): string;
+ export function getLiveryName(vehicle: Vehicle | number, liveryIndex: number): string | null;
export function getVehicleModModifierValue(vehicle: Vehicle | number, modType: number, modIndex: number): number;
@@ -25116,7 +25116,7 @@ declare module "@altv/natives" {
export function clearVehicleRouteHistory(vehicle: Vehicle | number): void;
- export function doesVehicleExistWithDecorator(decorator: string): number;
+ export function doesVehicleExistWithDecorator(decorator: string | null): number;
/**
* Used to be incorrectly named SET_VEHICLE_EXCLUSIVE_DRIVER
@@ -26675,7 +26675,7 @@ declare module "@altv/natives" {
* ZQ_UAR = Davis Quartz
* Full list of zones by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/zones.json
*/
- export function getZoneFromNameId(zoneName: string): number;
+ export function getZoneFromNameId(zoneName: string | null): number;
export function getZonePopschedule(zoneId: number): number;
@@ -26771,7 +26771,7 @@ declare module "@altv/natives" {
* ZQ_UAR = Davis Quartz
* Full list of zones by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/zones.json
*/
- export function getNameOfZone(x: number, y: number, z: number): string;
+ export function getNameOfZone(x: number, y: number, z: number): string | null;
export function setZoneEnabled(zoneId: number, toggle: boolean): void;
diff --git a/types/natives/package.json b/types/natives/package.json
index a966896c0..04d5bbec1 100644
--- a/types/natives/package.json
+++ b/types/natives/package.json
@@ -1,6 +1,6 @@
{
"name": "@altv/natives",
- "version": "0.0.8",
+ "version": "0.0.9",
"description": "This package contains the type definitions for the alt:V JS module v2 natives types",
"types": "index.d.ts",
"files": [