
π₯οΈServices
Services are a fundamental part of Noir. This page will go over them.
What Are Services?
local MyService = Noir.Services:CreateService("MyService") -- Create a service
-- Called when the service is initialized. This is to be used for setting up the service
function MyService:ServiceInit()
self.AVariable = 5
end
-- Called when the service is started. This is to be used for setting up things that may require event connections, etc
function MyService:ServiceStart()
Noir.Callbacks:Connect("onPlayerJoin", function()
server.announce("Server", "A player joined!")
end)
end
function MyService:ACustomMethod()
server.announce("Server", "Hello World")
endBuilt-In Services
Creating A Service
:ServiceInit()
:ServiceStart()
Adding Credit
What's The Point?
Intellisense Support
Last updated