Skip to content
This repository was archived by the owner on Apr 28, 2026. It is now read-only.
This repository was archived by the owner on Apr 28, 2026. It is now read-only.

[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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions