Search the Community
Showing results for tags 'solved'.
Found 6 results
-
Hello, I've a problem with the vehicle system an no idea how to fix it. When I spawn a vehicle, it doesn't get any damage, but I get the first time into the vehicle, it can get damage. However, when I get out again, I can do what I want, it gets no more damage (only visually, it will still got damaged). Even a renewed entry brings nothing. The effect always occurs after the first time getting out of the vehicle. Every player on my server has the same Problem, so it's not a problem of my client (only) i think. Is there a way to fix it?
-
Hello to all! I have a question about chat messaging. I read the OnChatMessage documentation. There was an example for filtering bad words. The [DisableDefaultChat] attribute was used to disable the default chat behavior, but it was written that this attribute was not yet implemented. What can I use instead of this attribute for the same behavior? Thank you in advance
- 9 replies
-
- solved
- server-side
-
(and 1 more)
Tagged with:
-
Hello to all, I started learning API on the c # serve side. I tried to write a spawn system player. I checked the documentation and found the code: [DisableDefaultOnConnectSpawn] [ServerEvent(Event.PlayerConnected)] public void OnPlayerConnected(Client player) { NAPI.Player.SpawnPlayer(player, new Vector3(2, 5, 8)); // Will spawn the player at the given position } My compiler is showing me an error: the type or namespace “DisableDefaultOnConnectSpawnAttribute” could not be found. Can anybody help me? Thank you in advance
-
Hello everyone! I've got some errors with references to assemblies, but I've managed to solve the most of them except one with Entity Framework Core. So, the problem is: CS0234: The type or namespace name 'EntityFrameworkCore' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) I added the Microsoft.EntityFrameworkCore.dll reference to my resource, and then restarted the server. I got bunch of this error: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. If I keep this reference, then I get just these errors, nothing else. So I decided to delete this reference, and add MySql.Data.EntityFrameworkCore.dll and Microsoft.EntityFrameworkCore.Relational.dll. The results are the following: CS0246: The type or namespace name 'DbContext' could not be found (are you missing a using directive or an assembly reference?) CS0246: The type or namespace name 'DbContextOptionsBuilder' could not be found (are you missing a using directive or an assembly reference?) CS0246: The type or namespace name 'DbSet<>' could not be found (are you missing a using directive or an assembly reference?) CS0012: The type 'DbContextOptionsBuilder' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.EntityFrameworkCore, Version=2.0.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. I don't know what should I do now. I've never used .NET Core, so if anyone could help me a bit, it would be awasome. Thanks, manaszon!
-
When I connect to the servers, every thing seems normal, but when i start to play, i can't see any players or cars in the server, but I still able to see the chat, as if I was desynchronized or logged in a empty server. I already reinstalled the rage, but it won´t caused any changes. I have another PC in my house, and on this computer it's was just fine, so i connected both at the same server, and at the cumputer who do not have any problems at the rage, I was seeing every player on the server normally, except myself at the computer with the troubles to connect, anyone knows how to solve this, please?
-
Hi, as the title says, i'm trying to pass an array into a cef.execute function as here is: browser.inject(`popup("${type}","${title}",${args})`); function inject(execute) { browser.execute(execute); } The array is Args, where it is by default: args = [ ["Faction", "Test"] ] I'm trying to solve this problem, but i'm stuck. If anybody could help it would be great Problem solved, see below!
