It allows you to call methods on remote side and receive return values Registers new method that can be called from remote side. Retrieving values will become easier and faster
for example:
client side
function test()
local account = QBCore.Functions.TriggerRpc("qb-test:server:test1")
print(json.encode(account))
end
server side
QBCore.Functions.CreateCallback('qb-test:server:test1', function(source, cb)
cb('all value run')
end)
Checklist
[x] I have personally loaded this code into an updated qbcore project and checked all of its functionality.
Description
It allows you to call methods on remote side and receive return values Registers new method that can be called from remote side. Retrieving values will become easier and faster
for example:
client side
server side
Checklist