Skip to content
This repository has been archived by the owner on Mar 2, 2019. It is now read-only.

Latest commit

 

History

History
47 lines (25 loc) · 1.74 KB

README.md

File metadata and controls

47 lines (25 loc) · 1.74 KB

⚠️ I've stopped development of this resource @iTexZoz seems to have picked it up: https://github.com/iTexZoz/NativeUILua-Reloaded

NativeUI in LUA for FiveM.

NativeUILua Example

Original: https://github.com/Guad/NativeUI

Include client_script '@NativeUI/NativeUI.lua' in your __resource.lua to use

Creation Functions

NativeUI.CreatePool() used to handle all your menus

NativeUI.CreateMenu(Title, Subtitle, X, Y, TxtDictionary, TxtName) create a UIMenu

NativeUI.CreateItem(Text, Description) create a UIMenuItem

NativeUI.CreateColouredItem(Text, Description, MainColour, HighlightColour) create a UIMenuColouredItem

NativeUI.CreateCheckboxItem(Text, Check, Description) create a UIMenuCheckboxItem

NativeUI.CreateListItem(Text, Items, Index, Description) create a UIMenuListItem

NativeUI.CreateSliderItem(Text, Items, Index, Description, Divider) create a UIMenuSliderItem

NativeUI.CreateProgressItem(Text, Items, Index, Description, Counter)

NativeUI.CreateSprite(TxtDictionary, TxtName, X, Y, Width, Height, Heading, R, G, B, A) create a Sprite

NativeUI.CreateRectangle(X, Y, Width, Height, R, G, B, A) create a Rectangle

NativeUI.CreateText(Text, X, Y, Scale, R, G, B, A, Font, Alignment, DropShadow, Outline, WordWrap) create Text

Window(s)

Used with UIMenu with functions :AddWindow(Window) and :RemoveWindowAt(Index)

NativeUI.CreateHeritageWindow(Mum, Dad)

Panel(s)

Currently only can be used with UIMenuListItem with functions :AddPanel(Panel) and :RemovePanelAt(Index)

NativeUI.CreateGridPanel(TopText, LeftText, RightText, BottomText)

NativeUI.CreateColourPanel(Title, Colours)

NativeUI.CreatePercentagePanel(MinText, MaxText)