Basic docs for all of ox_lib

This commit is contained in:
Linden committed 2022-03-01 21:09:18 +11:00
1 parent 2350a5bfc1
commit fd5ccc4964
14 files changed
+206 -64

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
# Cache
Caches data related to the player and handling some events or statebags.
An interval runs every 100ms to update data that cannot be checked via handlers.
Still a work-in-progress and does not have any API or events.
https://github.com/overextended/ox_lib/blob/master/resource/states/client.lua
## States
```lua
cache.ped = PlayerPedId()
cache.vehicle = GetVehiclePedIsIn(cache.ped, false)
cache.driver = GetPedInVehicleSeat(cache.vehicle, -1) == cache.ped
```