GetClosestDoor

Gets the closest door no matter the distance from it

exports.nolag_properties:GetClosestDoor()

Return Value

Returns a table with the following information

  • id: number

  • state: number 0 for unlocked | 1 for locked

  • distance: number the distance from the door

Last updated