Social ClubClientNot in this build

scPauseNewsInitStoryType

SC_PAUSE_NEWS_INIT_STORY_TYPE

The GTA V native SC_PAUSE_NEWS_INIT_STORY_TYPE of the SOCIALCLUB namespace, as LS:MP client scripts call it: the global function scPauseNewsInitStoryType, in JavaScript and in Lua.

SignatureJavaScript
scPauseNewsInitStoryType(storyType: number, textOnly: boolean): boolean
SignatureLua
scPauseNewsInitStoryType(storyType: integer, textOnly: boolean): boolean
⚠
Not in this game build

The global exists, but the native is not part of the game build LS:MP runs: calling it does nothing and returns undefined in JavaScript, nil in Lua. It never throws. See Coverage.

Usage

JavaScript
const result = scPauseNewsInitStoryType(storyType, textOnly);
Lua
local result = scPauseNewsInitStoryType(storyType, textOnly)

Parameters

ParameterTypeJavaScriptLua
storyTypeintnumberinteger
textOnlyBOOLbooleanboolean

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Social Club SOCIALCLUB
In the game
BOOL SC_PAUSE_NEWS_INIT_STORY_TYPE(int storyType, BOOL textOnly)

Open in the interactive natives reference