mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-03 14:38:49 +00:00
chore: target, fuel, and doorlock updates (#136)
* chore: ox_target cleaned up - minor fixes on ox_lib zones * chore: move get/set fuel amount to shared.mdx file * chore: Update removeZone input type https://github.com/overextended/ox_target/commit/021b32d4d52fa58305045177f3dc3c0a969d07e5 * chore: doorlock cleaned up * add missing export * reorder textui sections
This commit is contained in:
7 files changed
+96
-48
No files matched your search
@@ -9,15 +9,16 @@ These events are safe to trigger and handle in other scripts.
|
||||
Can be triggered to lock or unlock a door.
|
||||
|
||||
```
|
||||
TriggerEvent('ox_doorlock:setState', doorId, state)
|
||||
TriggerEvent('ox_doorlock:setState', doorId, state, lockpick)
|
||||
```
|
||||
|
||||
- doorId: `number`
|
||||
- state: `0` or `1`
|
||||
- state: `0` or `1` or `boolean`
|
||||
- lockpick: `boolean`
|
||||
|
||||
## Handlers
|
||||
|
||||
These events shouldn't be triggered by any other scripts.
|
||||
These events **should not** be triggered by any other scripts.
|
||||
|
||||
### ox_doorlock:stateChanged
|
||||
|
||||
@@ -29,5 +30,5 @@ AddEventHandler('ox_doorlock:stateChanged', function(source, doorId, state, used
|
||||
|
||||
- source: `number` or `nil`
|
||||
- doorId: `number`
|
||||
- state: `0` or `1`
|
||||
- usedItem: `string` or `false`
|
||||
- state: `boolean`
|
||||
- usedItem: `string` or `false` or `nil`
|
||||
@@ -8,15 +8,13 @@ Gets data for a door with the given id, matching the id for the database entry.
|
||||
exports.ox_doorlock:getDoor(id)
|
||||
```
|
||||
|
||||
### Parameters
|
||||
Gets data for a door with the given `id`, matching the id for the database entry.
|
||||
|
||||
- id: `number`
|
||||
|
||||
### Returns
|
||||
Return:
|
||||
|
||||
- `table`
|
||||
|
||||
Gets data for a door with the given name, matching the name for the database entry.
|
||||
- door: `table`
|
||||
|
||||
## getDoorFromName
|
||||
|
||||
@@ -24,10 +22,19 @@ Gets data for a door with the given name, matching the name for the database ent
|
||||
exports.ox_doorlock:getDoorFromName(name)
|
||||
```
|
||||
|
||||
### Parameters
|
||||
Gets data for a door with the given `name`, matching the name for the database entry.
|
||||
|
||||
- name: `string`
|
||||
|
||||
### Returns
|
||||
Return:
|
||||
|
||||
- `table`
|
||||
- door: `table`
|
||||
|
||||
## editDoor
|
||||
|
||||
```lua
|
||||
exports.ox_doorlock:editDoor(id, data)
|
||||
```
|
||||
|
||||
- id: `number`
|
||||
- data: `table`
|
||||
@@ -26,6 +26,8 @@ title: Door Settings
|
||||
- Door can be lockpicked when interacting with a targeting resource.
|
||||
- Hide UI
|
||||
- No indicators (i.e. icon, text) will display on the door.
|
||||
- Hold Open
|
||||
- Holds the door open while unlocked.
|
||||
|
||||
## Characters
|
||||
|
||||
@@ -44,13 +46,24 @@ title: Door Settings
|
||||
- Item
|
||||
- Name of the item.
|
||||
- Metadata type
|
||||
- Requires metadata support (i.e. ox_inventory) to check slot.metadata.type
|
||||
- Requires metadata support (i.e. ox_inventory) to check slot.metadata.type.
|
||||
- Remove on use
|
||||
- Removes the item after interacting with the door.
|
||||
|
||||
## Lockpick
|
||||
|
||||
- Difficulty
|
||||
- Sets the skillcheck difficulty (see [docs](../ox_lib/Modules/Interface/Client/skillcheck)).
|
||||
- Area size
|
||||
- Custom difficulty area size.
|
||||
- Custom difficulty area size in degrees.
|
||||
- Speed multiplier
|
||||
- Custom difficulty idicator speed.
|
||||
- Custom difficulty idicator speed multipier.
|
||||
|
||||
## Sound
|
||||
|
||||
- Lock sound
|
||||
- Sound to play on door lock.
|
||||
- Unlock sound
|
||||
- Sound to play on door unlock.
|
||||
|
||||
*Note*: Sounds are stored in the `./web/public/sounds` directory.
|
||||
Reference in new issue
Block a user