-
Posts
36 -
Joined
-
Last visited
-
Days Won
2
Content Type
Profiles
Forums
Downloads
Everything posted by PanaFive
-
-
Why i crash after spawn object in hand ? function playerActionAnim(p, b) { function c(a, b, c, d, f) { mp.attachmentMngr.addClient(p, mp.game.joaat(a)); loadAnimDict(b, () => { mp.players.exists(p) && 0 !== p.handle && p.taskPlayAnim(b, c, 1, 0, -1, d, 1, !1, !1, !1) }); if(f) setTimeout(() => { mp.players.exists(p) && 0 !== p.handle && (mp.attachmentMngr.removeFor(p, mp.game.joaat(a)))//, p.clearTasksImmediately()) mp.gui.chat.push(`dans fonction C 5`); }, f) } switch (b) { case "itemPhone": //c("useItemPhone", "amb@world_human_stand_mobile@male@text@base", "base", 49, 600000); break; default: break; } } mp.events.addDataHandler("animItem", function(a, b) { playerActionAnim(a, b) }); mp.attachmentMngr.register("useItemPhone", "prop_player_phone_02", 28422, new mp.Vector3(.0, .0, -.0), new mp.Vector3(0, 0, 0));
-
-
Adresse IP: 213.32.83.216:22005 Discord: https://discord.gg/xk4J5Eg Youtube: https://www.youtube.com/channel/UCwpiI5rl3vsegLn49MX4DqQ/videos
-
Adresse IP: 213.32.83.216:22005 Discord: https://discord.gg/xk4J5Eg Youtube: https://www.youtube.com/channel/UCwpiI5rl3vsegLn49MX4DqQ/videos
-
const giveplayer = findRageMpPlayer(nameOrID); function findRageMpPlayer(playerNameOrPlayerId) { if (playerNameOrPlayerId == parseInt(playerNameOrPlayerId)) { return mp.players.at(playerNameOrPlayerId); } else { let foundPlayer = null; mp.players.forEach((rageMpPlayer) => { if (rageMpPlayer.name.toLowerCase().startsWith(playerNameOrPlayerId.toLowerCase())) { foundPlayer = rageMpPlayer; return; } }); return foundPlayer; } }
-
- 2
-
-
mp.events.addCommand('heal', (player, _, playerID, health) => {// ok admin if (playerID && playerID.trim().length > 0 && health) { const giveplayer = findRageMpPlayer(playerID); if (giveplayer) { if (health >= 0 || health <= 100) { giveplayer.health = health; } else return player.outputChatBox(`[Usage]: /heal [PlayerID/PartieDuNom] [Ammount]`); } else return player.notify(`Player not connected`); } else return player.outputChatBox(`[Usage]: /heal [PlayerID/PartieDuNom] [Ammount]`); }); function findRageMpPlayer(playerNameOrPlayerId) { if (playerNameOrPlayerId == parseInt(playerNameOrPlayerId)) { return mp.players.at(playerNameOrPlayerId); } else { let foundPlayer = null; mp.players.forEach((rageMpPlayer) => { if (rageMpPlayer.name.toLowerCase().startsWith(playerNameOrPlayerId.toLowerCase())) { foundPlayer = rageMpPlayer; return; } }); return foundPlayer; } }
-
-
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);
-
Get door hash here : https://plebmasters.de/?app=objects or here https://cdn.rage.mp/public/odb/index.html Get door position from a command /save Server-side: mp.events.addCommand('save', (player) => { console.log(`${player.position.x}, ${player.position.y}, ${player.position.z}, ${player.heading}`); }); console.log write your server folder in file .output Client-side, remove object: Client-side exemple: mp.game.entity.createModelHide(-877.8521118164062, 20.00386619567871, 45.253021240, 10.0, -844827165, true);
- 1 reply
-
- 1
-
-
devblog RAGE Multiplayer 1.1.0-DP#1 Goes Public Beta!
PanaFive replied to ragempdev's topic in Announcements
How to update for linux server ? i don't understand with branch, client, server ... -
DISCORD: https://discord.gg/eY5V3Y
-
devblog RAGE Multiplayer 1.1.0-DP#1 Goes Public Beta!
PanaFive replied to ragempdev's topic in Announcements
Thanks the team RAGE -
-
devblog RAGE Multiplayer 1.0 Developer Preview #1 Release
PanaFive replied to ragempdev's topic in Announcements
Finally! It was time. Courage guys, FIVEM is shitting in pants I love this, good job the team From French -
