Skip to content

Commit

Permalink
fix: shared vehicles enforcement
Browse files Browse the repository at this point in the history
  • Loading branch information
Manason committed Sep 23, 2024
1 parent f83a711 commit a1f020f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,9 @@ end

qbx.entityStateHandler('doorslockstate', function(entity, _, value)
if entity == 0 then return end
if getIsVehicleShared(entity) then
value = 1
end
SetVehicleDoorsLocked(entity, value)
end)

Expand Down

0 comments on commit a1f020f

Please sign in to comment.