Aktarus Posted October 16, 2017 Share Posted October 16, 2017 Hi, I want to create a group and set the player as a member of this group. But it doesn’t work. The player’s group still the same. The new group is correctly created. I spawned some ped belonging to this group and everything is fine. It’s also fine when I spawn some peds and set them to the default group of the player. But the invert seems to not working.Any idea why? int GroupID = Function.Call<int>(Hash.CREATE_GROUP, 12); Function.Call(Hash.SET_PED_AS_GROUP_MEMBER, Game.Player.Character, GroupID); int MyGroupID = Function.Call<int>(Hash.GET_PLAYER_GROUP, Game.Player.Character.Handle); Screen.ShowNotification("New group number: " + GroupID); Screen.ShowNotification("Player's group number: " + MyGroupID); 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