BryceCanyonCounty / bcc-doorlocks

GNU General Public License v3.0
7 stars 12 forks source link

bcc-doorlocks

This is a optimized simple, and effective doorlock script! It allows server admins to create doors that can be locked and unlocked by players!

Features

How it works!

Dependencies

Installation

API

Create door

RegisterCommand('test50', function()
    local door = exports['bcc-doorlocks']:createDoor() --will create a lock on the door and retrun the doors table from doorhashes.lua for future deletion or storage
end)

Delete Door

RegisterCommand('test50', function()
    exports['bcc-doorlocks']:deleteDoor() --will delete a door that you aim at and confirm
end)

Delete Specific Door

RegisterCommand('test50', function()
    exports['bcc-doorlocks']:deleteSpecificDoor(doorTable) --Door table is required this is retrieved when using the createdoor export
end)