Files
community_bridge/modules/doorlock/qb-doorlock/server.lua
T

15 lines
438 B
Lua
Raw Normal View History

2025-05-09 02:01:37 -04:00
---@diagnostic disable: duplicate-set-field
2025-05-18 23:45:37 -04:00
if GetResourceState('qb-doorlock') == 'missing' then return end
Doorlock = Doorlock or {}
2025-04-19 14:37:10 -04:00
---This will toggle the lock status of the door.
---@param doorID string
---@param toggle boolean
---@return boolean
Doorlock.ToggleDoorLock = function(doorID, toggle)
TriggerClientEvent('qb-doorlock:client:setState', -1, 0, doorID, toggle, false, false, false)
return true
end
return Doorlock