How can I place customized flags on flagpoles in my missions?

As of OFP version 1.30, the previously available official Flag Pack is now contained in file FLAGS.PBO in OFP's ADDONS subdirectory. 

So whether you want to use one of the country flag JPG files packed into the FLAGS.PBO file or whether you've got a customized version of the Jolly Roger you want to hoist (actually, there's one included in the FLAGS.PBO file, named PIRATES.JPG), here are the step-by-step instructions to implement displaying flags in your missions:

  1. Flags must be non-progressive (zero progressive passes) 24-bit color 128x256 pixel flag JPG images, like this NATO flag, for example:

Courtesy of Codemasters

  1. Customized flag's JPG files must be placed into the directory where your other mission files are located. If you're using a country flag from OFP's FLAGS.PBO file, OFP will automatically locate it in OFP's ADDONS directory.
  1. In the mission, define the flag for a given flagpole with one of the following statement:

(NOTES: Change "unit_name" in the above examples to the name of the flag bearing object to be modified. Change "flag_name.jpg" in the above examples to the actual country or customized flag JPG image file name you want used for this flagpole).

List of all flag JPG files in ADDONS file FLAGS.PBO:

Countries:

Afghanistan
Albania
Algeria
Andorra
Angola
Argentina
Armenia
Australia
Austria
Azerbaijan
Bangladesh
Barbados
Belarus
Belgium
Belgium-Flanders
Belgium-Wallonia
Belize
Benin
Bhutan
Bolivia
Bosna-Herzegovina
Botswana
Brazil
Brunei
Bulgaria
BurkinaFaso
Cambodia
Cameroon
Canada
CapeVerde
Chad
Chile
China
Columbia
Comoros
Congo
Costarica
Croatia
Cuba
Cyprus
Czech
Denmark
Dominica
DominicanRepublic
Ecuador
England
Egypt
ElSalvador
Estonia
Ethiopia
EU
FaroeIslands
Fiji
Finland
France
FrenchPolynesia
Gambia
Germany
Ghana
Greece
Greenland
Guatemala
Guernsey
Haiti
Honduras
Hungary
Iceland
India
Indonesia
Iran
Iraq
Ireland
IsleOfMan
Israel
Italy
IvoryCoast
Jamaica
Japan
Jordan
Kazakstan
Kenya
Korea-North
Korea-South
Kuwait
Kyrgyzstan
Laos
Latvia
Lebanon
Libya
Liechtenstein
Lithuania
Luxembourg
Macedonia
Madagascar
Malaysia
Malta
Mexico
Moldova
Mongolia
Morocco
Mozambique
Myanmar
Namibia
Nauru
Netherlands
NewZealand
Nicaragua
Nigeria
NorfolkIsland
Norway
Oman
Pakistan
Palestine
Panama
Paraguay
Peru
Philippines
Poland
Portugal
Qatar
Quebec
Romania
Russia
Sahara-Western
Samoa
SaudiArabia
Scotland
SierraLeone
Singapore
Slovakia
Slovenia
Somalia
SouthAfrica
Spain
SriLanka
Sudan
Sweden
Switzerland
Syria
Taiwan
Tajikistan
Thailand
Togo
Tonga
TrinidadAndTobago
Tunisia
Turkey
Turkmenistan
Uganda
Ukraine
UnitedArabEmirates
UnitedKingdom
Uruguay
Uzbekistan
USA
USAHistory
USSR
Venezuela
Vietnam
Wales
Yemen
Yugoslavia
Zimbabwe

Organizations:

BIS_Black
BIS_White
Codemasters
FIA
FIABlack
NATO
RedCross
Pirates
White