update docs
This commit is contained in:
@@ -61,23 +61,6 @@ Hook.Add("chatMessage", "discordIntegration", function (msg, client)
|
||||
end)
|
||||
```
|
||||
|
||||
```lua
|
||||
local enabledPackages = Game.GetEnabledContentPackages()
|
||||
local shouldRun = false
|
||||
|
||||
for key, value in pairs(enabledPackages) do
|
||||
if value.Name == "MyContentPackage" then
|
||||
shouldRun = true
|
||||
end
|
||||
end
|
||||
|
||||
if Game.IsDedicated then shouldRun = true end
|
||||
|
||||
if not shouldRun then
|
||||
return
|
||||
end
|
||||
```
|
||||
|
||||
```lua
|
||||
-- by jimmyl
|
||||
Hook.Add("chatMessage","controlhuskcommand",function(msg, client)
|
||||
|
||||
Reference in New Issue
Block a user