StreamingClient

setIslandEnabled

SET_ISLAND_ENABLED0x9A9D1BA639675CF1

The GTA V native SET_ISLAND_ENABLED of the STREAMING namespace, as LS:MP client scripts call it: the global function setIslandEnabled, in JavaScript and in Lua.

SignatureJavaScript
setIslandEnabled(name: string, toggle: boolean): void
SignatureLua
setIslandEnabled(name: string, toggle: boolean)

Usage

JavaScript
setIslandEnabled(name, toggle);
Lua
setIslandEnabled(name, toggle)

Parameters

ParameterTypeJavaScriptLua
namestringstringstring
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Enables the specified island. For more information, see islandhopper.meta

Reference

Namespace
Streaming STREAMING
In the game
void SET_ISLAND_ENABLED(const char* name, BOOL toggle)
Hash
0x9A9D1BA639675CF1
Introduced
Game build 2189 legacy numbering
Formerly
_SET_ISLAND_HOPPER_ENABLED

Open in the interactive natives reference