Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 02/08/20 in Posts

  1. Hello o/ I can't seem to make my ped killable in any way. The API; streamPed.setCanBeDamaged(true); streamPed.setInvincible(false); streamPed.setOnlyDamagedByPlayer(true); doesn't seem to do anything. I've tried using natives as well and messed around with the setHealth, getHealth, setMaxHealth & getMaxHealth APIs as well but with no luck. I also tried using relationshipGroups and making the player group able to damage the ped group.(Didn't work) I'm unable to detect the ped on the client event playerWeaponShot as so; mp.events.add('playerWeaponShot', (targetPosition, targetEntity) => { targetEntity always returns null when hitting the ped. }); So I'm running out of ideas.. Would I have to raycast from my gun when shooting and see if that perhaps hits the ped? Or is there an easier fix for my issue. Thanks! /Andreas
    1 point
  2. Hi When I run "Rage mp" the program window doesn't open. The program works, but the window cannot be opened. Reinstalling didn't help, and disabling antivirus Didn't help either. Drivers have been updated. Running with administrator rights didn't help. I also noticed that the window can be selected, but cannot be opened.This happens when I hover the cursor over a program and hold down the mouse button. Look to screenshot. Please help me solve the problem.
    1 point
  3. 1 point
  4. Version: 1.4.5 Update Changelog User Changer fixed Small fixed bugs Have fun!
    1 point
  5. Have you tried this streamPed.setProofs(false, false, false, false, false, false, false, false);
    1 point
  6. In known games such as Minecraft or SA:MP hitting arrow up key when having chat open brings up last sent message. Rage is lacking this feature.
    1 point
  7. Well, I was just trying to do the same thing, so here's what I just did. Copy this script in a new file and save it in your package with the name of "player_blips.js". //Initialize a object that will hold all blips of every player //We will use IDs to find out who is the owner of a blip var blips = {}; //Icon show in the minimap for the players const BlipIcon = 1; //A simple circle //Color for the icon const BlipColor = 4; //Light gray /* For a list of blip icons and colors just look at: https://wiki.rage.mp/index.php?title=Blips */ //Called when a player spawns mp.events.add('playerSpawn', (player) => { //Create a new blip for that player //using its ID for reference blips[player.id] = mp.blips.new(BlipIcon, player.position); blips[player.id].name = player.name; blips[player.id].dimension = player.dimension; blips[player.id].colour = BlipColor; }); //When a player have a bad luck of dying... mp.events.add('playerDeath', (player, reason, killer) => { //Destroy the blip of that player if it exists if (blips[player.id]) { blips[player.id].destroy(); } }); //When the player leaves the server... mp.events.add('playerQuit', (player, exitType, reason) => { //Destroy his/her blip if it exists if (blips[player.id]) { blips[player.id].destroy(); } }); //Update blip positions based on the positions of the players function UpdateBlipPositions() { //For every player... mp.players.forEach( (player, id) => { //Check if his/her blip exists and if they are alive... if (blips[player.id] && player.health > 0) { //And update the blip position blips[player.id].position = player.position; //Quick note: The 'player.health > 0' was necessary //because if we dont do that the server just crashes. //Looks like we can't get player position if he/she is dead. } }); } //Calls the update function every second setInterval(function(){ UpdateBlipPositions(); }, 1000); Then, in your main script (like index.js) add the following line in the top: require('./player_blips'); I haven't tested it with more than 1 player, but it should work just fine. If anything nasty happens, just PM me.
    1 point
×
×
  • Create New...