-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExample.lua
More file actions
26 lines (23 loc) · 853 Bytes
/
Copy pathExample.lua
File metadata and controls
26 lines (23 loc) · 853 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
-- Define the module table
local module = {
-- Define the event handler for on_tick
on_tick = function()
-- Perform actions here that need to be executed on every tick
-- Example: Print a message to the console
client:print("Tick!")
end,
-- Define the event handler for on_enable
on_enable = function()
-- Perform actions here when the module is enabled
-- Example: Print a message to the console
client:print("Module enabled!")
end,
-- Define the event handler for on_disable
on_disable = function()
-- Perform actions here when the module is disabled
-- Example: Print a message to the console
client:print("Module disabled!")
end
}
-- Register the module
modules:register("ExampleModule", "Example Module", module)