Get door ID data

Export

exports["doors_creator"]:getDoorIdData(doorId)

Parameters

NameData TypeDescription

doorId

integer

The door ID to get the data

Example

Citizen.CreateThread(function() 
    local doorId = 55
    local doorData = exports["doors_creator"]:getDoorIdData(doorId)

    print("The name of the door " .. doorId .. " is " .. doorData.label)
end)

Last updated