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); }
public static bool IsInAny(Player player) { if (!EntityDecoration.ExistOn(player.Character, PlayerProperties.InteriorId)) { return(false); } int interiorId = GetInteriorId(player); return(IsValid(interiorId)); }
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); }