mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 14:38:50 +00:00
Updated raycast docs (#39)
Using the new GetWorldCoordFromScreenCoord native
This commit is contained in:
1 parent
5e85443e85
commit
ac53684f78
1 file changed
+4
-4
@@ -3,12 +3,12 @@
|
|||||||
Starts a shapetest originating from the camera, extending to ~10m.
|
Starts a shapetest originating from the camera, extending to ~10m.
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
---@param fov number? GetFinalRenderedCamFov
|
---@param flags number? Defaults to 1|2|8|16 (see: https://docs.fivem.net/natives/?_0x377906D8A31E5586)
|
||||||
---@param ratio number? GetAspectRatio
|
---@param p8 number? A bit mask with bits 1, 2, 4, or 7 relating to collider types. 4 and 7 are usually used.
|
||||||
---@param flag number? Defaults to 1|2|8|16 (see: https://docs.fivem.net/natives/?_0x377906D8A31E5586)
|
---@return boolean hit
|
||||||
---@return number entityHit
|
---@return number entityHit
|
||||||
---@return vector3 endCoords
|
---@return vector3 endCoords
|
||||||
---@return vector3 surfaceNormal
|
---@return vector3 surfaceNormal
|
||||||
---@return number materialHash
|
---@return number materialHash
|
||||||
function lib.raycast.cam(fov, ratio, flag) end
|
function lib.raycast.cam(flags, p8) end
|
||||||
```
|
```
|
||||||
Reference in new issue
Block a user