Skip to content

API: World

ᴏᴠ ━ ᴀɴɪꜱᴀ edited this page Mar 4, 2025 · 6 revisions

» Overview

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.

» Importing

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"))()

» APIs

  • assetify.world.clear - client

    Clears native environment.

    local bool: result = assetify.world.clear()
  • assetify.world.restore - client

    Restores native environment.

    local bool: result = assetify.world.restore()
  • assetify.world.toggleOcclusions - client

    Toggles native occlusions.

    local bool: result = assetify.world.toggleOcclusions(
       bool: state
    )
  • assetify.world.clearModel - client

    Clears model's buffer and dict.

    local bool: result = assetify.world.clearModel(
       int: modelID
    )
  • assetify.world.restoreModel - client

    Restores model's buffer and dict.

    local bool: result = assetify.world.restoreModel(
       int: modelID
    )