#BL Dialog

1 messages · Page 1 of 1 (latest)

sharp karma
mighty helm
#

Best Dialog Ever PepeLove

sharp karma
#

why tf preview is repeating

mighty helm
sour adder
#

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

sharp karma
#

can you pr

molten heart
#

Oops didn’t realise I was logged into that discord I can pr when I’m home if it’s not done already