Vrock_wave Posted May 8, 2015 Share Posted May 8, 2015 (edited) I write code on lua I tried a lot of options combining a group of enemies but nothing works any ideas on this subject? features I have used: local id enemys --> guh and guh2 num3 = PED.GET_PED_RELATIONSHIP_GROUP_HASH(guh); ===== not work,but if you use an indicator Player everything works ===>PLAYER.PLAYER_PED_ID() or playerPed , but I do not need that command friendly PED.SET_PED_RELATIONSHIP_GROUP_HASH(guh, num3) Пед.SET_PED_RELATIONSHIP_GROUP_HASH(guh2, num3) I get such a result permanently or team of friends : https://www.youtube.com/watch?v=5yYuYqcUCHg Edited May 8, 2015 by Vrock_wave Link to comment Share on other sites More sharing options...
Tez2 Posted May 8, 2015 Share Posted May 8, 2015 Use this native. Link to comment Share on other sites More sharing options...
Vrock_wave Posted May 8, 2015 Author Share Posted May 8, 2015 (edited) not an option, they will still start shooting each other after a while this function and why it produces nothing Ped.SET_PED_AS_ENEMY (guh, true) I use this function is to attack the player only if they are attacked, but still then begin to kill each other AI.TASK_COMBAT_PED (guh, playerPed, 0, 16) Edited May 8, 2015 by Vrock_wave Link to comment Share on other sites More sharing options...
Tez2 Posted May 8, 2015 Share Posted May 8, 2015 (edited) Oh your problem is with relationships.Just set the relationship group to "cop" or "army" PED::SET_PED_RELATIONSHIP_GROUP_HASH(Ped_Handle, GAMEPLAY::GET_HASH_KEY("cop")); Edited May 8, 2015 by funmw2 Vrock_wave 1 Link to comment Share on other sites More sharing options...
Vrock_wave Posted May 9, 2015 Author Share Posted May 9, 2015 Thanks bro is what need! Link to comment Share on other sites More sharing options...
decoy1212 Posted October 3, 2015 Share Posted October 3, 2015 Oh your problem is with relationships. Just set the relationship group to "cop" or "army" PED::SET_PED_RELATIONSHIP_GROUP_HASH(Ped_Handle, GAMEPLAY::GET_HASH_KEY("cop")); Do you know how to set that in C#?? Link to comment Share on other sites More sharing options...
ISOFX Posted October 3, 2015 Share Posted October 3, 2015 (edited) int CopRelationShipGroup = Function.Call<int>(Hash.GET_HASH_KEY, "cop");Function.Call(Hash.SET_PED_RELATIONSHIP_GROUP_HASH, Ped_Handle, CopRelationShipGroup); Ped_Handle is the ped you want to set as the cop relationship group. C# Code. @decoy1212 Edited October 3, 2015 by ISOFX decoy1212 1 Link to comment Share on other sites More sharing options...
decoy1212 Posted October 3, 2015 Share Posted October 3, 2015 int CopRelationShipGroup = Function.Call<int>(Hash.GET_HASH_KEY, "cop");Function.Call(Hash.SET_PED_RELATIONSHIP_GROUP_HASH, Ped_Handle, CopRelationShipGroup); Ped_Handle is the ped you want to set as the cop relationship group. C# Code. @decoy1212 LOL oh YEAH!! Noted trying it! Danx!! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now