overextended/ox_lib

[Bug] onCache old value

Closed this issue · 0 comments

Describe the bug
cache.value is equal to value

To Reproduce
Steps to reproduce the behavior:

lib.onCache('vehicle', function (vehicle)
    print('old vehicle:', cache.vehicle)
    print('new vehicle:', vehicle)
end)
  1. enter the vehicle

Expected behavior
values should be different

Screenshots
obraz