Files
JagandLuke 1d2c490b26 refactor: Add h1 headers to all pages missing it (#137)
* refactor: Add h1 headers to all pages missing it

* refactor: missed example h3

* change hooks example heading to bold text

---------

Co-authored-by: Luke <[email protected]>
2023-07-08 11:08:43 +02:00

41 lines
922 B
Plaintext

---
title: Callbacks
---
# Callbacks
### ox:getStatus
```lua
lib.callback.await('ox:getStatus', delay, targetId, statusName)
```
- delay: `number`
- targetId: `number`
- The server id for the player to get statuses for.
- statusName?: `string`
- The name of the status (i.e. hunger). Can be omitted to return all statuses.
### ox:getLicense
```lua
lib.callback.await('ox:getLicense', delay, licenseName, targetId)
```
- delay: `number`
- licenseName: `string`
- The name of the license to get data for. Can be omitted to return all licenses.
- targetId?: `number`
- The server id to get license data for, defaulting to the current player.
### ox:getNearbyVehicles
```lua
lib.callback.register('ox:getNearbyVehicles', function(radius)
```
Returns an array of vehicle netids within a given radius of the player's location.
- radius?: `number`
- The radius from the player's location to return vehicles.