Skip to content

Commit d9b2570

Browse files
authored
Merge pull request #207 from Tiziukas/main
add getClosestDoor
2 parents f85021d + 2ebd3a4 commit d9b2570

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

pages/ox_doorlock/Client/functions.mdx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,15 @@ Interact with the closest door. Dependant on server-side checks and may fail.
1515
```lua
1616
exports.ox_doorlock:useClosestDoor()
1717
```
18+
19+
## getClosestDoor
20+
21+
Returns the closest door.
22+
23+
```lua
24+
exports.ox_doorlock:getClosestDoor()
25+
```
26+
27+
Return:
28+
29+
- door: `number`

0 commit comments

Comments
 (0)