New BL Dialog
docs: https://docs.byte-labs.net/bl_dialog/exports
preview: https://streamable.com/gz0get
Source code
Release
Nextra: the next docs builder
1 messages · Page 1 of 1 (latest)
Nextra: the next docs builder
Best Dialog Ever 
why tf preview is repeating

nice script but bit buggy go invisible alot
if u escape out to early of exit to early it seems
its a timeout issue as if u escape it resets and then the time out ends and makes u invis
assert(data and data.dialog, 'dialog data is invalid!')
LocalPlayer.state.isDialogOpen = true
-- SetTimeout(Config.transitionTime, function()
-- SetEntityAlpha(PlayerPedId(), 0, true)
-- end)
SetEntityAlpha(PlayerPedId(), 0, true)
if data.ped then
CreateCam(data.ped)
end
currentDialog = data.dialog
currentDialogId = 1
local initialDialog = Utils.table_deepclone(data.dialog[1])
initialDialog.buttons = cleanFunction(initialDialog.buttons)
dialogPromise = promise:new()
Utils.sendNUIEvent('resource:visible', true)
Utils.sendNUIEvent('dialog:show', initialDialog)
SetNuiFocus(true, true)
return Citizen.Await(dialogPromise)
end
if ur still wanting the invis to kick in when on transition time add this ```local function showDialog(data)
assert(data and data.dialog, 'dialog data is invalid!')
LocalPlayer.state.isDialogOpen = true
SetTimeout(Config.transitionTime, function()
if LocalPlayer.state.isDialogOpen then
SetEntityAlpha(PlayerPedId(), 0, true)
end
end)
if data.ped then
CreateCam(data.ped)
end
currentDialog = data.dialog
currentDialogId = 1
local initialDialog = Utils.table_deepclone(data.dialog[1])
initialDialog.buttons = cleanFunction(initialDialog.buttons)
dialogPromise = promise:new()
Utils.sendNUIEvent('resource:visible', true)
Utils.sendNUIEvent('dialog:show', initialDialog)
SetNuiFocus(true, true)
return Citizen.Await(dialogPromise)
end```
if LocalPlayer.state.isDialogOpen then
SetEntityAlpha(PlayerPedId(), 0, true)
end
end)```
lovely resource other than that
can you pr
Oops didn’t realise I was logged into that discord I can pr when I’m home if it’s not done already