Skip to content
Atlas

Using exports the right way

Call Atlas facades instead of digging into core internals.

Rule

Consumer resources use @atlas_core/imports.lua and call Atlas.*.

Checklist

  1. shared_script '@atlas_core/imports.lua'
  2. Gate on Atlas.IsReady()
  3. Mutate money/items/jobs only on the server
  4. Branch inventory on { ok, error }
  5. Never exports.ox_inventory from gameplay

Quick reference

See Exports & Public API for the full table.

Debug

text
atlas_health
atlas_inventory_status

If health is dirty, fix dependencies before blaming your script.