Save migrationClientNot in this build

savemigrationMpIsPlatformGeneration

SAVEMIGRATION_MP_IS_PLATFORM_GENERATION

The GTA V native SAVEMIGRATION_MP_IS_PLATFORM_GENERATION of the SAVEMIGRATION namespace, as LS:MP client scripts call it: the global function savemigrationMpIsPlatformGeneration, in JavaScript and in Lua.

SignatureJavaScript
savemigrationMpIsPlatformGeneration(generation: number): boolean
SignatureLua
savemigrationMpIsPlatformGeneration(generation: integer): 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 = savemigrationMpIsPlatformGeneration(generation);
Lua
local result = savemigrationMpIsPlatformGeneration(generation)

Parameters

ParameterTypeJavaScriptLua
generationintnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Save migration SAVEMIGRATION
In the game
BOOL SAVEMIGRATION_MP_IS_PLATFORM_GENERATION(int generation)

Open in the interactive natives reference