Skip to content

Commit 63d6cc9

Browse files
fix(client-callbacks): check source before attempting concatenation
1 parent 3c9ce7c commit 63d6cc9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

server/functions.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,7 @@ end
441441
---@param cb function
442442
---@param ... any
443443
function QBCore.Functions.TriggerClientCallback(name, source, ...)
444+
if not source then return end
444445
local cb = nil
445446
local args = { ... }
446447

0 commit comments

Comments
 (0)