Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. The Diamond Casino Heist
      2. Find Lobbies & Players
      3. Guides & Strategies
      4. Vehicles
      5. Content Creator
      6. Help & Support
    2. Red Dead Online

      1. Frontier Pursuits
      2. Find Lobbies & Outlaws
      3. Help & Support
    3. Crews

    1. Red Dead Redemption 2

      1. PC
      2. Gameplay
      3. Missions
      4. Help & Support
    2. Red Dead Redemption

    1. Grand Theft Auto Series

    2. GTA 6

      1. St Andrews Cathedral
    3. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA Chinatown Wars

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
    9. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
    10. GTA III

      1. Guides & Strategies
      2. Help & Support
    11. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    3. Gangs

    1. Announcements

    2. Support

    3. Suggestions

BDC_Osiris

NativeUI:SA

Recommended Posts

BDC_Osiris
Posted (edited)

WFzuYNZ.png

NativeUI:SA

DOWNLOAD v1.0.1

 

Things you need:

ASI Loader -> https://www.gtagarage.com/mods/show.php?id=21709

Moonloader -> https://gtaforums.com/topic/890987-moonloader/

MoonAdditions -> https://gtaforums.com/topic/893996-moonadditions/

 

NativeUI:SA is a .lua library which brings into GTA San Andreas the possibility of creating custom GTAV style GUI elements, such as menus, notifications above the radar and so on. It will introduce also some GTA V hud elements, such as the weapon wheel included in my previous mod GTA V Weapon System, a fully functional phone and many more.

Currently, I've finished the first version of the script for creating interactive menus. Here is how does it appear in the game:

 

 

Scripting in lua is easy and functional. The script used in this video shows only the structure look of a menu: no function are applied to rows (but you can do it, to trigger events when pressing a certain key).

You can take a look below to get an early impression of how the scripting will be. The script below is the same script used in the video.

Spoiler
require "lib.moonloader"
local int_menu = require "lib.nativeUI.int_menu"

local MENU = int_menu:create()

function main()
    MENU:setTitleTexture("interaction")
    MENU:setTitleText("Native UI")

    MENU:setOpenKey(VK_M)

    MENU:addPanel("NATIVEUI SHOWCASE")

    MENU:addRow("Simple row")
    MENU:rowSetDescription("This is a simple row")

    MENU:addRow("Disabled row")
    MENU:rowSetEnabled(false)

    MENU:addRow("Locked row")
    MENU:rowSetLocked(1)

    MENU:addRow("Arena locked row")
    MENU:rowSetLocked(2)
    
    MENU:addRow("New row")
    MENU:rowSetNew(true)

    MENU:addRow("Gold medal row")
    MENU:rowAddProperty_Medal(1)
    MENU:rowSwitchTo_MedalRow()

    MENU:addRow("Silver medal row")
    MENU:rowAddProperty_Medal(2)
    MENU:rowSwitchTo_MedalRow()

    MENU:addRow("Bronze medal row")
    MENU:rowAddProperty_Medal(3)
    MENU:rowSwitchTo_MedalRow()

    MENU:addRow("Checkbox row")
    MENU:rowAddProperty_Checkbox(false)
    MENU:rowSwitchTo_CheckboxRow()

    MENU:addRow("Crossbox row")
    MENU:rowAddProperty_Crossbox(false)
    MENU:rowSwitchTo_CrossboxRow()

    MENU:addRow("Tick row")
    MENU:rowSwitchTo_TickRow()

    MENU:addRow("Right text row")
    MENU:rowAddProperty_RightText("FREE")
    MENU:rowSwitchTo_RightTextRow()

    MENU:addRow("Price row")
    MENU:rowAddProperty_Price(500)
    MENU:rowSwitchTo_PriceRow()

    MENU:addRow("Chips row")
    MENU:rowAddProperty_Price(500)
    MENU:rowSwitchTo_ChipsRow()

    MENU:addRow("List row")
    MENU:rowAddProperty_List({"Item 1", "Item 2", "Item 3"})
    MENU:rowSwitchTo_ListRow()

    MENU:addRow("Car badge row")
    MENU:rowAddProperty_Badge('car')
    MENU:rowSwitchTo_BadgeRow()

    MENU:addRow("Bike badge row")
    MENU:rowAddProperty_Badge('bike')
    MENU:rowSwitchTo_BadgeRow()

    MENU:addRow("Weapon badge row")
    MENU:rowAddProperty_Badge('gun')
    MENU:rowSwitchTo_BadgeRow()

    MENU:addRow("Ammo badge row")
    MENU:rowAddProperty_Badge('ammo')
    MENU:rowSwitchTo_BadgeRow()

    MENU:addRow("Armour badge row")
    MENU:rowAddProperty_Badge('armour')
    MENU:rowSwitchTo_BadgeRow()

    MENU:addRow("health badge row")
    MENU:rowAddProperty_Badge('health')
    MENU:rowSwitchTo_BadgeRow()

    MENU:addRow("Barber badge row")
    MENU:rowAddProperty_Badge('barber')
    MENU:rowSwitchTo_BadgeRow()

    MENU:addRow("Clothing badge row")
    MENU:rowAddProperty_Badge('clothing')
    MENU:rowSwitchTo_BadgeRow()

    MENU:addRow("Mask badge row")
    MENU:rowAddProperty_Badge('mask')
    MENU:rowSwitchTo_BadgeRow()

    MENU:addRow("Makeup badge row")
    MENU:rowAddProperty_Badge('makeup')
    MENU:rowSwitchTo_BadgeRow()

    MENU:addRow("Art badge row")
    MENU:rowAddProperty_Badge('art')
    MENU:rowSwitchTo_BadgeRow()

    MENU:addRow("Tattoo badge row")
    MENU:rowAddProperty_Badge('tattoo')
    MENU:rowSwitchTo_BadgeRow()

    MENU:addRow("Michael badge row")
    MENU:rowAddProperty_Badge('michael')
    MENU:rowSwitchTo_BadgeRow()

    MENU:addRow("Franklin badge row")
    MENU:rowAddProperty_Badge('franklin')
    MENU:rowSwitchTo_BadgeRow()

    MENU:addRow("Trevor badge row")
    MENU:rowAddProperty_Badge('trevor')
    MENU:rowSwitchTo_BadgeRow()

    MENU:addRow("Redirect row")
    MENU:rowAddProperty_Redirect(2)
    MENU:rowSwitchTo_RedirectRow()

    MENU:addPanel("Redirected panel")
    MENU:addRow("Redirection row")
    MENU:rowSetDescription("You've been redirected here!")

    while true do
        wait(0)
        MENU:show()
    end
end

 

 

I want to thanks Guad and his NativeUI mod for GTA V, which gave me the inspiration to do this.

Edited by BDC_Osiris
  • Like 5

Share this post


Link to post
Share on other sites
𝒌𝙧𝒊𝙩𝙎𝒌𝒊𝒚  ✗

I'm sorry that you still decided to stop working on "Weapon Systemand from canceling plans to move it to ASI

Share this post


Link to post
Share on other sites
BDC_Osiris
Posted (edited)
6 hours ago, 𝒌𝙧𝒊𝙩𝙎𝒌𝒊𝒚 ✗ said:

I'm sorry that you still decided to stop working on "Weapon Systemand from canceling plans to move it to ASI

As I said, GTA V Weapon System will be integrated in this mod, so i will continue working on it, don't worry. I wanted only to give it a more complete background.


And about ASI, I tried to do it but as now i can't because is too difficult for me. And, though i know cleo, this won't work for technical limitations.

 

---------------------------------------------------------------------------------------------------

The first version is ready but i want to finish the documentation before releasing it.

Edited by BDC_Osiris
  • Like 2
  • YEE 1

Share this post


Link to post
Share on other sites
AvinashD

Good Job!

Can't wait for the first release.😅

  • Like 1

Share this post


Link to post
Share on other sites
BDC_Osiris

VERSION 1.0

DOWNLOAD

 

Things you need:

ASI Loader -> https://www.gtagarage.com/mods/show.php?id=21709

Moonloader -> https://gtaforums.com/topic/890987-moonloader/

MoonAdditions -> https://gtaforums.com/topic/893996-moonadditions/

--------------------------------------------------------------------------------------------------

This version contains the tools you need to create a simple menu. Before starting to write the code, take a look to the documentation folder inside the archive.

If you encounter any bug or you want to suggest something, such as new functions or additions, write them here.

--------------------------------------------------------------------------------------------------

Next version:

V2.0: Weapon wheel (from my old GTA V Weapon System mod)

 

  • Like 2

Share this post


Link to post
Share on other sites
AvinashD

Yesssssss!!!

Finally.

10 hours ago, BDC_Osiris said:

VERSION 1.0

DOWNLOAD

 

Things you need:

ASI Loader -> https://www.gtagarage.com/mods/show.php?id=21709

Moonloader -> https://gtaforums.com/topic/890987-moonloader/

MoonAdditions -> https://gtaforums.com/topic/893996-moonadditions/

--------------------------------------------------------------------------------------------------

This version contains the tools you need to create a simple menu. Before starting to write the code, take a look to the documentation folder inside the archive.

If you encounter any bug or you want to suggest something, such as new functions or additions, write them here.

--------------------------------------------------------------------------------------------------

Next version:

V2.0: Weapon wheel (from my old GTA V Weapon System mod)

 

 

Share this post


Link to post
Share on other sites
BDC_Osiris

VERSION 1.0.1

DOWNLOAD

 

CHANGELOG:

- fixed a problem with onUpdate event

- fixed a problem with locked rows

  • Like 2

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.