Skip to content

Commit

Permalink
Dogtags - Rename inventory items via CBA
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror committed Jul 20, 2024
1 parent 6873831 commit cf7ee7f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions addons/dogtags/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
if (hasInterface || isServer) then {
[QGVAR(broadcastDogtagInfo), {
GVAR(dogtagsData) set _this;

if (isNil "CBA_fnc_renameInventoryItem") exitWith {}; // requires https://github.com/CBATeam/CBA_A3/pull/1329
params ["_item", "_dogTagData"];
private _name = [LLSTRING(itemName), ": ", _dogtagData param [0, LELSTRING(common,unknown)]] joinString "";
[_item, _name] call CBA_fnc_renameInventoryItem;
}] call CBA_fnc_addEventHandler;

if (isServer) then {
Expand Down

0 comments on commit cf7ee7f

Please sign in to comment.