<commit_before>function pedDamage()
	if getElementData(source,"shopkeeper") then
		setElementData(source,"ignores",false,true)
		cancelEvent()
	end
end
addEventHandler("onClientPedDamage", getRootElement(), pedDamage)

function clickPed(button, state, absX, absY, wx, wy, wz, element)
	if element and getElementType(element) == "ped" and state=="down" and getElementData(element,"shopkeeper") then
		local x, y, z = getElementPosition(getLocalPlayer())

		if getDistanceBetweenPoints3D(x, y, z, wx, wy, wz)<=4 then
			if not getElementData(element,"ignores") then
				triggerServerEvent("onClickStoreKeeper", getLocalPlayer(), element)
			else
				-- not sure yet<commit_msg>shopkeepers will un-ignore you after a while added some random messages<commit_after>local messages = { "F*** off, Punk!", "You're not welcome.", "I'm not selling you anything.", "Find someone else to harrass.", "Get Lost." }

function pedDamage()
	if getElementData(source,"shopkeeper") then
		setElementData(source,"ignores",false,true)
		setTimer(setElementData,300000,1,source,"ignores",false,nil)
		cancelEvent()
	end
end
addEventHandler("onClientPedDamage", getRootElement(), pedDamage)

function clickPed(button, state, absX, absY, wx, wy, wz, element)
	if element and getElementType(element) == "ped" and state=="down" and getElementData(element,"shopkeeper") then
		local x, y, z = getElementPosition(getLocalPlayer())

		if getDistanceBetweenPoints3D(x, y, z, wx, wy, wz)<=4 then
			if not getElementData(element,"ignores") then
				triggerServerEvent("onClickStoreKeeper", getLocalPlayer(), element)
			else
				outputChatBox('Storekeeper says: ' .. messages[math.random(1, #messages)])
{'fraction_non_alphanumeric': 0.12858851674641147, 'fraction_numerical': 0.007177033492822967, 'mean_word_length': 6.674311926605505, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '6639283', 'n_tokens_mistral': 563, 'n_tokens_neox': 519, 'n_words': 141}