isMissionNewsStoryUnlocked
IS_MISSION_NEWS_STORY_UNLOCKED0x66E49BF55B4B1874The 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.
isMissionNewsStoryUnlocked(newsStory: number): booleanisMissionNewsStoryUnlocked(newsStory: integer): booleanUsage
JavaScript
const result = isMissionNewsStoryUnlocked(newsStory);Lua
local result = isMissionNewsStoryUnlocked(newsStory)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
newsStory | int | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanOn 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