chore: oxmysql and ox_lib clean-up (#134)

* oxmysql and some lib interface fixes

- Various fixes throughout oxmysql
- started ox_lib audit

* chore: More clean up

- Reword some confusing descriptions
- Add some descriptions
- Type fixes
- Spelling and grammar fixes
- Swapping in `-` where `*` used to be for 
bullet point consistency

ox_lib
- Interface, ACL through GetClosestVehicle audited

* chore: Finishing up ox_lib
This commit is contained in:
Jag authored and GitHub committed 2023-07-03 13:13:56 +10:00
1 parent 7495414c9c
commit 74227cc262
39 files changed
+533 -247

No files matched your search

+18 -11
View File
@@ -1,21 +1,28 @@
### lib.raycast.cam
Starts a shapetest originating from the camera, extending to ~10m.
Starts a shapetest originating from the camera, extending to ~10m by default.
```lua
lib.raycast.cam(flags, ignore, distance)
```
* flags?: `number`
* Defaults to 1|2|8|16 (see: https://docs.fivem.net/natives/?_0x377906D8A31E5586)
* ignore?: `number`
* A bit mask with bits 1, 2, 4, or 7 relating to collider types. 4 and 7 are usually used.
* distance?: `number`
- flags?: `number`
- See: https://docs.fivem.net/natives/?_0x377906D8A31E5586
- Default: `511`
- ignore?: `number`
- A bit mask with bits 1, 2, 4, or 7 relating to collider types. 4 and 7 are usually used.
- Default: `4`
- distance?: `number`
- Default: `10`
Return:
* hit: `boolean`
* entityHit: `number`
* endCoords: `vector3`
* surfaceNormal: `vector3`
* materialHash: `number`
- hit: `boolean`
- Whether or not an entity was hit
- entityHit: `number`
- Entity handle of hit entity
- endCoords: `vector3`
- Closest coords to where the raycast hit
- surfaceNormal: `vector3`
- Normal to the surface that was hit
- materialHash: `number`