registerCallback
Description
This is how you register a callback
Parameters
name(string) - The name of the callbackcb(function) - the function to run
Example Use Case
-- for client sided callbacks
ps.registerCallback('test', function()
return 'Test Working'
end
-- for server sided callbacks
ps.registerCallback('test', function(source)
return 'Test Working'
endLast updated