-
Notifications
You must be signed in to change notification settings - Fork 10
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
5 changed files
with
64 additions
and
2 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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
import { Callout } from 'nextra/components'; | ||
|
||
# Client Exports | ||
|
||
## OpenBossMenu | ||
|
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
title: qbx_vehiclekeys | ||
--- | ||
|
||
import { Cards, Card } from 'nextra/components'; | ||
import { IconBrandGithub, IconTag } from '@tabler/icons-react'; | ||
|
||
# qbx_vehiclekeys | ||
|
||
<Cards> | ||
<Card icon={<IconBrandGithub />} title="GitHub" href="https://github.com/Qbox-Project/qbx_vehiclekeys" /> | ||
<Card icon={<IconTag />} title="Releases" href="https://github.com/Qbox-Project/qbx_vehiclekeys/releases" /> | ||
</Cards> |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"exports": "Exports" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Client Exports | ||
|
||
## HasKeys | ||
|
||
Returns whether the player has keys to the given vehicle entity | ||
|
||
```lua | ||
exports.qbx_vehiclekeys:HasKeys(vehicle) | ||
``` | ||
|
||
- vehicle: `number` |
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Server Exports | ||
|
||
## HasKeys | ||
|
||
Returns whether the player has keys to the given vehicle entity | ||
|
||
```lua | ||
exports.qbx_vehiclekeys:HasKeys(source, vehicle) | ||
``` | ||
|
||
- source: `number` | ||
- vehicle: `number` | ||
|
||
## GiveKeys | ||
|
||
Gives keys to a player so that they can unlock/lock the doors and toggle the engine. | ||
Notifies the player unless skipNotification is true. | ||
|
||
```lua | ||
exports.qbx_vehiclekeys:GiveKeys(source, vehicle, skipNotification) | ||
``` | ||
|
||
- source: `number` | ||
- vehicle: `number` | ||
- skipNotification?: `boolean` | ||
|
||
## RemoveKeys | ||
|
||
Removes keys from the player. Notifies the player unless skipNotification is true. | ||
|
||
```lua | ||
exports.qbx_vehiclekeys:RemoveKeys(source, vehicle, skipNotification) | ||
``` | ||
|
||
- source: `number` | ||
- vehicle: `number` | ||
- skipNotification?: `boolean` |