You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1871,19 +1877,11 @@ function GetFinalRenderedCamFov() end
1871
1877
functionN_0x80ec114669daeff4() end
1872
1878
1873
1879
1874
-
--- ```
1875
-
--- p0 dosen't seem to change much, I tried it with 0, 1, 2:
1876
-
--- 0-Pitch(X): -70.000092
1877
-
--- 0-Roll(Y): -0.000001
1878
-
--- 0-Yaw(Z): -43.886459
1879
-
--- 1-Pitch(X): -70.000092
1880
-
--- 1-Roll(Y): -0.000001
1881
-
--- 1-Yaw(Z): -43.886463
1882
-
--- 2-Pitch(X): -70.000092
1883
-
--- 2-Roll(Y): -0.000002
1884
-
--- 2-Yaw(Z): -43.886467
1885
-
--- ```
1886
-
---
1880
+
--- This function takes a rotation order and outputs a `Vector3` in degrees.
1881
+
---
1882
+
--- It first calls a game function to calculate these values given the rotation order and effectively multiplies those values by `180/PI`, hence degrees since the function it calls outputs radians which are then converted to degrees.
1883
+
--- @usage local camRot = GetGameplayCamRot(0) -- vector3(-14.74518, 0.05254443, 95.24616)
@@ -1988,10 +1982,19 @@ function GetDecalWashLevel(decal) end
1988
1982
functionN_0x32f34ff7f617643b(p0, p1) end
1989
1983
1990
1984
1991
-
--- ```
1992
-
--- NativeDB Introduced: v1290
1993
-
--- ```
1994
-
---
1985
+
--- Creates an integer (usually 1) for a BINK movie to be called with other natives.
1986
+
--- [List of all BINK movies (alphabetically ordered) as of b2802](https://gist.github.com/ItsJunction/8046f28c29ea8ff2821e9e4f933f595f)
1987
+
--- @usage Citizen.CreateThread(function()
1988
+
--- local binkint = SetBinkMovie("casino_trailer")
1989
+
--- SetBinkMovieTime(binkint, 0.0) -- Seeks to 0%
1990
+
---
1991
+
--- while (GetBinkMovieTime(binkint) < 100.0) do -- Very Basic Idea That Works?
1992
+
--- print(math.floor(GetBinkMovieTime(binkint) * 100)/100 .. "%") -- Prints current playtime (as percentage).
1993
+
--- PlayBinkMovie(binkint)
1994
+
--- DrawBinkMovie(binkint, 0.5, 0.5, 1.0, 1.0, 0.0, 255, 255, 255, 255) -- This example draws and plays in Fullscreen and in the center of screen (no matter the resolution).
@@ -2000,10 +2003,19 @@ function SetBinkMovie(name) end
2000
2003
2001
2004
2002
2005
--- # New Name: SetBinkMovie
2003
-
--- ```
2004
-
--- NativeDB Introduced: v1290
2005
-
--- ```
2006
-
---
2006
+
--- Creates an integer (usually 1) for a BINK movie to be called with other natives.
2007
+
--- [List of all BINK movies (alphabetically ordered) as of b2802](https://gist.github.com/ItsJunction/8046f28c29ea8ff2821e9e4f933f595f)
2008
+
--- @usage Citizen.CreateThread(function()
2009
+
--- local binkint = SetBinkMovie("casino_trailer")
2010
+
--- SetBinkMovieTime(binkint, 0.0) -- Seeks to 0%
2011
+
---
2012
+
--- while (GetBinkMovieTime(binkint) < 100.0) do -- Very Basic Idea That Works?
2013
+
--- print(math.floor(GetBinkMovieTime(binkint) * 100)/100 .. "%") -- Prints current playtime (as percentage).
2014
+
--- PlayBinkMovie(binkint)
2015
+
--- DrawBinkMovie(binkint, 0.5, 0.5, 1.0, 1.0, 0.0, 255, 255, 255, 255) -- This example draws and plays in Fullscreen and in the center of screen (no matter the resolution).
@@ -3447,24 +3459,32 @@ function SeethroughReset() end
3447
3459
functionPlayBinkMovie(binkMovie) end
3448
3460
3449
3461
3450
-
--- ```
3451
-
--- NativeDB Introduced: v1290
3452
-
--- ```
3453
-
---
3462
+
--- Must be called each frame, will play at specified position on screen when called with [`_PLAY_BINK_MOVIE`](https://docs.fivem.net/natives/?_0x70D2CC8A542A973C)
3463
+
--- @usage Citizen.CreateThread(function()
3464
+
--- local binkint = SetBinkMovie("casino_trailer") -- BINK movie, list can be found at https://gist.github.com/ItsJunction/8046f28c29ea8ff2821e9e4f933f595f
3465
+
--- SetBinkMovieTime(binkint, 0.0) -- Seeks to 0%, just incase of errors.
3466
+
---
3467
+
--- while (GetBinkMovieTime(binkint) < 100.0) do
3468
+
--- print(math.floor(GetBinkMovieTime(binkint) * 100)/100 .. "%") -- Prints current playtime (as percentage).
3469
+
--- PlayBinkMovie(binkint)
3470
+
--- DrawBinkMovie(binkint, 0.5, 0.5, 1.0, 1.0, 0.0, 255, 255, 255, 255) -- This example draws and plays in fullscreen in the center (no matter the resolution).
functionDrawBinkMovie(binkMovie, posX, posY, scaleX, scaleY, rotation, r, g, b, a) end
3468
3488
3469
3489
3470
3490
--- ```
@@ -6881,10 +6901,26 @@ function GetScaleformMovieMethodReturnValueBool(methodReturn) end
6881
6901
functionN_0xd80a80346a45d761(methodReturn) end
6882
6902
6883
6903
6904
+
--- If true, this native will create purple explosions upon projectile impact, add comic-like PTFX when firing a weapon, create a sound on bullet impact and have its own "blood effect".
6905
+
---
6906
+
--- If the PTFX asset "scr_rcbarry2" is not requested using ([`RequestNamedPtfxAsset`](https://docs.fivem.net/natives/?_0xD821490579791273)) then this native **will not work as intended**.
6907
+
---
6908
+
--- Excerpt from fm_content_drug_lab_work.c:
6909
+
---
6884
6910
--- ```
6885
-
--- Creates cartoon effect when Michel smokes the weed
@@ -6893,10 +6929,26 @@ function EnableClownBloodVfx(toggle) end
6893
6929
6894
6930
6895
6931
--- # New Name: EnableClownBloodVfx
6932
+
--- If true, this native will create purple explosions upon projectile impact, add comic-like PTFX when firing a weapon, create a sound on bullet impact and have its own "blood effect".
6933
+
---
6934
+
--- If the PTFX asset "scr_rcbarry2" is not requested using ([`RequestNamedPtfxAsset`](https://docs.fivem.net/natives/?_0xD821490579791273)) then this native **will not work as intended**.
6935
+
---
6936
+
--- Excerpt from fm_content_drug_lab_work.c:
6937
+
---
6896
6938
--- ```
6897
-
--- Creates cartoon effect when Michel smokes the weed
0 commit comments