@untitledteam-fx/fivem-nativeui
v1.4.7
Published
NativeUI for FiveM written in Javascript / TypeScript
Downloads
9
Readme
FiveM-NativeUI
This project is a (fully TypeScript compatible) port of RageMP-NativeUI Kar for FiveM. It provides a simple way to use NativeUI menus in your clientside scripts. A lot of credits to datWeazel who made the initial port of the RageMP-NativeUI.
Usage:
With bundler:
- Create in your
package.json
location a file named.npmrc
and add this line:@pichotm:registry=https://npm.pkg.github.com
- Install by run
npm install --save @pichotm/fivem-nativeui
. - Add this line to top of file where you want to use NativeUI.
import * as NativeUI from "@pichotm/fivem-nativeui";
Without bundler:
- Download
.zip
archive you want from releases page. - Unpack archive in client's folder, and import like any other file:
# nativeui-min import * as NativeUI from "nativeui/nativeui.min.js"; # nativeui import * as NativeUi from "nativeui/nativeui.js";
- Don't forget include nativeui folder in
client_scripts
section of yourfxmanifest.lua
- Don't forget include nativeui folder in
Example Menu
examples\nativeUI-example
Result: