VelonLabs

Skip to content

FiveM development. Step by step.

See your NUI before switching into the game.

FiveM interfaces often use HTML, CSS and JavaScript. NUI preview displays that interface in your browser, so you can review its appearance and supported interactions during development.

What you can do

A quick layout and interaction review complements your test server. Game logic and real server responses still need testing in FiveM.

Work on a NUI in chat
NUI · Live SimulationExample
CENTRAL GARAGE▱ Vehicles› Park vehicle› Close
HTML · CSS · JavaScript

Open the interface with its dependencies

Use the HTML file together with its styles, scripts and required assets. Missing images or incorrect paths often become obvious in a preview before they do in a code review. For a resource with several files, identify the NUI entry point.

Review appearance and supported interactions

Look at spacing, readability, menus and states. Supported interactions help you follow the intended flow. Check long vehicle names, empty lists and different amounts of content. Tell the AI exactly what should change, then compare the next version of the interface.

Keep browser preview and FiveM testing distinct

Preview runs in an isolated browser environment. It does not provide a complete FiveM client or prove that NUI callbacks, database operations and server events work. Test focus changes, keyboard input, messages between Lua and the UI, and permissions in game afterwards.

For your next task

Make a UI revision specific

A long vehicle name is clipped in the garage NUI. Adjust the cards so the name and status remain readable. Include a state with no vehicles. Preserve the existing callback names.

Check before moving on

  • Check the HTML entry point and asset paths
  • Review long text and empty states
  • Test mouse and keyboard interaction
  • Verify callbacks and focus in the real client

Scope and limitations

Not every FiveM or external browser interface is available in preview. A correctly displayed interface can still have integration problems in game. Complete the final checks on a test server.

Current plans and conditions →

Common questions

Is preview a FiveM server?

No. It shows web interfaces and supported interactions in an isolated browser environment.

Can I discuss NUI changes with the AI?

Yes. Describe the specific visual problem and provide the affected files. You can then compare the result in preview.

Your project. Your next step.

Describe your idea or upload an existing resource. Continue working on the source code and test the result on your server.

Open AI chat →