Files
overextended.github.io/docs/ox_core/Player/Client/callbacks.md
T
SumnDaiy 1ba636a6e6 Update docs (#96)
* Update docs

* CPlayer -> OxPlayer

Removed functions.md
index.md includes player?

* fix

CVehicle -> OxVehicle
Added missing dot to end of sentence
Consistency with rest of docs
2023-02-14 00:24:46 +11:00

909 B

title
title
Callbacks

ox:getStatus

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

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

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.