savemigrationMpIsPlatformGeneration
SAVEMIGRATION_MP_IS_PLATFORM_GENERATIONThe 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.
savemigrationMpIsPlatformGeneration(generation: number): booleansavemigrationMpIsPlatformGeneration(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
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
generation | int | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanReference
- Namespace
- Save migration SAVEMIGRATION
- In the game
BOOL SAVEMIGRATION_MP_IS_PLATFORM_GENERATION(int generation)