Skip to content

Client assets

Everything under <scripts_path>/client/ is offered to connecting clients. Ordinary JavaScript, HTML, CSS, fonts, and images can live directly in that tree. GTA streaming content belongs under client/resources/<name>/ and must have VIMP manifests.

text
scripting/client/
├─ main.js
├─ ui/
│  └─ index.html
└─ resources/
   ├─ custom_car/
   │  ├─ resource.toml
   │  ├─ stream.toml
   │  └─ stream/
   └─ police_interior/
      ├─ resource.toml
      ├─ stream.toml
      └─ stream/

The server publishes a hashed resource manifest. A client reuses matching cached files and downloads missing or changed files before running client code. Asset metadata is mounted before client/main.js begins.

Use type = "dlc" for add-on vehicle/model packages and type = "map" for maps or MLOs. VIMP does not consume FiveM fxmanifest.lua files; convert the resource to the documented VIMP layout.

Never place server code, credentials, or private source files in the client tree.

VIMP developer documentation