Skip to content
This repository was archived by the owner on Apr 7, 2023. It is now read-only.

sessionmanager: adds empty client script to enable client to server remote callbacks #31

Merged
merged 1 commit into from
Sep 6, 2018

Conversation

bladecoding
Copy link
Contributor

This fixes the case where callbacks weren't working sent from the client to the server. For example

client.lua

TriggerServerEvent("callbackTest", function(val)
  Citizen.Trace(val) --would never get called
end)

server.lua

RegisterNetEvent('callbackTest')
AddEventHandler('callbackTest', function(cb)
  cb("test")
end)

@blattersturm blattersturm merged commit 22e3cc0 into citizenfx:master Sep 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants