vMenu v2.0.0 - A server-sided menu including (almost) full permissions support

menu
trainer
vmenu
servermenu
permissions

#1762

Is it normal for vMenu is see system admins (admins that have their hex ids in the server cfg) as full admins in the menu even though they are not added in vMenus permissions lua?


#1763

aces and principals are built in to the server, so they are shared across all resources. If you have multiple groups, and you use the same ones for vMenu and another resource, then adding people to the same group will give that group’s permissions for both resources.


#1764

i’ve searched from the beginning (back when you released this) and around 200 comments from about 1 month ago. didn’t find my issue and hope that it’s not been answered.

new to FiveM, though i’ve hosted many other game servers so i’m not that of a rookie, however…

when i put the files into my server resources vMenu and have the file Start vMenu, configured the vMenu config perfectly. i get into the server and i am punched in the face with the game client stating:

i have recent vMenu files, recent FiveM server files. forwarded the ports in my router as well (to fill out as much information for you as possible)


#1765

hmm, that’s really strange that i’d give such severe time warning. I’ve never had that myself and afaik nobody else has ever had that or nobody reported it at least. Are you using vMenu v1.4.0 and using at least fxserver version 801 or later?


#1766

is FiveM, FXserver? i have the latest files downloaded then, mhm!


#1768

I’m talking about these:
https://runtime.fivem.net/artifacts/fivem/
either windows server or linux proot
at least 801 or newer is needed for vMenu v1.4.0


#1769

ok, i downloaded a complete new server folder, copied over my resources and configs.

(EDIT) issue was still happening. i disable vMenu and the server worked fine and i could play fine. Enabled vMenu and that issue in the screenshot happened.

could it be my GTA V? i downloaded GTA V fresh just the other week.

after server gets launched and started, console shows:
hitch warning: frame time of 626 milliseconds

and after i receive this, when i login to the server, the screenshot is what happens.

Host PC: 16GB DDR4, Intel i7 4.0 ghz, LAN connected, GTX 1060


#1770

I have no idea what the issue could be :confused:
Any errors in the client console?


#1771

ZAP Hosting one-click installation

ZAP-Hosting now offers a one-click installation for vMenu! Click here to get a FiveM server from ZAP Hosting and use the one-click installer from the control panel. Make sure to use the code Vespura-a-3715 at checkout for a 10% discount on your FiveM server.


#1772

how can i check this? and do you think it’s my map resources?


#1773

@djcoffee Join your server, make this happen and then close fivem. Then go to the fivem install folder and upload the file called CitizenFX.log

Or you can check what it prints in the console by pressing F8.

Probably a loop of exceptions I’d say


#1774

you’re correct and i apologize it’s taken so long

so here ya go! some or majority of this was printed a few thousand times.

CitizenFX.log (319.9 KB)

just a lot of:
Error verifying vMenuClient.EventManager/d__15:MoveNext (): Cannot load method from token 0x0a00011d
Error verifying vMenuClient.EventManager/d__16:MoveNext (): Cannot load method from token 0x0a00011d
Error verifying vMenuClient.PermissionsManager:IsAllowed (vMenuClient.Permission): Cannot load method from token 0x0a00011d
Error verifying vMenuClient.FunctionsController/d__27:MoveNext (): Cannot load method from token 0x0a00011d

so, everything leads to not being able to load the token 0x0a00011d. which is causing all of this


#1775

Which is GetSettingsBool() from the vMenuShared project. Maybe that file got corrupted, have you tried re-downloading the resource and reinstalling it?


#1777

Completely deleted vMenu from my server, downloaded new file and installed it into the server. same issue.

i then thought maybe it was because the server didn’t have proper read/write properties… this did not change anything. so then i thought because the server files were on my secondary HDD. moved it to the primary SSD. did not resolve the issue.

because the client is telling all these issues from the server (the fxserver.log) maybe it’s my client? though, i do see in the server console the hitch warning i mentioned way above.

oh quick update: the console log says: ACCESS DENIED - Twice and then the hitch warning starts

Trying servers with vMenu now. will update this.


#1778

Those hitch warnings on initial start are normal. (should only happen on initial launch, after the server is fully booted you should not get any hitch warnings, they occur while checking vMenu’s version, because somehow sending http requests is causing issues with the C# version included with vMenu.)

I’m not sure whether or not this could be a specific client issue just for you, are you able to play on other servers that have vMenu v1.4.0? If so, send me a PM on the forums so we can look into this.


#1779

Hey got vMenu working and it was fine yesterday until i restarted my server and now im getting this error in the console and vMenu will no longer open with F1 or M.


Loaded vMenuShared.net, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null into ScriptDomain_1889673783
Loaded vMenuServer.net, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null into ScriptDomain_1889673783
Instantiated instance of script GHMatti.Http.RequestInternal.
Instantiated instance of script GHMatti.Http.Request.
Instantiated instance of script vMenuServer.BanManager.
Loaded Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed into ScriptDomain_1889673783
Failed to instantiate instance of script vMenuServer.MainServer: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Newtonsoft.Json.JsonSerializationException: Error converting value "vehicles" to type 'System.Collections.Generic.Dictionary`2[System.String,System.Collections.Generic.List`1[System.String]]'. Path '', line 2, position 12. ---> System.ArgumentException: Could not cast or convert from System.String to System.Collections.Generic.Dictionary`2[System.String,System.Collections.Generic.List`1[System.String]].
  at Newtonsoft.Json.Utilities.ConvertUtils.EnsureTypeAssignable (System.Object value, System.Type initialType, System.Type targetType) [0x00067] in <d7f577efea6043649cddd7a978a2c473>:0
  at Newtonsoft.Json.Utilities.ConvertUtils.ConvertOrCast (System.Object initialValue, System.Globalization.CultureInfo culture, System.Type targetType) [0x00031] in <d7f577efea6043649cddd7a978a2c473>:0
  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType (Newtonsoft.Json.JsonReader reader, System.Object value, System.Globalization.CultureInfo culture, Newtonsoft.Json.Serialization.JsonContract contract, System.Type targetType) [0x0008d] in <d7f577efea6043649cddd7a978a2c473>:0
   --- End of inner exception stack trace ---
  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType (Newtonsoft.Json.JsonReader reader, System.Object value, System.Globalization.CultureInfo culture, Newtonsoft.Json.Serialization.JsonContract contract, System.Type targetType) [0x000bd] in <d7f577efea6043649cddd7a978a2c473>:0
  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x000d7] in <d7f577efea6043649cddd7a978a2c473>:0
  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, System.Boolean checkAdditionalContent) [0x000db] in <d7f577efea6043649cddd7a978a2c473>:0
  at Newtonsoft.Json.JsonSerializer.DeserializeInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00054] in <d7f577efea6043649cddd7a978a2c473>:0
  at Newtonsoft.Json.JsonSerializer.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00000] in <d7f577efea6043649cddd7a978a2c473>:0
  at Newtonsoft.Json.JsonConvert.DeserializeObject (System.String value, System.Type type, Newtonsoft.Json.JsonSerializerSettings settings) [0x0002d] in <d7f577efea6043649cddd7a978a2c473>:0
  at Newtonsoft.Json.JsonConvert.DeserializeObject[T] (System.String value, Newtonsoft.Json.JsonSerializerSettings settings) [0x00000] in <d7f577efea6043649cddd7a978a2c473>:0
  at Newtonsoft.Json.JsonConvert.DeserializeObject[T] (System.String value) [0x00000] in <d7f577efea6043649cddd7a978a2c473>:0
  at vMenuServer.MainServer..ctor () [0x00cb5] in <df0e5d8bac1f428281e5520a4cd4a9ba>:0
  at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&)
  at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00002] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
   --- End of inner exception stack trace ---
  at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00014] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
  at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic) [0x000a8] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
  at System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) [0x00009] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
  at System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) [0x00027] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
  at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic) [0x00020] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
  at System.Activator.CreateInstance (System.Type type) [0x00000] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
  at CitizenFX.Core.InternalManager.CreateAssemblyInternal (System.Byte[] assemblyData, System.Byte[] symbolData) [0x00069] in C:\gl\builds\4ff63adb\0\cfx\fivem\code\client\clrcore\InternalManager.cs:86
Instantiated instance of script vMenuServer.UpdateChecker.

Any idea ? - Thanks EchoX


#1780

There’s a problem in the addons.json file. (solved in PM’s)


#1781

I updated to the V1.4.0 and I tried to change the menu keybind to F1 and it doesnt work. It stays on keybind M.
any pointers on this??

Thanks,


#1782

1.4.0 errors :

not changing buttons

permissions not working

sets commands not working on permission.cfg

on my server


#1783

You need to use setr, not sets

Are you sure you looked at the installation instructions and configuration instructions for v1.4.0? It’s using a new permissions.cfg file with new convars using the setr command, you’ll need at least fxserver version 801 or later. Also the config.ini is no longer used in case you were trying to use that.