Files
2021-12-03 01:19:31 +00:00

14 lines
374 B
Lua

local client_sender = {}
-- Generic "pass some data to all clients"
function client_sender.pass_data(data, type, source)
if (source) then
print_debug("SENDING " .. type .. " TO CLIENT " .. source)
else
print_debug("SENDING " .. type .. " TO ALL CLIENTS")
end
TriggerClientEvent("data:" .. type, source or -1, data)
end
return client_sender