createNmMessage
CREATE_NM_MESSAGE0x418EF2A1BCE56685The 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.
createNmMessage(startImmediately: boolean, messageId: number): voidcreateNmMessage(startImmediately: boolean, messageId: integer)Usage
JavaScript
createNmMessage(startImmediately, messageId);Lua
createNmMessage(startImmediately, messageId)Parameters
| Parameter | Type | JavaScript | Lua | Description |
|---|---|---|---|---|
startImmediately | BOOL | boolean | boolean | If 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. |
messageId | int | number | integer | The 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