PedClient

createNmMessage

CREATE_NM_MESSAGE0x418EF2A1BCE56685

The GTA V native CREATE_NM_MESSAGE of the PED namespace, as LS:MP client scripts call it: the global function createNmMessage, in JavaScript and in Lua.

SignatureJavaScript
createNmMessage(startImmediately: boolean, messageId: number): void
SignatureLua
createNmMessage(startImmediately: boolean, messageId: integer)

Usage

JavaScript
createNmMessage(startImmediately, messageId);
Lua
createNmMessage(startImmediately, messageId)

Parameters

ParameterTypeJavaScriptLuaDescription
startImmediatelyBOOLbooleanbooleanIf set to true, the character will perform the message the moment it receives it by givePedNmMessage. If false, the Ped will get the message but won't perform it yet. While it's a boolean value, if negative, the message will not be initialized.
messageIdintnumberintegerThe ID of the NaturalMotion message.

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.

Creates a new NaturalMotion message.

If a message already exists, this function does nothing. A message exists until the point it has been successfully dispatched by givePedNmMessage.

Reference

Namespace
Ped PED
In the game
void CREATE_NM_MESSAGE(BOOL startImmediately, int messageId)
Hash
0x418EF2A1BCE56685

Open in the interactive natives reference