NetworkClient

networkSetCurrentPublicContentId

NETWORK_SET_CURRENT_PUBLIC_CONTENT_ID0x2C863ACDCD12B3DB

The GTA V native NETWORK_SET_CURRENT_PUBLIC_CONTENT_ID of the NETWORK namespace, as LS:MP client scripts call it: the global function networkSetCurrentPublicContentId, in JavaScript and in Lua.

SignatureJavaScript
networkSetCurrentPublicContentId(missionId: string): void
SignatureLua
networkSetCurrentPublicContentId(missionId: string)

Usage

JavaScript
networkSetCurrentPublicContentId(missionId);
Lua
networkSetCurrentPublicContentId(missionId)

Parameters

ParameterTypeJavaScriptLua
missionIdstringstringstring

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Network NETWORK
In the game
void NETWORK_SET_CURRENT_PUBLIC_CONTENT_ID(const char* missionId)
Hash
0x2C863ACDCD12B3DB
Introduced
Game build 2699 legacy numbering
Formerly
_NETWORK_SET_CURRENT_MISSION_ID

Open in the interactive natives reference