Beispiel #1
0
        public static bool IsIn(Player player, int interiorId)
        {
            if (EntityDecoration.ExistOn(player.Character, PlayerProperties.InteriorId))
            {
                return(EntityDecoration.Get <int>(player.Character, PlayerProperties.InteriorId) == interiorId);
            }

            return(false);
        }
Beispiel #2
0
        public static bool IsInAny(Player player)
        {
            if (!EntityDecoration.ExistOn(player.Character, PlayerProperties.InteriorId))
            {
                return(false);
            }

            int interiorId = GetInteriorId(player);

            return(IsValid(interiorId));
        }
Beispiel #3
0
        public static BitSet GetFlags(Player player)
        {
            Ped character = player.Character;

            if (EntityDecoration.ExistOn(character, PlayerProperties.Flags))
            {
                return(EntityDecoration.Get <int>(character, PlayerProperties.Flags));
            }

            return(DefaultFlags);
        }