Server
Events

Events

Handlers

These events should not be triggered by any other scripts.

ox_doorlock:stateChanged

Triggered when a doors state is updated.

AddEventHandler('ox_doorlock:stateChanged', function(source, doorId, state, usedItem) end)
  • source: number or nil
  • doorId: number
  • state: boolean
  • usedItem: string or false or nil