Skip to content

Commit

Permalink
Update functions.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
makaman59 authored Dec 17, 2023
1 parent 2ad9108 commit de57efa
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions server/functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,16 @@ function QBCore.Functions.TriggerCallback(name, source, cb, ...)
QBCore.ServerCallbacks[name](source, cb, ...)
end

function QBCore.Functions.TriggerRpc(name, source, ...)
local result

QBCore.Functions.TriggerCallback(name, source, function(res)
result = res
end, ...)

return result
end

-- Items

---Create a usable item
Expand Down

0 comments on commit de57efa

Please sign in to comment.