For me usually when I’m out hunting or just minding my own business and I feel someone might end up being hostile sometimes I just shoot my gun up in the air because it gives other players that’s close by a warning message to not mess with me in most cases it’s worked for me like when I saw someone start to approach while I was helping my posse member hunt I did that and I just saw them go the other way after that