Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/27/20 in all areas

  1. German: Wenn ihr bei der Rage Version 1.1 das Problem habt, dass ihr starke FPS drops bekommt, sobald ihr eine Taste auf der Tastatur drückt, schaut in euren Prozessen, ob ihr NahimicSvc findet. Beendet den Task und schaut obs wieder funktioniert. Wenn ja, deinstalliert ASUS Audio Software und Treiber und installiert euren Audio Treiber Munuell von der Hersteller Seite z.B. Realtek HD Audio. English: If you have trouble in Version 1.1 of RageMP that u have FPS drops when you using your Keyboard open your taskmanager and search vor NahimicSvc and close the task. If that helped und you dont want to close it every time you restart your computer you have to uninstall audio software of ASUS and compability drivers. reinstall your audio driver from the original manufacturer and you should be fine.
    1 point
  2. UPD: I didn't find a solution to the problem, but I realized that the entity I get has the correct handle, but the GetAtHandle function doesn't work correctly. instead of a solution I made a kind of crutch: public static Player GetPlayerByHeading(float heading) { List<Player> players = Entities.Players.Streamed; Player player = null; foreach(var plr in players) { if (plr.GetHeading() == heading) { player = plr; break; } } return player; }
    1 point
  3. Client-side: mp.events.add({ 'entityStreamIn' : (entity) => { if(entity.type == 'player') { if (entity.hasVariable("animData")) { const value = entity.getVariable("animData"); if (null != value) { const anim = value.split("%"); loadAnimDict(anim[0], function() { mp.players.exists(entity) && 0 !== entity.handle && entity.taskPlayAnim(anim[0], anim[1], 1, 0, -1, parseInt(anim[2]), 1, !1, !1, !1) }) } } } }, }); mp.events.addDataHandler("animData", function(a, b) { if (0 !== a.handle) if (null != b) { const c = b.split("%"); loadAnimDict(c[0], function() { mp.players.exists(a) && 0 !== a.handle && (a.clearTasksImmediately(), a.taskPlayAnim(c[0], c[1], 1, 0, -1, parseInt(c[2]), 1, !1, !1, !1)) }) } //else a.clearTasksImmediately() }); function loadAnimDict(a, b) { if (mp.game.streaming.hasAnimDictLoaded(a)) return void b(); mp.game.streaming.requestAnimDict(a); let c = setInterval(function() { mp.game.streaming.hasAnimDictLoaded(a) && (clearInterval(c), b()) }, 100) } Server-side: player.playAnimation(dist, name, speed, flag); player.setVariable("animData", `${dist}%${name}%${flag}`); Stop animation: player.playAnimation("rcmcollect_paperleadinout@","kneeling_arrest_get_up", 1, 33); player.setVariable("animData", null);
    1 point
  4. Мне все кажется, что люди понятие не имеют во что играют. Главное играть...
    1 point
×
×
  • Create New...