Jump to content

Leaderboard

Popular Content

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

  1. Guten Tag, ich biete euch hier eine kleine Vorlage an für das kommende RageMP Update (Für Personen die noch nichts haben aber bereits für das kommende Update eine Vorlage suchen) Diese Vorlage besitzt nicht viel aber sollte dennoch als Vorlage gut zu gebrauchen sein da es neben einer MySQL Verbindung bereits ein Login, Haussystem, Geldsystem und ein HUD besitzt. Eine Registrierung besitzt dieses Script nicht da meiner Erfahrung nach alles später über das UCP ablaufen wird (Ein Account zum testen ist bereits in der .sql vorhanden). Viel Spaß mit dieser kleinen Vorlage! https://github.com/Zmileey/RageMP-1.1.0-Template #Befehle /createhouse /buyhouse /sellhouse /addcash /subcash #Interiors Hochhaus Gehoben - 0 Low Low End Apartment - 1 Low End Apartment - 2 Medium End Apartment - 3 Hochhaus Sehr Gehoben - 4 Sehr Gehoben Hills 1 - 5 Sehr Gehoben Hills 2 - 6 Sehr Gehoben Hills 3 - 7 Sehr Gehoben Hills 4 - 8 Sehr Gehoben Hills 5 - 9 Sehr Gehoben Hills 6 - 10 Sehr Gehoben Hills 7 - 11 Farm Ultra Luxus - 12 https://ibb.co/TqGhCgc https://ibb.co/Q6RBBwt Warum für die Version 1.1.0?! Die Version 1.1.0-DP#1 ist noch nicht fertig aber beinhaltet eine viel bessere Synchronisation und neue Features weshalb ich ein Template für das kommende Update bereitstelle worauf viele aufbauen können die z.B. von Arma 3 auf RageMP umsteigen möchten. Genaueres findest du hier:
    2 points
  2. Tells me to upgrade to 1.50.1 (31 March 2020) in order to continue play.GTA 5 cache integrity checked, GTA 5 reinstalled, Rage multiplayer reinstalled.Help please do not know what to do
    1 point
  3. Hi! I would like to present you a script that makes nametag and hp/armor bar look like GTA:Online's ones. First, we create variables to configure the tags. const maxDistance = 25*25; const width = 0.03; const height = 0.0065; const border = 0.001; const color = [255,255,255,255]; Now disable the default name tags. mp.nametags.enabled = false; Next, draw our name tags. mp.events.add('render', (nametags) => { const graphics = mp.game.graphics; const screenRes = graphics.getScreenResolution(0, 0); nametags.forEach(nametag => { let [player, x, y, distance] = nametag; if(distance <= maxDistance) { let scale = (distance / maxDistance); if(scale < 0.6) scale = 0.6; var health = player.getHealth(); health = health < 100 ? 0 : ((health - 100) / 100); var armour = player.getArmour() / 100; y -= scale * (0.005 * (screenRes.y / 1080)); graphics.drawText(player.name.replace('_', ' '), [x, y], { font: 4, color: color, scale: [0.4, 0.4], outline: true }); if(mp.game.player.isFreeAimingAtEntity(player.handle)) { let y2 = y + 0.042; if(armour > 0) { let x2 = x - width / 2 - border / 2; graphics.drawRect(x2, y2, width + border * 2, 0.0085, 0, 0, 0, 200); graphics.drawRect(x2, y2, width, height, 150, 150, 150, 255); graphics.drawRect(x2 - width / 2 * (1 - health), y2, width * health, height, 255, 255, 255, 200); x2 = x + width / 2 + border / 2; graphics.drawRect(x2, y2, width + border * 2, height + border * 2, 0, 0, 0, 200); graphics.drawRect(x2, y2, width, height, 41, 66, 78, 255); graphics.drawRect(x2 - width / 2 * (1 - armour), y2, width * armour, height, 48, 108, 135, 200); } else { graphics.drawRect(x, y2, width + border * 2, height + border * 2, 0, 0, 0, 200); graphics.drawRect(x, y2, width, height, 150, 150, 150, 255); graphics.drawRect(x - width / 2 * (1 - health), y2, width * health, height, 255, 255, 255, 200); } } } }) }) This script should be put in the client_packages folder and connected to index.js.
    1 point
  4. Hi everyone! In need of a custom script for a Custom NameTag, I found the @hartority script, however, it was an outdated project and it had been made for version 0.2 of RageMP, with some references already removed, well, I bring you today the corrected code. Requirements: RageMP server files. Nothing more! Just have fun. Introduction: This script is a reliable edition of the one produced by @hartority with only a few references to the RageMP library, so all code is credit @hartority. Let's start: 1. Go to "client_packages" folder in "RAGEMP/server-files" directory, usually: 2. Create a JavaScript archive (.js) named "customtag.js", example: 3. Inside the "customtag.js" paste this code: 4. Save "customtag.js" file, and open "index.js" in "C:\RAGEMP\server-files\client_packages" directory and put this: End! Just test it and tell me if something goes wrong Usage example: The original code topic of @hartority: Thanks for all feedbacks, mad thanks @hartority for your commitment if you do not authorize this topic, please let me know
    1 point
×
×
  • Create New...