mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 14:38:50 +00:00
* 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
41 lines
575 B
Plaintext
41 lines
575 B
Plaintext
# Functions
|
|
|
|
Gets data for a door with the given id, matching the id for the database entry.
|
|
|
|
## getDoor
|
|
|
|
```lua
|
|
exports.ox_doorlock:getDoor(id)
|
|
```
|
|
|
|
Gets data for a door with the given `id`, matching the id for the database entry.
|
|
|
|
- id: `number`
|
|
|
|
Return:
|
|
|
|
- door: `table`
|
|
|
|
## getDoorFromName
|
|
|
|
```lua
|
|
exports.ox_doorlock:getDoorFromName(name)
|
|
```
|
|
|
|
Gets data for a door with the given `name`, matching the name for the database entry.
|
|
|
|
- name: `string`
|
|
|
|
Return:
|
|
|
|
- door: `table`
|
|
|
|
## editDoor
|
|
|
|
```lua
|
|
exports.ox_doorlock:editDoor(id, data)
|
|
```
|
|
|
|
- id: `number`
|
|
- data: `table`
|