PedClient

attachSynchronizedSceneToEntity

ATTACH_SYNCHRONIZED_SCENE_TO_ENTITY0x272E4723B56A3B96

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

SignatureJavaScript
attachSynchronizedSceneToEntity(
  sceneID: number,
  entity: Entity,
  boneIndex: number
): void
SignatureLua
attachSynchronizedSceneToEntity(
  sceneID: integer,
  entity: Entity,
  boneIndex: integer
)

Usage

JavaScript
attachSynchronizedSceneToEntity(sceneID, entity, boneIndex);
Lua
attachSynchronizedSceneToEntity(sceneID, entity, boneIndex)

Parameters

ParameterTypeJavaScriptLua
sceneIDintnumberinteger
entityEntitynumberinteger
boneIndexintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Ped PED
In the game
void ATTACH_SYNCHRONIZED_SCENE_TO_ENTITY(int sceneID, Entity entity, int boneIndex)
Hash
0x272E4723B56A3B96

Open in the interactive natives reference