mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 14:38:50 +00:00
Basic docs for all of ox_lib
This commit is contained in:
1 parent
2350a5bfc1
commit
fd5ccc4964
14 files changed
+206
-64
No files matched your search
@@ -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
|
||||
```
|
||||
Reference in new issue
Block a user