# FiveM Basics

> Basic FiveM concepts that help you install, configure, and debug resources.

This page explains common FiveM terms that appear in our documentation and support replies.

## Resource

A resource is a folder loaded by FiveM. It usually contains an `fxmanifest.lua` file.

Example:

```text
resources/
  sky_base/
    fxmanifest.lua
  sky_ambulancejob/
    fxmanifest.lua
```

If a folder does not contain `fxmanifest.lua`, it is probably not the correct resource folder.

## server.cfg

`server.cfg` controls which resources start and in which order.

```cfg [server.cfg]
add_filesystem_permission sky_base write sky_jobs_base
add_filesystem_permission sky_base write sky_ambulancejob

ensure sky_base
ensure sky_jobs_base
ensure sky_ambulancejob
```

If a resource is not ensured, it will not run.

The [filesystem permission lines](/docs/installation#filesystem-permissions) let Sky Base save files
for the named resources. Keep them before `ensure sky_base` and perform a **full server restart**
after adding or changing them.

## Console

The server console shows startup messages, warnings, and errors. When something fails, always check the console first. For error examples, see [Common Console Errors](/docs/guide/common-console-errors).

Common useful commands:

```text
refresh
ensure resource_name
restart resource_name
stop resource_name
```

## Client Console And NUI

The client console is opened with `F8`. It shows client-side errors, missing files, NUI errors, and script messages.

If a menu, tablet, or browser UI does not open, check `F8` and the server console. UI actions often call server callbacks, so a button can fail because of a server-side error.

## Artifacts

FiveM artifacts are the server build files. Old artifacts can cause strange bugs or missing native behavior.

If your server is very outdated, update artifacts before reporting script issues.

## Framework, Inventory And Target

Your framework is usually ESX, QBCore, or Qbox. Sky-Systems resources need the correct framework setting in `sky_base`.

Inventory resources store items, weapons, and metadata. Examples include `ox_inventory`, `qb-inventory`, and other third-party inventories.

Target resources handle interactions with players, vehicles, NPCs, and zones. Examples include `ox_target` and `qb-target`.

## Database

Most current Sky-Systems resources create and migrate their tables automatically while `Config.AutoExecuteQuery = true`. In that default setup, do not additionally import `import.sql`.

Import the matching current `import.sql` before first start only when you intentionally disable automatic queries. If you see missing-table or missing-column errors, first check the configured SQL adapter, database and migration error immediately above it in the console; then use the resource SQL only when automatic queries are disabled.

## Permissions And Admin Access

Some commands and creator tools require admin permissions. If a command says you have no permission, check the command permission config and your ACE/group setup.

If `sky_base` registers permissions automatically, it needs ACE access in `server.cfg` before `ensure sky_base`:

```cfg [server.cfg]
add_ace resource.sky_base command.add_ace allow
```

## Escrow

Some FiveM resources are protected by asset escrow. Do not delete `.fxap` files and do not upload only part of a resource.

For entitlement or protected resource errors, see [Common Console Errors](/docs/guide/common-console-errors#entitlement-or-protected-resource-error).
