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 BitSet GetFlags(Player player) { Ped character = player.Character; if (EntityDecoration.ExistOn(character, PlayerProperties.Flags)) { return(EntityDecoration.Get <int>(character, PlayerProperties.Flags)); } return(DefaultFlags); }
public static int GetInteriorOwner(Player player) { return(EntityDecoration.Get <int>(player.Character, PlayerProperties.InteriorOwner)); }