-
-
Notifications
You must be signed in to change notification settings - Fork 2
API: Attacher
ᴏᴠ ━ ᴀɴɪꜱᴀ edited this page Mar 4, 2025
·
10 revisions
Assetify's attachment module serves as a robust framework for managing entity attachments, enabling users to seamlessly control and customize various elements on demand.
Add the below code globally once in either of the shared .lua
script of the resource you want to use within:
loadstring(exports.assetify_library:import("attacher"))()
-
✨ Attaches an element to a valid parent's bone.
local bool: result = assetify.attacher.setAttachment( element: element, element: parent, float: offX, --Optional float: offY, --Optional float: offZ, --Optional float: rotX, --Optional float: rotY, --Optional float: rotZ --Optional )
-
✨ Detaches an element from attached parent.
local bool: result = assetify.attacher.setDetachment( element: element )
-
✨ Clears element's/parent's attachments.
local bool: result = assetify.attacher.clearAttachment( element: element )