networkPostUdsActivityEnd
NETWORK_POST_UDS_ACTIVITY_ENDThe GTA V native NETWORK_POST_UDS_ACTIVITY_END of the NETWORK namespace, as LS:MP client scripts call it: the global function networkPostUdsActivityEnd, in JavaScript and in Lua.
networkPostUdsActivityEnd(
activityId: string,
iOutcome: number,
iScore: number
): voidnetworkPostUdsActivityEnd(
activityId: string,
iOutcome: integer,
iScore: integer
)⚠
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
networkPostUdsActivityEnd(activityId, iOutcome, iScore);Lua
networkPostUdsActivityEnd(activityId, iOutcome, iScore)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
activityId | string | string | string |
iOutcome | int | number | integer |
iScore | int | number | integer |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Reference
- Namespace
- Network NETWORK
- In the game
void NETWORK_POST_UDS_ACTIVITY_END(const char* activityId, int iOutcome, int iScore)