[Free] Ox Doorlock

how do you set up certain doors with certain ace perms

how to set up doors opening with item? I can’t figure it out

this scirpt made my balls back to blue :grin:

i keep getting [script:ox_doorlock:w] Warning: no compatible framework was loaded, most features will not work, Im on standalone only vmenu any fix?? and yes ive look at the docs

fix the order in server config

doorlock loads but the groups dont work, Im on standalone vmenu

For those who have a problem closing/opening the doors despite having a proper job

Create a folder named

doorlockfix

Create a server.lua and an fxmanifest.lua

Write this into the server.lua file:

Citizen.CreateThread(function()

Citizen.Wait(10000) – Wait 10 seconds (safety)

print(“^2[DoorFix] ox_doorlock is restarting for correct job groups…^7”)

if GetResourceState(‘ox_doorlock’) == ‘started’ then

StopResource(‘ox_doorlock’)

Citizen.Wait(1500)

end

StartResource(‘ox_doorlock’)

print(“^2[DoorFix] ox_doorlock successfully restarted.^7”)

end)

and into the fxmanifest file:

fx_version ‘cerulean’
game ‘gta5’
lua54 ‘yes’

description ‘Fix for ox_doorlock job groups after server start’
version ‘1.0.0’

server_script ‘server.lua’

In the server config, simply add the following line at the very bottom:

ensure doorlockfix

Then the script will restart shortly after the server starts, and ox_doorlock will no longer cause the problems.

This is the version I use if you don’t want to do it yourself.

ox_doorlockfix.rar (615 Bytes) [GERMAN]