Commit Graph

22 Commits

Author SHA1 Message Date
Mustafa Burak Güneş
9fbf0222ad fix(resource/cache): skip cache updates during ped transitions (#28)
also fixes an issue with cache not being set correctly when weapon hash is a negative number
2025-07-09 18:59:19 +02:00
Linden
cc6aed591f chore: adjust links 2025-03-29 21:46:58 +11:00
Linden
fb2225e373 chore: add copyright notices to each file
Some people accidentally, mistakenly, and without any malicious intent forget to attribute code from this resource to its source. This change will hopefully assist people, so that they do not make that mistake again.
2025-03-18 18:46:09 +11:00
Mahan Moulaei
2b10e77622 refactor(resource/cache): update seat cache on vehicle change (#679) 2025-01-16 18:40:44 +11:00
Linden
05c9d335e8 refactor(client/cache): send oldValue to cache event 2023-08-02 14:19:23 +10:00
Scully
231d1c3c77 feat: improved RedM support (#162)
* Improvements + remove redm keybind system as it's pointless
2022-11-26 13:05:55 +11:00
BerkieBb
504447320f feat(resource/cache): cache.weapon (#151) 2022-11-09 07:49:51 +11:00
Linden
646473f755 fix(client/cache): GetVehiclePedIsIn
Native was swapped out due to a bug R* introduced.
It hasn't been a problem for months and this native is safer.
2022-10-28 00:32:18 +11:00
Linden
ed7bf536e8 feat(resource): load callbacks
Load lib.callback for internal use.
2022-09-14 00:52:10 +10:00
Linden
1679510ac9 refactor(resource/cache): remove getVehicle method
Keep it in the thread for simplicity.
2022-07-29 01:12:11 +10:00
Linden
39d5bbae3d refactor(resource/cache): new cache event
Rather than sending a bulk update of cache, trigger different events for
each key.
2022-07-28 23:09:23 +10:00
Linden
9096bd36e8 fix(cache/client): change vehicle getter
GetVehiclePedIsIn isn't working with the latest build. Use GetVehiclePedIsUsing instead.
Removed an unused cached value (coords).
Removed the num iterator used for cache:getVehicle to slow its frequency.
2022-07-28 09:32:44 +10:00
Linden
877409486f refactor(resource/cache): remove commented code
Probably won't use this, but if I do then I'll add it when appropriate.
2022-04-21 15:09:42 +10:00
Linden
c7dafe56cd tweak(resource/cache): playerId, serverId, and micro 2022-04-14 06:44:34 +00:00
Linden
820beb5438 fix(cache): leftover print 2022-03-16 06:18:20 +00:00
Linden
913c51307a fix(cache): update seat when shuffling 2022-03-16 06:08:18 +00:00
Linden
35e4bc7509 perf(cache): check vehicle every second tick 2022-03-13 03:21:33 +00:00
Linden
13c8c29811 refactor: change event names from lualib to ox_lib 2022-03-13 03:21:01 +00:00
Linden
cdc7523146 fix(cache): ped not triggering update event 2022-03-02 02:28:10 +00:00
Linden
b37e9f772f refactor(cache): save seat index instead of driver 2022-03-01 13:22:52 +00:00
Linden
f8d68df5e9 feat(cache): add lib.cache and update event 2022-03-01 12:28:04 +00:00
Linden
adf08e44b8 chore: move files, add docs link 2022-03-01 10:55:46 +00:00