mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-03 14:38:49 +00:00
new docs
This commit is contained in:
1 parent
3cebaf7fa5
commit
b5eba8423f
229 files changed
+6238
-10690
No files matched your search
@@ -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`
|
||||
Reference in new issue
Block a user