codeqod Posted December 21, 2019 Posted December 21, 2019 Hello, 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! Greetings, Tobi
$kylar Posted January 8, 2020 Posted January 8, 2020 (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 January 9, 2020 by $kylar
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now