GetDoorObject

Get the object (entity) of a door or 0 if not found.

Argument
Data Type
Nedeed
Default
Description

bankId

number

-

The index in the Config.Banks table

doorId

string

-

Internal id to refer the door, generally can be one of the following values: vault, prevault, shutters

Returns
Type
Description

number

The object (entity) of the door

Example
local obj = exports["utility_bank"]:GetDoorObject(1, "shutters")

print(GetEntityCoords(obj))

Last updated

Was this helpful?