AudioClientChecked by LS:MP

isMissionNewsStoryUnlocked

IS_MISSION_NEWS_STORY_UNLOCKED0x66E49BF55B4B1874

The GTA V native IS_MISSION_NEWS_STORY_UNLOCKED of the AUDIO namespace, as LS:MP client scripts call it: the global function isMissionNewsStoryUnlocked, in JavaScript and in Lua.

SignatureJavaScript
isMissionNewsStoryUnlocked(newsStory: number): boolean
SignatureLua
isMissionNewsStoryUnlocked(newsStory: integer): boolean

Usage

JavaScript
const result = isMissionNewsStoryUnlocked(newsStory);
Lua
local result = isMissionNewsStoryUnlocked(newsStory)

Parameters

ParameterTypeJavaScriptLua
newsStoryintnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

On LS:MP

ℹ
Checked by LS:MP

newsStory must be between 1 and 256. Otherwise the call is ignored and returns false: nothing reaches the game, and no error is raised.

Reference

Namespace
Audio AUDIO
In the game
BOOL IS_MISSION_NEWS_STORY_UNLOCKED(int newsStory)
Hash
0x66E49BF55B4B1874
Formerly
GET_NUMBER_OF_PASSENGER_VOICE_VARIATIONS

Open in the interactive natives reference