Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/22/21 in all areas

  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. What my dude has the resolution with the mouse cursor ....?)))))) Resolution: Go to game controls at the controls find mouse input change with direct input mode.
    1 point
×
×
  • Create New...