DLCClient

onEnterSp

ON_ENTER_SP0xD7C10C4A637992C9

The GTA V native ON_ENTER_SP of the DLC namespace, as LS:MP client scripts call it: the global function onEnterSp, in JavaScript and in Lua.

SignatureJavaScript
onEnterSp(): void
SignatureLua
onEnterSp()

Usage

JavaScript
onEnterSp();
Lua
onEnterSp()

Parameters

None.

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.

Unloads GROUP_MAP (GTAO/MP) DLC data and loads GROUP_MAP_SP DLC. Neither are loaded by default, onEnterMp is a cognate to this function and loads MP DLC (and unloads SP DLC by extension).
Works in singleplayer.

Reference

Namespace
DLC DLC
In the game
void ON_ENTER_SP()
Hash
0xD7C10C4A637992C9
Formerly
_LOAD_SP_DLC_MAPS

Open in the interactive natives reference