Skip to content

[Bug] lib.alertDialog timeout #46

@ITKewai

Description

@ITKewai

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Run this code
local alert = lib.alertDialog({
    header = 'HEADER',
    content = 'WAIT FOR TIMEOUT',
    centered = true,
    cancel = true
}, 3000)
if alert == 'confirm' then
    print(1)
 else
    print(2)
end
  1. See error
^1SCRIPT ERROR: @_____/client/client.lua:1: 
^5 An error occurred while calling export `alertDialog` in resource `ox_lib`:
  citizen:/scripting/lua/scheduler.lua:580: ^1SCRIPT ERROR: citizen:/scripting/lua/scheduler.lua:484: timeout^7

^5 ---^7
^3> handler^7 (^5@_____/client/client.lua^7:1)

Expected behavior
return for example 'timeout'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions