C# compile problem


#1

I follow everything and I have this :

I don’t know what to do


#2

Up please, I need help. This will be good cause I want to make extra bar for water and food.


#3

What? You don’t need to build the client in order to make C# resources, all you need is the NuGet package.


#5

Last step :


#6

Just remove the post-build command.

Right-click on your project->Properties->Build (or something like that)


#7

Thanks but still don’t work :confused:
Warning still here


#8

ah yes, because there is missing dependancies. you have to find or download nativeui dll. you can find it on : https://github.com/Guad/NativeUI/releases/


#9

Thanks but I know it, I import Nativeui.dll to my project but still don’t work too :confused: (It’s not really my project, I tried to recompile FRFuel. Should I try with a basic project ?


#10

Comment out the adhesive module from the config.lua file in the code/components subdirectory.


#11

What are you talking about ?


#12

Your premake error is because there is no adhesive directory. Look in the file I referenced and remove that line or put – in front of it to comment it out. Rerun your premake command and it will build your VS solution and project files.

With that said, you’re not going to be able to do much with them. The FiveM source that you’re trying to build is a WIP. It’s not what the current compiled server and client binaries are built on.


#13

for using nativeui.dll with your project and make it run properly , you need :slight_smile:

  1. to get the good version 1.7 of nativeui you can get here : https://github.com/citizenfx/NativeUI

build it and then don’t forget to rename it as nativeui.net.dll ( otherwise fivem won’t see it)
put the nativeui.net.dll in your script folder

and last thing to do is to be sure you have call the nativeui before your script in the file __resources

if your code is correct and your follow this points , everything should work for you