TomGrobbe / MenuAPI

FiveM C# Menu API. Designed specifically as a replacement of NativeUI for vMenu. Full safezone scaling supported, both left and right aligned menus supported.
https://docs.vespura.com/mapi
62 stars 45 forks source link

The type 'Control' is defined in an assembly that is not referenced. #32

Closed techwarfare closed 4 years ago

techwarfare commented 4 years ago

Hey when trying to set "MenuController.MenuToggleKey = -1;" I get a an error saying "The type 'Control' is defined in an assembly that is not referenced. You must add a reference to assembly 'CitizenFX.Core.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null;" Also get the same error when trying to do basically anything with the 'MenuController' class. Any idea of how to fix it? Also I have been able to get in-game before trying to add MenuAPI as a reference to the project.

techwarfare commented 4 years ago

So I added a reference to 'CitizenFX.Core.Client.dll' along side the 'CitizenFX.Core.dll' but now I don't load into the server and get no errors client or server side. The client seems to get stuck at 'Starting Game' and from the client console it seems that the client script no longer starts.

techwarfare commented 4 years ago

My bad was just missing a constructor I commented out. Nothing to do with having both 'CitizenFX.Core.Client.dll' and 'CitizenFX.Core.dll' in the same project.