Skip to content

Commit dcbbbf0

Browse files
authored
Update README.md
1 parent 73c5c40 commit dcbbbf0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ The default settings for ConGuard (contained in `settings.json`) look like this:
8585

8686
**Important**: Using `disable_collisions` could potentially create a separate exploit, where players using the lagswitch would use this to be collisionless right before being hit. You probably don't want to use this in a DD setting
8787

88+
 
89+
8890
The settings defined in `settings.json` will be used as the default settings for each ConGuard instance. You can also optionally pass a table of specific settings to overwrite when creating an instance (via `createConnectionGuard`).
8991

9092
If you want to change the settings for a ConGuard instance:
@@ -106,10 +108,10 @@ Settings are synced with all clients (ConGuard instances exist on the client to
106108
For example, if you want to set the "lost connection" image for a specific instance, after it has been created:
107109

108110
```lua
109-
local imageSettings = getConnectionGuardSetting(1, "lost_connection_image")
111+
local imageSettings = exports.conguard:getConnectionGuardSetting(1, "lost_connection_image")
110112
imageSettings.path = ":myResource/images/connection.png"
111113

112-
setConnectionGuardSetting(1, "lost_connection_image", imageSettings)
114+
exports.conguard:setConnectionGuardSetting(1, "lost_connection_image", imageSettings)
113115
```
114116

115117
Make sure to use a proper external resource path (i.e: `:myResource/images/connection.png`)

0 commit comments

Comments
 (0)