From cab3dc3db79d60af074f63ed5bc87030955244db Mon Sep 17 00:00:00 2001 From: gononono64 <96976330+gononono64@users.noreply.github.com> Date: Sun, 23 Feb 2025 18:04:53 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=99=88slipping=20this=20in=20before=20any?= =?UTF-8?q?one=20notices?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit memes --- modules/dialogue/default/client/client.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/dialogue/default/client/client.lua b/modules/dialogue/default/client/client.lua index 92f8e67..f74d175 100644 --- a/modules/dialogue/default/client/client.lua +++ b/modules/dialogue/default/client/client.lua @@ -6,7 +6,7 @@ Dialogue = {} local cam = nil local npc = nil -function Dialogue.CloseDialogue(name) +function Dialogue.Close(name) -- Instead of destroying immediately, wait to see if new dialogue opens pendingCameraDestroy = true activeDialogue = nil @@ -36,7 +36,7 @@ end --- @param name string --- @param dialogue string --- @param options table example = {{ id = string, label = string}} -function Dialogue.OpenDialogue( name, dialogue, characterOptions, dialogueOptions, onSelected) +function Dialogue.Open( name, dialogue, characterOptions, dialogueOptions, onSelected) assert(name, "Name is required") assert(dialogue, "Dialogue is required") assert(dialogueOptions, "Dialogue options are required") @@ -83,7 +83,7 @@ function Dialogue.OpenDialogue( name, dialogue, characterOptions, dialogueOption local wrappedFunction = function(selected) SetNuiFocus(false, false) - Dialogue.CloseDialogue(name) + Dialogue.Close(name) onSelected(selected) end promises[name] = wrappedFunction @@ -119,7 +119,7 @@ if BridgeSharedConfig.DebugLevel >= 1 then rotationOffset = vector3(0, 0, 0) } Wait(750) - Dialogue.OpenDialogue("Akmed", "Hello how are you doing my friend?", characterData, { + Dialogue.Open("Akmed", "Hello how are you doing my friend?", characterData, { { label = "Trade with me", id = 'something', @@ -131,7 +131,7 @@ if BridgeSharedConfig.DebugLevel >= 1 then }, function(selectedId) if selectedId == 'something' then - Dialogue.OpenDialogue( "Akmed" , "Thank you for wanting to purchase me lucky charms", characterData, { + Dialogue.Open( "Akmed" , "Thank you for wanting to purchase me lucky charms", characterData, { { label = "Fuck off", id = 'something',