You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This isn't an issue but just want to show what i have done to only allow certain doors to be locked/unlocked if your in a Vehicle & have certain ones not lock/unlock if in a vehicle. I have done this b/c i was sick of Vehicle Garage Doors being so close to other doors that when you went to unlock/lock a non vehicle garage door it would lock/unlock both.
In config.lua under the locked add vehicle = false,
I have set in the en.lua ['press_button_player'] = 'Player | [E] %s', & ['press_button_vehicle'] = 'Vehicle | [E] %s', this isn't really necessary but optional.
ifIsControlJustReleased(0, 38) thenifv.isAuthorizedandv.vehiclethenlocalped=GetPlayerPed(-1)
ifIsPedInAnyVehicle(ped, false) thenv.locked=notv.lockedTriggerServerEvent('esx_doorlock:updateState', k, v.locked) -- broadcast new state of the door to everyoneendelseifv.isAuthorizedandv.vehicle==falsethenlocalped=GetPlayerPed(-1)
ifIsPedInAnyVehicle(ped, false) ==falsethenv.locked=notv.lockedTriggerServerEvent('esx_doorlock:updateState', k, v.locked) -- broadcast new state of the door to everyoneendendend
The text was updated successfully, but these errors were encountered:
There is probably a better way of doing this but this is just what i have done. I think something like this would be nice to have implemented by default.
This isn't an issue but just want to show what i have done to only allow certain doors to be locked/unlocked if your in a Vehicle & have certain ones not lock/unlock if in a vehicle. I have done this b/c i was sick of Vehicle Garage Doors being so close to other doors that when you went to unlock/lock a non vehicle garage door it would lock/unlock both.
vehicle = false,
['press_button_player'] = 'Player | [E] %s',
&['press_button_vehicle'] = 'Vehicle | [E] %s',
this isn't really necessary but optional.UNDER
The text was updated successfully, but these errors were encountered: