Skip to content

Commit

Permalink
Merge pull request #207 from Tiziukas/main
Browse files Browse the repository at this point in the history
add getClosestDoor
  • Loading branch information
thelindat authored Sep 16, 2024
2 parents f85021d + 2ebd3a4 commit d9b2570
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pages/ox_doorlock/Client/functions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,15 @@ Interact with the closest door. Dependant on server-side checks and may fail.
```lua
exports.ox_doorlock:useClosestDoor()
```

## getClosestDoor

Returns the closest door.

```lua
exports.ox_doorlock:getClosestDoor()
```

Return:

- door: `number`

0 comments on commit d9b2570

Please sign in to comment.