Last active
April 24, 2024 17:21
-
-
Save Envi-Scripts/fc6dde2384774dbe05eee8219b451074 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| RegisterNetEvent('qb-doorlock:server:updateState', function(doorID, locked, src, usedLockpick, unlockAnyway, enableSounds, enableAnimation, sentSource) | |
| local door = exports.ox_doorlock:getDoorFromName(doorID) | |
| local state = locked and 1 or 0 | |
| local lockpick = usedLockpick or false | |
| TriggerEvent('ox_doorlock:setState', door.id, state, lockpick) | |
| end) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment