GetClosestFurnitureDoor
lua
Furniture doors are doors placed as furniture inside or around a property. A door counts only when it needs keys and the player is close enough to see its lock icon.
Return Value
A table with the door data, or nil if no furniture door is close:
- propertyId:
numberThe property the door belongs to - environment:
'inside' | 'outside'Where the door is placed - furniture:
tableThe furniture object.furniture.idis the furniture ID - state:
number0unlocked,1locked - distance:
numberThe distance from the player - coords:
vector3The door coordinates - maxDistance:
numberThe distance at which the door can be used
Example
lua