This commit is contained in:
Luke committed 2023-06-04 15:15:21 +02:00
1 parent 3cebaf7fa5
commit b5eba8423f
229 files changed
+6238 -10690

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
# Triggers
These events are safe to trigger and handle in other scripts.
## ox_doorlock:setState
Can be triggered to lock or unlock a door.
```
TriggerEvent('ox_doorlock:setState', doorId, state)
```
- doorId: `number`
- state: `0` or `1`
# Handlers
These events shouldn't be triggered by any other scripts.
## ox_doorlock:stateChanged
Triggered when a doors state is updated.
```lua
AddEventHandler('ox_doorlock:stateChanged', function(source, doorId, state, usedItem) end)
```
- source: `number` or `nil`
- doorId: `number`
- state: `0` or `1`
- usedItem: `string` or `false`