Jump to content

Kopra

Members
  • Posts

    534
  • Joined

  • Last visited

  • Days Won

    14

Everything posted by Kopra

  1. Kopra

    Remove EAC

    Integration is not yet fully complete that is true, but most if not almost all issues are on user side, not EAC. Join ragemp discord and see what others have tried to do. One of the easiest fixes could be just updating your windows. Also you can try to contact EAC to get some help. Easy Anti-Cheat
  2. You can use System.Linq to simplify this check: public static Vehicle GetClosestVehicle(Player player, float distance = 15f) { return NAPI.Pools.GetAllVehicles().Where(X => X.Position.DistanceToSquared(player.Position) <= distance).OrderBy(v => v.Position.DistanceToSquared(player.Position)).FirstOrDefault(); }
  3. Try to enable vsync, also if servers have mods(most of them do) or not that good optimization you will need a bit stronger PC than for GTA Online and SP.
  4. There are more than 1 type of objects in GTA. Props and objects with embedded things like collision and LODs can be removed, if they have anything static then your best bet is to move it underground instead of deleting because deletion is not simple. You will need to give this process some time to learn tricks, there are many tutorials on youtube, it is same for all the MP clients difference is only in import method.
  5. You bumped 4 year old topic.. Package Protocol - RAGE Multiplayer Wiki
  6. Blips - RAGE Multiplayer Wiki // Without options const FirstWay = mp.blips.new(11, mp.players.local.position); // With options, all options are optional const SecondWay = mp.blips.new(11, mp.players.local.position, { name: 'Your Blip', color: 1, shortRange: true, scale: 0.7, alpha: 255, dimension: mp.players.local.dimension, });
    Great job, keep it up.
    Super useful!
  7. Windows 11 itself should not be an issue, I suggest you join RAGE discord and start troubleshooting.
  8. I save money on every change, few things on payday like xp,level and most of the things on player disconnect. I think you should balance it depending on what you are saving and how often data is changed.
  9. If you are going over the limits of single player you will need to edit gameconfig.xml to increase limits and fit your needs. Because https://discord.gg/ragemp
    Super cool
    Looks good
    Very useful, thanks!
  10. You can use this resources for help. Raycasting::testPointToPoint - RAGE Multiplayer Wiki
  11. public static Player GetPlayerByNameOrId(string value) { // If value is number, we look in pool by ID if (int.TryParse(value, out int targetId)) { return NAPI.Pools.GetAllPlayers().FirstOrDefault(X => X.Id == targetId); } // If value is not a number, we look by players name else { return NAPI.Pools.GetAllPlayers().FirstOrDefault(X => X.Name.Contains(value)); } } [Command("freeze", "/freeze a player ")] public void CMD_FreezePlayer(Player player, string targetValue, bool freezestatus) { Accounts account = player.GetData<Accounts>(Accounts.Account_Key); if (!account.IsPlayerAdmin((int)Accounts.AdminRanks.Supporter)) { player.SendNotification("~r~You are not an Admin"); return; } Player target = GetPlayerByNameOrId(targetValue); if (target == null) { player.SendNotification("~r~Target not found"); return; } NAPI.ClientEvent.TriggerClientEvent(target, "PlayerFreeze", freezestatus); string freezeText = (freezestatus) ? "freezed" : "unfreezed"; NAPI.Util.ConsoleOutput(player.Name + " has " + target.Name + " freezed/entfreezed " + freezestatus); } This should work, only thing I see here that may be problematic is you may get exception when using INT in argument where it expect string.
  12. Inside your <PropertyGroup> tag in .csproj add this: <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> If you are using .NET 6.0 try with .NET 3.1
  13. Are you setting serverside or clientside? Try to change alpha/setVisible.
  14. Find System.Security.Permissions.dll in RAGEMP default folder/dotnet, copy it and paste to your runtime folder/compilation directory.
  15. Try with respawn
  16. That's also very easy to check, and if true, simply do not allow such player in server. You have nothing to hide? Unblock. Let's just wait for official EAC RAGE API and then we can talk more about it.
  17. Show some reproduction code
  18. It's too much work for you, not for me... You need knowledge not help.
  19. Try to use VirtualKeys enum instead of numbers.
×
×
  • Create New...