Socket
Socket
Sign inDemoInstall

@untitledteam-fx/fivem-nativeui

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @untitledteam-fx/fivem-nativeui

NativeUI for FiveM written in Javascript / TypeScript


Version published
Weekly downloads
0
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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:

  1. Create in your package.json location a file named .npmrc and add this line:
    @pichotm:registry=https://npm.pkg.github.com
    
  2. Install by run npm install --save @pichotm/fivem-nativeui.
  3. Add this line to top of file where you want to use NativeUI.
    import * as NativeUI from "@pichotm/fivem-nativeui";
    

Without bundler:

  1. Download .zip archive you want from releases page.
  2. 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 your fxmanifest.lua

Example Menu

examples\nativeUI-example

Result:
Result

Keywords

FAQs

Last updated on 30 Mar 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc