-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,12 +35,13 @@ More attributes can be found in the [API Reference](api-reference.md). The list | |
|
||
Satchel offers methods and events for scripting purposes. In the below code example we will use the `SetBackpackEnabled` method to disable the Satchel. The script expects the Satchel module to be in [`ReplicatedStorage`](https://create.roblox.com/docs/reference/engine/classes/ReplicatedStorage). | ||
|
||
```lua | ||
``` lua title="LocalScript" linenums="1" | ||
Check failure on line 38 in docs/usage.md
|
||
local ReplicatedStorage = game:GetService("ReplicatedStorage") | ||
local Satchel = require(ReplicatedStorage:WaitForChild("Satchel")) | ||
|
||
-- Disable Satchel | ||
Satchel.SetBackpackEnabled(false) | ||
Satchel.SetBackpackEnabled(false) -- (1)! | ||
``` | ||
|
||
For the full API reference, see [API Reference](api-reference.md) for more details on attributes, methods, and events for Satchel and how to use Satchel to it's full potential. | ||
1. Disable Satchel using the [SetBackpackEnabled](api-reference.md#setbackpackenabled) method. | ||
|
||
For the full API reference, see [API Reference](api-reference.md) for more details on attributes, methods, and events for Satchel and how to use Satchel to it's full potential. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters