fix: wrong args passed

This commit is contained in:
Zerio
2025-01-06 21:41:53 +01:00
parent dc8fbf04e9
commit 8660c98d49
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -457,7 +457,7 @@ function QBCore.Functions.TriggerClientCallback(name, source, ...)
promise = promise.new()
}
TriggerClientEvent('QBCore:Client:TriggerClientCallback', source, name, ...)
TriggerClientEvent('QBCore:Client:TriggerClientCallback', source, name, table.unpack(args))
if cb == nil then
Citizen.Await(QBCore.ClientCallbacks[name].promise)