Docs
Creating a Resource
Scaffold a new Atlas gameplay resource the right way.
Goal
Ship a resource that uses Atlas contracts — not raw ox or client-trusted money.
Folder layout
text
resources/[atlas]/my_resource/
fxmanifest.lua
shared/config.lua
server/main.lua
client/main.luafxmanifest.lua
lua
fx_version 'cerulean'
game 'gta5'
lua54 'yes'
name 'my_resource'
description 'Atlas gameplay resource'
version '1.0.0'
shared_scripts {
'@atlas_core/imports.lua',
'shared/config.lua',
}
server_scripts {
'server/main.lua',
}
client_scripts {
'client/main.lua',
}
dependencies {
'atlas_core',
}Ensure order
In server.cfg, start your resource after atlas_core and inventory:
text
ensure atlas_core
ensure ox_inventory
ensure atlas_inventory
ensure my_resourceFirst server check
lua
CreateThread(function()
while not Atlas.IsReady() do
Wait(200)
end
print(('[my_resource] Atlas ready — %s'):format(json.encode(Atlas.GetVersion())))
end)
Atlas