From da8777b55559b9651bce75a85182707ac2b7893c Mon Sep 17 00:00:00 2001 From: Majeranek777 <83666286+Majeranek777@users.noreply.github.com> Date: Mon, 7 Nov 2022 22:51:26 +0100 Subject: [PATCH 1/5] Update NetworkAddEntityToSynchronisedScene.md Here you go --- .../NetworkAddEntityToSynchronisedScene.md | 42 +++++++++++++++---- 1 file changed, 34 insertions(+), 8 deletions(-) diff --git a/NETWORK/NetworkAddEntityToSynchronisedScene.md b/NETWORK/NetworkAddEntityToSynchronisedScene.md index ab7eada5e..072c55e53 100644 --- a/NETWORK/NetworkAddEntityToSynchronisedScene.md +++ b/NETWORK/NetworkAddEntityToSynchronisedScene.md @@ -5,16 +5,42 @@ ns: NETWORK ```c // 0xF2404D68CBC855FA 0x10DD636C -void NETWORK_ADD_ENTITY_TO_SYNCHRONISED_SCENE(Entity entity, int netScene, char* animDict, char* animName, float speed, float speedMulitiplier, int flag); +void NETWORK_ADD_ENTITY_TO_SYNCHRONISED_SCENE(Entity entity, int netScene, char* animDict, char* animName, float blendInSpeed, float blendOutSpeed, float flag); ``` ## Parameters -* **entity**: -* **netScene**: -* **animDict**: -* **animName**: -* **speed**: -* **speedMulitiplier**: -* **flag**: +* **entity**: The Entity that the animation is gonna play on (Recomended that the entity is serversided for best syncing). +* **netScene**: scene id. +* **animDict**: The animDict of the animation that you want to play (remember you have to load with RequestAnimDict() before executing this native) +* **animName**: The name of the animation that the entity is gonna play. +* **blendInSpeed**: a float (normal speed is 8.0f). +* **blendOutSpeed**: a float (normal speed is -8.0f). +* **flag**: A float 1000.0f (Also doesn't seem to affect anything). +## Animation Dictionaries +* **Animation List**: https://alexguirre.github.io/animations-list/ +* **Other Option**: More likely to find your desired animation by just searching OpenIV +* Most can be found here: (Gta V path)\update\x64\dlcpacks\(Desired folder like mpheist)\dlc.rpf\x64\anim\ingame\clip_anim@.rpf\ +* Most usefull ones start with anim@scripted@... + +## Animations +* **Animation List**: https://alexguirre.github.io/animations-list/ +* **Other Option**: You are much more likely to find the animation by opening [CodeWalker's](https://pl.gta5-mods.com/tools/codewalker-gtav-interactive-3d-map) Ped Viewer and putting the AnimDict into the search bar. + +## Used With +* **NetworkAddPedToSynchronisedScene**: https://docs.fivem.net/natives/?_0x742A637471BCECD9. +* **NetworkAddEntityToSynchronisedScene**: https://docs.fivem.net/natives/?_0xF2404D68CBC855FA. +* **NetworkCreateSynchronisedScene**: https://docs.fivem.net/natives/?_0x7CD6BC4C2BBDD526. + +## Example +```lua + ped = PlayerPedId() + pedCoords = GetEntityCoords(ped) + animDict = 'anim@scripted@heist@ig9_control_tower@male@' + loadAnimDict(animDict) --Not a fivem native a function that you have to create yourself + + scene = NetworkCreateSynchronisedScene(GetEntityCoords(Object), GetEntityRotation(Object), 2, true, false, 100065353216, 0, 1065353216) + Object = GetClosestObjectOfType(pedCoords.x,pedCoords.y,pedCoords.z, 2.5, GetHashKey('h4_prop_h4_elecbox_01a'), 0, 0, 0) + NetworkAddEntityToSynchronisedScene(Object, scene, animDict, 'exit_electric_box', 1.0, -1.0, 1000.0) +``` From 0039676ac1715ec6f07023f46efeea5558575f22 Mon Sep 17 00:00:00 2001 From: Majeranek777 <83666286+Majeranek777@users.noreply.github.com> Date: Mon, 19 Jun 2023 16:56:02 +0200 Subject: [PATCH 2/5] Update NetworkAddEntityToSynchronisedScene.md --- NETWORK/NetworkAddEntityToSynchronisedScene.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/NETWORK/NetworkAddEntityToSynchronisedScene.md b/NETWORK/NetworkAddEntityToSynchronisedScene.md index 072c55e53..5accc3aeb 100644 --- a/NETWORK/NetworkAddEntityToSynchronisedScene.md +++ b/NETWORK/NetworkAddEntityToSynchronisedScene.md @@ -9,7 +9,7 @@ void NETWORK_ADD_ENTITY_TO_SYNCHRONISED_SCENE(Entity entity, int netScene, char* ``` -## Parameters +### Parameters * **entity**: The Entity that the animation is gonna play on (Recomended that the entity is serversided for best syncing). * **netScene**: scene id. * **animDict**: The animDict of the animation that you want to play (remember you have to load with RequestAnimDict() before executing this native) @@ -18,22 +18,22 @@ void NETWORK_ADD_ENTITY_TO_SYNCHRONISED_SCENE(Entity entity, int netScene, char* * **blendOutSpeed**: a float (normal speed is -8.0f). * **flag**: A float 1000.0f (Also doesn't seem to affect anything). -## Animation Dictionaries +### Animation Dictionaries * **Animation List**: https://alexguirre.github.io/animations-list/ * **Other Option**: More likely to find your desired animation by just searching OpenIV * Most can be found here: (Gta V path)\update\x64\dlcpacks\(Desired folder like mpheist)\dlc.rpf\x64\anim\ingame\clip_anim@.rpf\ * Most usefull ones start with anim@scripted@... -## Animations +### Animations * **Animation List**: https://alexguirre.github.io/animations-list/ * **Other Option**: You are much more likely to find the animation by opening [CodeWalker's](https://pl.gta5-mods.com/tools/codewalker-gtav-interactive-3d-map) Ped Viewer and putting the AnimDict into the search bar. -## Used With +### Used With * **NetworkAddPedToSynchronisedScene**: https://docs.fivem.net/natives/?_0x742A637471BCECD9. * **NetworkAddEntityToSynchronisedScene**: https://docs.fivem.net/natives/?_0xF2404D68CBC855FA. * **NetworkCreateSynchronisedScene**: https://docs.fivem.net/natives/?_0x7CD6BC4C2BBDD526. -## Example +### Example ```lua ped = PlayerPedId() pedCoords = GetEntityCoords(ped) From fffecad43774b86138a3b356ee3b73c62c9e63b2 Mon Sep 17 00:00:00 2001 From: ammonia-cfx <38232208+4mmonium@users.noreply.github.com> Date: Sun, 3 Dec 2023 21:26:08 +0300 Subject: [PATCH 3/5] Update NetworkAddEntityToSynchronisedScene.md Corrected the PR so it's in the correct format at least. I believe any links linking off-site will probably need to be removed since they they can go offline in the long run. --- .../NetworkAddEntityToSynchronisedScene.md | 25 +++++++++---------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/NETWORK/NetworkAddEntityToSynchronisedScene.md b/NETWORK/NetworkAddEntityToSynchronisedScene.md index 5accc3aeb..47e977406 100644 --- a/NETWORK/NetworkAddEntityToSynchronisedScene.md +++ b/NETWORK/NetworkAddEntityToSynchronisedScene.md @@ -5,24 +5,14 @@ ns: NETWORK ```c // 0xF2404D68CBC855FA 0x10DD636C -void NETWORK_ADD_ENTITY_TO_SYNCHRONISED_SCENE(Entity entity, int netScene, char* animDict, char* animName, float blendInSpeed, float blendOutSpeed, float flag); +void NETWORK_ADD_ENTITY_TO_SYNCHRONISED_SCENE(Entity entity, int netScene, char* animDict, char* animName, float blendInSpeed, float blendOutSpeed, int flags); ``` - -### Parameters -* **entity**: The Entity that the animation is gonna play on (Recomended that the entity is serversided for best syncing). -* **netScene**: scene id. -* **animDict**: The animDict of the animation that you want to play (remember you have to load with RequestAnimDict() before executing this native) -* **animName**: The name of the animation that the entity is gonna play. -* **blendInSpeed**: a float (normal speed is 8.0f). -* **blendOutSpeed**: a float (normal speed is -8.0f). -* **flag**: A float 1000.0f (Also doesn't seem to affect anything). - ### Animation Dictionaries * **Animation List**: https://alexguirre.github.io/animations-list/ * **Other Option**: More likely to find your desired animation by just searching OpenIV * Most can be found here: (Gta V path)\update\x64\dlcpacks\(Desired folder like mpheist)\dlc.rpf\x64\anim\ingame\clip_anim@.rpf\ -* Most usefull ones start with anim@scripted@... +* Most useful ones start with anim@scripted@... ### Animations * **Animation List**: https://alexguirre.github.io/animations-list/ @@ -33,7 +23,16 @@ void NETWORK_ADD_ENTITY_TO_SYNCHRONISED_SCENE(Entity entity, int netScene, char* * **NetworkAddEntityToSynchronisedScene**: https://docs.fivem.net/natives/?_0xF2404D68CBC855FA. * **NetworkCreateSynchronisedScene**: https://docs.fivem.net/natives/?_0x7CD6BC4C2BBDD526. -### Example +## Parameters +* **entity**: The Entity that the animation is gonna play on (Recomended that the entity is serversided for best syncing). +* **netScene**: scene id. +* **animDict**: The animDict of the animation that you want to play (remember you have to load with RequestAnimDict() before executing this native) +* **animName**: The name of the animation that the entity is gonna play. +* **blendInSpeed**: a float (normal speed is 8.0f). +* **blendOutSpeed**: a float (normal speed is -8.0f). +* **flags**: The flags to use for this synchronized scene. + +## Example ```lua ped = PlayerPedId() pedCoords = GetEntityCoords(ped) From 4b034e4b2affecd03b8da495de3c186bd44c1a82 Mon Sep 17 00:00:00 2001 From: ammonia-cfx <38232208+4mmonium@users.noreply.github.com> Date: Sun, 3 Dec 2023 21:28:03 +0300 Subject: [PATCH 4/5] Update NetworkAddEntityToSynchronisedScene.md Correct 'Used With' native references. --- NETWORK/NetworkAddEntityToSynchronisedScene.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/NETWORK/NetworkAddEntityToSynchronisedScene.md b/NETWORK/NetworkAddEntityToSynchronisedScene.md index 47e977406..ac61d74fd 100644 --- a/NETWORK/NetworkAddEntityToSynchronisedScene.md +++ b/NETWORK/NetworkAddEntityToSynchronisedScene.md @@ -19,9 +19,9 @@ void NETWORK_ADD_ENTITY_TO_SYNCHRONISED_SCENE(Entity entity, int netScene, char* * **Other Option**: You are much more likely to find the animation by opening [CodeWalker's](https://pl.gta5-mods.com/tools/codewalker-gtav-interactive-3d-map) Ped Viewer and putting the AnimDict into the search bar. ### Used With -* **NetworkAddPedToSynchronisedScene**: https://docs.fivem.net/natives/?_0x742A637471BCECD9. -* **NetworkAddEntityToSynchronisedScene**: https://docs.fivem.net/natives/?_0xF2404D68CBC855FA. -* **NetworkCreateSynchronisedScene**: https://docs.fivem.net/natives/?_0x7CD6BC4C2BBDD526. +* [`NETWORK_ADD_PED_TO_SYNCHRONISED_SCENE`](#_0x742A637471BCECD9) +* [`NETWORK_ADD_ENTITY_TO_SYNCHRONISED_SCENE`](#_0xF2404D68CBC855FA) +* [`NETWORK_CREATE_SYNCHRONISED_SCENE`](#_0x7CD6BC4C2BBDD526) ## Parameters * **entity**: The Entity that the animation is gonna play on (Recomended that the entity is serversided for best syncing). From 090b6cdd6a240d317732ae55e7f85b09d0f77926 Mon Sep 17 00:00:00 2001 From: ammonia-cfx <38232208+4mmonium@users.noreply.github.com> Date: Thu, 4 Jan 2024 07:07:35 +0300 Subject: [PATCH 5/5] Update NetworkAddEntityToSynchronisedScene.md Centralize animation list and correct some examples so this can be merged. --- NETWORK/NetworkAddEntityToSynchronisedScene.md | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/NETWORK/NetworkAddEntityToSynchronisedScene.md b/NETWORK/NetworkAddEntityToSynchronisedScene.md index ac61d74fd..7f61f1a72 100644 --- a/NETWORK/NetworkAddEntityToSynchronisedScene.md +++ b/NETWORK/NetworkAddEntityToSynchronisedScene.md @@ -8,15 +8,8 @@ ns: NETWORK void NETWORK_ADD_ENTITY_TO_SYNCHRONISED_SCENE(Entity entity, int netScene, char* animDict, char* animName, float blendInSpeed, float blendOutSpeed, int flags); ``` -### Animation Dictionaries -* **Animation List**: https://alexguirre.github.io/animations-list/ -* **Other Option**: More likely to find your desired animation by just searching OpenIV -* Most can be found here: (Gta V path)\update\x64\dlcpacks\(Desired folder like mpheist)\dlc.rpf\x64\anim\ingame\clip_anim@.rpf\ -* Most useful ones start with anim@scripted@... - ### Animations -* **Animation List**: https://alexguirre.github.io/animations-list/ -* **Other Option**: You are much more likely to find the animation by opening [CodeWalker's](https://pl.gta5-mods.com/tools/codewalker-gtav-interactive-3d-map) Ped Viewer and putting the AnimDict into the search bar. +The animation list can be found within the following native: [`PLAY_ENTITY_ANIM`](#_0x7FB218262B810701) ### Used With * [`NETWORK_ADD_PED_TO_SYNCHRONISED_SCENE`](#_0x742A637471BCECD9) @@ -32,14 +25,14 @@ void NETWORK_ADD_ENTITY_TO_SYNCHRONISED_SCENE(Entity entity, int netScene, char* * **blendOutSpeed**: a float (normal speed is -8.0f). * **flags**: The flags to use for this synchronized scene. -## Example +## Examples ```lua ped = PlayerPedId() pedCoords = GetEntityCoords(ped) animDict = 'anim@scripted@heist@ig9_control_tower@male@' loadAnimDict(animDict) --Not a fivem native a function that you have to create yourself - scene = NetworkCreateSynchronisedScene(GetEntityCoords(Object), GetEntityRotation(Object), 2, true, false, 100065353216, 0, 1065353216) + scene = NetworkCreateSynchronisedScene(GetEntityCoords(Object), GetEntityRotation(Object), 2, true, false, 8.0, -8.0, 1065353216) Object = GetClosestObjectOfType(pedCoords.x,pedCoords.y,pedCoords.z, 2.5, GetHashKey('h4_prop_h4_elecbox_01a'), 0, 0, 0) NetworkAddEntityToSynchronisedScene(Object, scene, animDict, 'exit_electric_box', 1.0, -1.0, 1000.0) ```