TasksClientNot in this build

setSequencePreventMigration

SET_SEQUENCE_PREVENT_MIGRATION0xF5D1F489147CB683

The GTA V native SET_SEQUENCE_PREVENT_MIGRATION of the TASK namespace, as LS:MP client scripts call it: the global function setSequencePreventMigration, in JavaScript and in Lua.

SignatureJavaScript
setSequencePreventMigration(taskSequenceId: number): void
SignatureLua
setSequencePreventMigration(taskSequenceId: integer)
⚠
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
setSequencePreventMigration(taskSequenceId);
Lua
setSequencePreventMigration(taskSequenceId)

Parameters

ParameterTypeJavaScriptLua
taskSequenceIdintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Tasks TASK
In the game
void SET_SEQUENCE_PREVENT_MIGRATION(int taskSequenceId)
Hash
0xF5D1F489147CB683
Introduced
Game build 3570 legacy numbering

Open in the interactive natives reference