Jump to content

Leaderboard

Popular Content

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

  1. 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
  2. Version 1.0.1

    2576 downloads

    Now you can lock or unlock doors and gates (from GTA V world). How to do that? Just press E. If you appreciate my work, you can press the like button. ❤️
    1 point
  3. Version 1.0.2

    2137 downloads

    This resource adds GTAO style player blip/icon to streamed in players. Their icon will be removed when they stream out. You can change the color of player blips by setting blipColor using Entity::data or Entity::setVariable on serverside. For a list of blip colors, visit the wiki page about blips. Installing Put playerblips into your server's client_packages directory, then add require('playerblips'); to index.js.
    1 point
  4. Version 1.0.0

    830 downloads

    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...