Help with NativeUI

Recommended Posts

I wanted to ask how to add NativeUI. I used C # as a programming language. So as I add it in the server and in Visual Studio.

Thanks in advance!


Share this post

Link to post
Share on other sites
Posted (edited)

@codeqod To add a NativeUI first of all you cannot add it in your server-side. You need to add it in your client-side.

Use your server-side script to invoke a ClientEvent. In the client-side (optional: module) script Event.Add to fetch the invoke'd event from the server. Then in the client delegate a function to that eventName.

In the delegated function you need to create a RAGE.NUI.MenuPool and then create a RAGE.NUI.UIMenu and keep adding items to it which suffices your functional needs. Then make UIMenu.Visible as true. And you're good to go.

You'll get something like this


Edited by $kylar

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.