FixObjectFragment — FiveM Natives
0xF9C1681347C8BD15 · OBJECT · all
Resets and brings back all the children of a fragment based object. This should be used when attaching or detaching an object from another entity, especially when the object being detached consists of multiple fragments. Attempting to teleport a fragment-based object using SET_ENTITY_COORDS such as a flag object, will result in it remaining in place and failing to teleport, given the condition mentioned in the preceding statement. The native should be executed after detaching the object from its parent entity and before calling SET_ENTITY_COORDS. Example given down below.
Parameters
| Name | Type | Description |
|---|---|---|
| object | Object | The object to fix fragments for (a handle should be passed). |
Returns
void