mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 14:38:50 +00:00
new docs
This commit is contained in:
1 parent
3cebaf7fa5
commit
b5eba8423f
229 files changed
+6238
-10690
No files matched your search
@@ -0,0 +1,38 @@
|
||||
---
|
||||
title: 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.
|
||||
Reference in new issue
Block a user