use same params and types format for all of lib

This commit is contained in:
Luke committed 2022-09-17 13:25:20 +02:00
1 parent e3293c2109
commit 6c2ab8f8ec
14 files changed
+114 -67

No files matched your search

+11 -7
View File
@@ -3,12 +3,16 @@
Starts a shapetest originating from the camera, extending to ~10m.
```lua
---@param flags number? Defaults to 1|2|8|16 (see: https://docs.fivem.net/natives/?_0x377906D8A31E5586)
---@param p8 number? A bit mask with bits 1, 2, 4, or 7 relating to collider types. 4 and 7 are usually used.
---@return boolean hit
---@return number entityHit
---@return vector3 endCoords
---@return vector3 surfaceNormal
---@return number materialHash
function lib.raycast.cam(flags, p8) end
```
* flags?: `number`
* Defaults to 1|2|8|16 (see: https://docs.fivem.net/natives/?_0x377906D8A31E5586)
* p8?: `numbe`
* A bit mask with bits 1, 2, 4, or 7 relating to collider types. 4 and 7 are usually used.
Return:
* hit: `boolean`
* entityHit: `number`
* endCoords: `vector3`
* surfaceNormal: `vector3`
* materialHash: `number`