Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 02/05/21 in Files

  1. Version 1.0.0

    556 downloads

    Hello yes very nice. I have a nice resource for you. You press G. It finds the nearest vehicle, and the nearest seat in such vehicle, and makes you get in it. Supports vehicles without doors, the bus with like 12 seats or whatever it has. Should support all newly added vehicles too, DLC vehicles etc. For vehicles with grab holds, G will make you enter the vehicle (like granger), SHIFT + G will force you to grab onto the sides, even if no one is inside the vehicle. Locking: To stop people getting in as passenger, like a locked vehicle use this code somewhere in your server: vehicle.setVariable('locked', true) To install: - Place the folder from inside client_packages into your client_packages folder. - Add require('./BetterGSeats/seats.js'); to your client index.js - Very nice)
    1 point
  2. Version 1.0.1

    2696 downloads

    Hey i made a simple Car Tuner for RageMP with NativeUI. You can open the menu with "F8". I have it on GitHub for you feel free to fork it: https://github.com/SupperCraft5000/Basic-Car-Tuner You can Tune not all Thins but the Basics.
    1 point
  3. Version 1.0.1

    1454 downloads

    Preview: Welcome Cutscene Getting started I have created an event called: startWelcomeCutscene - the First parameter is the Gender - 0 = Male, 1 = Female, the Second parameter is the name shown during the welcome process (This can be null) To include a name on the Welcome Screen using Draw Text when the Plane appears use. Be sure to edit the variable: ServerName (Line 9) //Server Side player.call("startWelcomeCutscene",[0,"John"]) //Client Side mp.events.call("startWelcomeCutscene", 0, "John"); To just simply show the Welcome Screen (no name shown) //Server Side player.call("startWelcomeCutscene", [0]) //Client Side mp.events.call("startWelcomeCutscene", [0]); This will then start a screen fade out, load the correct items, clone your player for the cutscene, remove unnecessary players from the movie and then being cutscene. Once the movie has finished it will call: //Clientside mp.events.add("cutsceneEnded", () => { // Do something like new camera etc }); //Serverside mp.events.add("cutsceneEnded", (player) => { // Spawn Player }); So be sure to add this either Serverside or Clientside as it does both: call and callRemote for this function. I would recommend trigger your Spawn Process after the "cutsceneEnded" event. Special thanks to @Jer for providing the initial details from @DevGrab Things to note: If the server crashes - the jet may get left in the cutscene (even after re-log) - Action: Reload Game I have tried triggering mp.game.cam.doScreenFadeOut(100); when the cutscene is finished however I had no luck. However if your screen does go black, just call: mp.game.cam.doScreenFadeIn(0); If you want to build your own cutscenes in the future, be sure to check out how this cutscene was initially developed by going to: https://github.com/root-cause/v-decompiled-scripts-1868/blob/master/fm_intro.c Line 6963 shows you how to register certain models and also how to hide models (using Male and Female as example)
    1 point
  4. Version 1.0

    3012 downloads

    HI all, here is a simple CarShop system, pretty optimized in client side, but not this much server-side. This CarShop adapt himself to what you give it, from the config file, let me explain: You define some parameters in the config file, for your carShop (Vehicles classses, marker position...), and the client side system with do the stuff. Here is a example of a carShop: "Boat": { // Shop Name "Position": { // vehicle position for the showcase, camera is auto defined from this "x": -729, "y": -1361, "z": 0.05, "rz": 136 }, "Marker": { // Marker for the player when entering shop "x": -815.93, "y": -1346.3, "z": 5.15 }, "Park": { // When you buy your vehicle, here is where you put vehicle location, it is random ! :D ANd a waypoint is created in client side to show where it is "0":{"x":-725.33,"y":-1325.299,"z":0.11,"rz":228.29}, "1":{"x":-727.42,"y":-1329.044,"z":0.11,"rz":230.54}, "2":{"x":-729.79,"y":-1333.469,"z":0.11,"rz":230.29}, "3":{"x":-731.4,"y":-1332.34,"z":0.11,"rz":228.29}, "4":{"x":-734.63,"y":-1334.34,"z":0.11,"rz":228.29}, "5":{"x":-738.73,"y":-1342.34,"z":0.11,"rz":228.29} }, "Blip": 427, // Blip for the map "Class": [ 14 ], // vehicle classes, see below for list "Name": "Boat Shop" // Displayed Name } So, aswell, when connect this will create a Marker / Blip on the marker position of the config file. And that's all for creating a car shop ! Now, you can define prices easily aswell: In the vehicle_Shop.json file, you have the list of every vehicle which are available for selling. You have the hash, displayName, name, manufacturer & the price, define dby 15000 by default, but you can define a new price for every vehicle by yourself. That's all you have to do, now do /carShop [YouCarShopName], and see the magic happening. Here is the vehicles class name: Sedans SUVs Coupe Muscle Sport Classic Sport Super Moto Off-Road Industrial Utility Vans Cycles Boats Helicopters Planes Service Emergency Military Commercial Trains I think i gave you all the stuff to make it works, i hope you like it! By default you have 3 carshops, boat / low budget car/ helicopters.
    1 point
  5. Version 1.0.1

    572 downloads

    (EN) This script allow you to play emergency alert sound (2 sounds: tornado siren, alert siren), coming soon: amber alert with sound&pop-up (FR) Ce script vous permet de déclencher des sirènes d'alertes (sirène tornade, sirène d'alerte), à venir: alerte enlèvement avec son&popup ----- HOW TO INSTALL ----- 1) Unpack RAGEMP Alert v0.1 2) Drop the content of "client_packages" folder inside your client folder 3) Drop the content of "packages" folder inside your server folder 4) Add in your server index.js : require('./Alert/sAlert'); 5) Add in your client index.js : require('./Alert/cAlert'); 6) Do not forget to change link of mp.browsers.new in Alert/cAlert.js if needed ----- HOW TO USE ----- /alert tornado {repeat time} --> {repeat time} FROM 1 TO 9 TIMES Duration: EACH time: 9sec (min: 9sec, max: 81sec) /alert siren {repeat time} --> {repeat time} FROM 1 TO 9 Duration: START: 5sec / ACTIVE: 12sec (repeat from 1 to 9) / END: 13sec (min: 30sec, max: 126sec) /alert siren stop --> stop the siren immediatly if activated (duration: 13sec) ----- DEMO ----- Tornado Siren: Alert siren: Amber alert (coming soon):
    1 point
  6. Version 1.1.0

    1885 downloads

    This resource lets you display GTA V/Online styled shard messages. Installing: Put scaleform_messages into your server's client_packages directory, then add require('scaleform_messages/index.js'); to index.js. Available events: ShowMidsizedMessage // title, message, time = 5000 ShowMidsizedShardMessage // title, message, bgColor, useDarkerShard, condensed, time = 5000 ShowWeaponPurchasedMessage // title, weaponName, weaponHash, time = 5000 ShowPlaneMessage // title, planeName, planeHash, time = 5000 ShowShardMessage // title, message, titleColor, bgColor, time = 5000 Clientside example (will show different messages when you press numpad0 - numpad6): mp.keys.bind(0x60, false, () => { mp.events.call("ShowMidsizedMessage", "Title", "ShowMidsizedMessage example"); // or: mp.game.ui.messages.showMidsized("Title", "ShowMidsizedMessage example"); }); mp.keys.bind(0x61, false, () => { mp.events.call("ShowMidsizedShardMessage", "Title", "ShowMidsizedShardMessage example", 21, false, false); // or: mp.game.ui.messages.showMidsizedShard("Title", "ShowMidsizedShardMessage example", 21, false, false); }); mp.keys.bind(0x62, false, () => { mp.events.call("ShowMidsizedShardMessage", "Title", "ShowMidsizedShardMessage example 2 (condensed = true)", 21, false, true); // or: mp.game.ui.messages.showMidsizedShard("Title", "ShowMidsizedShardMessage example 2 (condensed = true)", 21, false, true); }); mp.keys.bind(0x63, false, () => { mp.events.call("ShowWeaponPurchasedMessage", "Title", "ShowWeaponPurchasedMessage example", -2084633992); // or: mp.game.ui.messages.showWeaponPurchased("Title", "ShowWeaponPurchasedMessage example", -2084633992); }); mp.keys.bind(0x64, false, () => { mp.events.call("ShowPlaneMessage", "Title", "ShowPlaneMessage example", 788747387); // or: mp.game.ui.messages.showPlane("Title", "ShowPlaneMessage example", 788747387); }); mp.keys.bind(0x65, false, () => { mp.events.call("ShowShardMessage", "Title", "ShowShardMessage example"); // or: mp.game.ui.messages.showShard("Title", "ShowShardMessage example"); }); mp.keys.bind(0x66, false, () => { mp.events.call("ShowShardMessage", "Title", "ShowShardMessage example (colored)", 0, 11); // or: mp.game.ui.messages.showShard("Title", "ShowShardMessage example (colored)", 0, 11); }); Serverside example (will show a wasted message when you die): mp.events.add('playerDeath', (player) => { player.call("ShowShardMessage", ["~r~Wasted", "You died."]); });
    1 point
  7. Version 0.11

    2804 downloads

    Project not maintained anymore, feel to continue it by yourself. The most recent version (with some fix) is on github, link below! Hi all, after some times letting this GM getting dust, I decided to release it to public. It may not be developed with the best methods, but still it is working very well. Here is a list of the differents systems available: For civil players: Rob a shop (24/7 / Ammunation for now) Have a job (Hacker only for now) Earn XP from doing hacking Buy stuff at 24/7 that heals you (Apple...) For cops: Arrest a player (Civil only with wanted level) Be a SWAT or in FBI (If player has access to thoses teams) Cuff a player (Preventing him from running / jump / use car direction) What everybody can do: Buy a car / boat / helicopter Use teleporters (The only teleporters are in SWAT car park, can be added in DB) Withdraw / deposit money in ATM Custom your car (In theory working with every kind of vehicle) What admins can do: Create a vehicle Create a temporary vehicle (As vehicle bought in car shop) Edit a vehicle Save vehicle data Respawn Cars Create Faction / SpawnPoint for a faction / A Skin for a faction / Biz / ATM / Label Teleport to pos Edit a player Teleporters are saved in the database, and have different options, like : Reversible (Has another tp to come back) Change dimension of player TP vehicle or not Usable for a faction only Vehicle info: Save vehicle mods Vehicle only for a faction Vehicle locked Vehicle plate Vehicle dimension What are spawnpoints ? Spawnpoints are used for factions, it is the spawnpoints for a faction, and not for a SKIN. How to add skin into a faction? Doing /acreate ped Some commands still exist as: /acreate [faction/biz/label/ped/spawnpoint] (Showing a modal to complete & create) /aveh (Showing a modal to know what you want to do. /aplayer [PLAYER ID] (Showing a modal to know what you want to do) Differents admin levels: There is 3 differents level of admin: - Edit (Edit a player / car) - Blame (Kick / Ban / Blame) - See (Spectate / Player infos...) There is no admin command for moderate. Car shop: Car shop is VERY easy to create, i think i'll do another ressource to show how it is simple & share it. All you have to know is the vehicle classes, in packages/gamemode/data/vehicle_shop.json And create a car shop in config.json (Very easy to understand look at it). Custom: All mods prices can be modified in gamemode/data/custom_prices.json, by mod ID & Index. But this system is not optimized at all, and must be reworked. There is also a log system, that log everytime you connect / disconnect. Installation Install npm dependencies: npm install Change .env.example to .env Known problems: Can't find module MySQL: You must have installed NodeJS & NPM Then go to your server folder and type in cmd this: "npm install mysql" As suggested, If you have any bugs found, suggestions... just see this: https://github.com/Protocole63/RageMP-Gamemode-Cops-Robber/issues -- I would be happy to fix it or add the stuff you suggest. Credits: - Me for the scripts - GamingMaster Library - NativeUI - RootCause library - Level - better Notificaitons - Scaleform messages - Micky5991 for vehicles hashes & mods... (https://github.com/Micky5991/GT-MP-vehicleInfo/releases)
    1 point
  8. Version 1.0.0

    1115 downloads

    Basic script to sync time of the game in custom cicles That script just change the time of the game based on the configuration cicle time and real life. every 0 hour and 12 hours the weather is changed in random mod to another weather. The cicle of Timeout will adjust to read the script every hour in the game. How to use: Just place de script in your server-side (Package) and change the "const cicleTime" to your size of a day cicle. Use real life minutes for that. Exemple: "30" will be 15 minutes in real life day and 15 minutes night. Notes: If you place some value in cicle time that a hour in the game last less then one minute in real life, dont will work (if you know how to fix comment please ). Future Updates: Smoth transition, show time and date on UI
    1 point
×
×
  • Create New...