<commit_before>
//	@file Version: 1.0
//	@file Name: HvT.sqf
//	@file Author: Cael817, CRE4MPIE
//	@file Info:

if (isDedicated) exitWith {};
waitUntil {!isNull player};

player addEventHandler ["AnimChanged", {
	if (isNil "createBountyMarker" && player getvariable "cmoney" > 54999) then
	{		terminate createBountyMarker;
	
			_title  = "<t color='#ff0000' size='1.2' align='center'>High Value Target! </t><br />";
			_name = format ["%1<br /> ",name player];     
			_text = "<t color='#FFFFFF ' shadow='1' shadowColor='#000000' align='center'>Someone has spotted you carrying a large sum of money and marked your location on the map!</t><br />";     
			hint parsetext (_title +  _name +  _text); 
			playsound "Topic_Done";
		
			createBountyMarker = {
			_bountyMarker = createMarker ["bountyMarker", getPos (vehicle player)];
			_bountyMarker setMarkerShape "ICON";
			_bounty = player getVariable ["cmoney",0] call fn_numbersText;
			_bountyMarker setMarkerText (format ["High Value Target: %1 ($%2)", name player, _bounty]);
			_bountyMarker setMarkerColor "ColorRed";
			_bountyMarker setMarkerType "mil_dot";
			sleep 60;
			deleteMarker "bountyMarker";
			createBountyMarker = nil;
								};
		[] spawn createBountyMarker;						
	};
}];
<commit_msg>Fix for HVT?<commit_after>//	@file Version: 1.0
//	@file Name: HvT.sqf
//	@file Author: Cael817, CRE4MPIE, rewrite by LouD.
//	@file Info:

if (isDedicated) exitWith {};
waitUntil {!isNull player};
waitUntil {!isNil "playerSpawning" && {!playerSpawning}};

for "_i" from 0 to 1 step 0 do 
{
	if (player getvariable "cmoney" > 74999) then
		{
			_title  = "<t color='#ff0000' size='1.2' align='center'>High Value Target! </t><br />";
			_name = format ["%1<br /> ",name player];     
			_text = "<t color='#FFFFFF' shadow='1' shadowColor='#000000' align='center'>Someone has spotted you carrying a large sum of money and has marked your location on the map!</t><br />";     
			hint parsetext (_title +  _name +  _text); 
			playsound "Topic_Done";

			_markerName = format ["%1_bountyMarker",name player];  
			_bountyMarker = createMarker [_markerName, getPos (vehicle player)];
			_bountyMarker setMarkerShape "ICON";
			_bounty = [player getVariable ["cmoney", 0]] call fn_numbersText;
			_bountyMarker setMarkerText (format ["High Value Target: %1 (%2$)", name player, _bounty]);
			_bountyMarker setMarkerColor "ColorRed";
			_bountyMarker setMarkerType "mil_dot";
			sleep 45;
			deleteMarker _markerName;
		};
}; //will run infinitely
{'fraction_non_alphanumeric': 0.1418864908073541, 'fraction_numerical': 0.025579536370903277, 'mean_word_length': 4.203742203742204, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2802423', 'n_tokens_mistral': 989, 'n_tokens_neox': 835, 'n_words': 245}