Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/22/22 in Files

  1. Version 1.0.0

    483 downloads

    RAW RESOURCES ONLY - NO SCRIPT HERE. Today I have for you a beast resource that will fix your problems with Ped Displaying using Native Menu Ped. This resource contains Custom Scaleform changes to some menu components, and pause menu definition, that allows the Ped to be rendered WITHOUT a background box around it, or even on screen (fuck you Rockstar for making this Scaleform so shit). You use this in the same way you use any other raw resource by placing the contents into client_packages/game_resources If you already modify the Pause Menu xml file in some way, please see the changes in my own pausemenu.xml files and attempt to add them to your own, it shouldn't cause any problems! The script can be found in many different places already, so no need to show it here - this is not possible to render on top of CEF, so just use CSS to make some hole in your UI that this can show through. The menu version is custom here so that if Rockstar adds anything else or messes with dependencies, it doesn't immediately break. This means it's not really "documented" in natives (duh) The version used should be as follows: mp.game.ui.activateFrontendMenu(mp.game.joaat('FE_MENU_VERSION_RAGEBEAST'), false, -1);
    1 point
  2. Version 1.1.0

    573 downloads

    This resource lets you add metal detectors that go off when a player with a not allowed weapon goes through them. Installing Put the files you downloaded in their respective places Add require('metaldetectors') to client_packages/index.js Set up some metal detectors (read below) All done JSON Files Most of the changes are done by editing JSON files located in packages/metaldetectors/json/. Remember to validate your changes here: https://jsonlint.com/ config.json colshapeSize: Size of the metal detector colshape, I think the default value is pretty much perfect and doesn't need any editing. soundRange: Maximum range/distance of the players who should hear metal detector alarms, default value is 15.0. cooldownMs: Milliseconds that need to pass before a metal detector goes off again, default value is 2000. allowedWeapons: Array of weapons that are ignored by metal detectors. This list is pretty much empty and you probably should fill it, WEAPON_UNARMED and WEAPON_CERAMICPISTOL are ignored by default. smallWeaponGroups: Array of weapon groups that are considered small. Weapons of this group will play the small weapon alarm sound and everything else will play the big weapon alarm sound. GROUP_MELEE, GROUP_PISTOL, GROUP_SMG, GROUP_STUNGUN and GROUP_THROWN are considered small by default. detectors.json This file contains the metal detectors in array of objects format. A metal detector has x, y, z, heading, dimension and createProp properties. x, y, z: Coordinates of the metal detector. heading: Rotation (yaw) of the metal detector. dimension: Dimension of the metal detector. Default value: 0 createProp: Whether this metal detector should create a prop when it is loaded or not, useful if you want to use existing metal detectors. (like in the IAA facility interior) Default value: true // Example: Metal detector used in the making of video above { "x": 2059.037109375, "y": 2980.64208984375, "z": -62.90178298950195, "heading": 325.0, "dimension": 0 } weaponData.json Used for weapon groups, just make sure it is updated after every DLC. For Developers This resource triggers an event named playerTriggerMetalDetector with args player, position, isSmallWeapon when players trigger a metal detector. player: The player who triggered a metal detector. position: Coordinates of the metal detector. isSmallWeapon: Whether the player's weapon was a small weapon or not. (another arg that contains weapon hash might be added in the future) Example mp.events.add("playerTriggerMetalDetector", (player, position, isSmallWeapon) => { player.outputChatBox(`You triggered a metal detector with a ${isSmallWeapon ? "small" : "big"} weapon!`); }); Notes Right now, this resource checks only the current weapon of a player due to issues with player.weapons. If player.weapons get fixed, I'll update the resource to check for all weapons of a player. Source code is available on GitHub in case you don't want to download: https://github.com/root-cause/ragemp-metal-detectors
    1 point
×
×
  • Create New...