Closed onstormchaser closed 1 year ago
Same issue happening to me.
Key fob?
Are you using the keyfob from https://github.com/qbcore-framework/qb-vehiclekeys/pull/177 ?
No, I mean the animation that our character does when locking and unlocking.
So to fix mine I had to remove this code from client.lua
while NetworkGetEntityOwner(veh) ~= 128 do
NetworkRequestControlOfEntity(veh)
Wait(0)
end
And replace with it this
NetworkRequestControlOfEntity(veh)
if vehLockStatus == 1 then
SetVehicleDoorsLocked(veh, 2)
QBCore.Functions.Notify("Vehicle locked!", "primary")
else
SetVehicleDoorsLocked(veh, 1)
QBCore.Functions.Notify("Vehicle unlocked!", "success")
end
This error is already fixed in my pr
Describe the bug When pressing L to lock the doors you hear the sound and the key fob animation loops continuously. No notification for locked or unlocked pops up and the doors do not lock or unlock. No f8 errors or server side errors.
To Reproduce Steps to reproduce the behavior:
Expected behavior The door locks should lock and unlock and the animation should not be continuous. Notifications of doors locked or unlocked should also be present.
Screenshots.
Questions (please complete the following information):
qb-
to something custom? noAdditional context Was working fine until i updated a bunch of qb scripts