Client
Functions

Functions

pickClosestDoor

Attempt to pick the lock of the closest door. Dependant on server-side checks and may fail.

exports.ox_doorlock:pickClosestDoor()

useClosestDoor

Interact with the closest door. Dependant on server-side checks and may fail.

exports.ox_doorlock:useClosestDoor()

getClosestDoor

Returns the closest door.

exports.ox_doorlock:getClosestDoor()

Return:

  • door: number