Exemplo n.º 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);
        }
Exemplo n.º 2
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);
        }
Exemplo n.º 3
0
 public static int GetInteriorOwner(Player player)
 {
     return(EntityDecoration.Get <int>(player.Character, PlayerProperties.InteriorOwner));
 }