forked from overextended/ox_lib
-
-
Notifications
You must be signed in to change notification settings - Fork 92
Open
Labels
enhancementNew feature or requestNew feature or request
Description
It would be great to have a built-in caching system or event trigger that detects when a player enters or exits a grid cell. Currently, to track a player's grid position, we need to manually compare the current cell with the previous one in a loop. Having a native onGridCellChange event (or similar) would make it much easier and more efficient to build systems based on spatial logic.
Example:
lib.onCache('onGridCellChange', function(newZone, oldZone)
-- E.g.
end)This would be very helpful for triggering area-specific logic.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request