ScriptlerliveBaseEnglish
NUI Infrastructure
liveNuiCore library, liveBase design standard, and NUI development guide.
🌐 Türkçe · NUI Altyapısı
liveNuiCore
Version: 1.0.0 (npm: @live/nui-core) — shared React NUI library, not started as a resource.
Stack: React 19, TypeScript, Tailwind 4, Framer Motion, Zustand, Vite
import { fetchNui, useNuiEvent, GlassPanel, LvPage, LV_DESIGN } from "@live/nui";Template: liveNuiCore/template/
liveBase Design Standard
| Property | Value | CSS variable |
|---|---|---|
| Border radius | 16px | --lv-radius |
| Font | Inter | --lv-font |
| Accent | Green #A2D149 | --lv-accent |
| Animation | 250ms | --lv-duration |
Components: GlassPanel, LvPage, LvModal, AnimatedList, LvDragItem
Motion presets: liveNuiCore/src/motion/presets.ts
NUI development
- Create
web/folder - Copy
liveNuiCore/template/ - Configure
fxmanifest.lua cd web && npm install && npm run start:game
SendNUIMessage({ action = 'setVisible', data = true })await fetchNui("myCallback", { id: 1 });All new NUIs should use liveBase design tokens from liveNuiCore.