-
-
Notifications
You must be signed in to change notification settings - Fork 2
API: World
ᴏᴠ ━ ᴀɴɪꜱᴀ edited this page Mar 4, 2025
·
6 revisions
Assetify's world module plays a crucial role in managing and controlling various model and world-related functions through a set of robust APIs. These interfaces allow users to perform operations such as model occlusions/removal/restoration etc facilitating seamless interaction with asset elements.
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("world"))()
-
✨ Clears native environment.
local bool: result = assetify.world.clear()
-
✨ Restores native environment.
local bool: result = assetify.world.restore()
-
✨ Toggles native occlusions.
local bool: result = assetify.world.toggleOcclusions( bool: state )
-
✨ Clears model's buffer and dict.
local bool: result = assetify.world.clearModel( int: modelID )
-
✨ Restores model's buffer and dict.
local bool: result = assetify.world.restoreModel( int: modelID )