From b3417f9fdec546efa3e0a18700391c3d8c468b57 Mon Sep 17 00:00:00 2001 From: gononono64 <96976330+gononono64@users.noreply.github.com> Date: Sun, 11 May 2025 20:14:35 -0500 Subject: [PATCH] fixed minor issue in cutscenes insert witty joke here --- lib/cutscenes/client/cutscene.lua | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/lib/cutscenes/client/cutscene.lua b/lib/cutscenes/client/cutscene.lua index 2f12a1b..f192fbc 100644 --- a/lib/cutscenes/client/cutscene.lua +++ b/lib/cutscenes/client/cutscene.lua @@ -250,7 +250,7 @@ function Cutscene.Create(cutscene, coords, srcs) local isPedMale = IsPedMale(currentPed) local tag = isPedMale and tagTable.male or tagTable.female - local unusedTag = isPedMale and tagTable.female or tagTable.male + local unusedTag = not isPedMale and tagTable.male or tagTable.female -- needs to be this way as default has to be null for missing female SetCutsceneEntityStreamingFlags(tag, 0, 1) RegisterEntityForCutscene(currentPed, tag, 0, GetEntityModel(currentPed), 64) @@ -374,12 +374,21 @@ function Cutscene.Start(cutsceneData) if playerData.identifier == 'script' then DeleteEntity(ped) elseif playerData.identifier == 'localplayer' then - SetEntityCoords(ped, playerData.coords.x, playerData.coords.y, playerData.coords.z, false, false, false, - false) + SetEntityCoords(ped, playerData.coords.x, playerData.coords.y, playerData.coords.z, false, false, false, false) end ::continue:: end Cutscene.done = true end + +-- RegisterCommand('cutscene', function(source, args, rawCommand) +-- local cutscene = args[1] +-- if cutscene then +-- local cutsceneData = Cutscene.Create(cutscene, false, { 1,1,1 }) +-- Cutscene.Start(cutsceneData) + +-- end +-- end, false) + return Cutscene