mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-16 22:46:03 +01:00
fix(client/callback): mark delay as optional
This commit is contained in:
@@ -67,8 +67,8 @@ lib.callback = setmetatable({}, {
|
|||||||
})
|
})
|
||||||
|
|
||||||
---@param event string
|
---@param event string
|
||||||
---@param delay number | false prevent the event from being called for the given time
|
---@param delay? number | false prevent the event from being called for the given time.
|
||||||
--- Sends an event to the server and halts the current thread until a response is returned.
|
---Sends an event to the server and halts the current thread until a response is returned.
|
||||||
function lib.callback.await(event, delay, ...)
|
function lib.callback.await(event, delay, ...)
|
||||||
return triggerServerCallback(nil, event, delay, false, ...)
|
return triggerServerCallback(nil, event, delay, false, ...)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user