<commit_before>--[[
********************************************************************************
	Project owner:		RageQuit community
	Project name: 		GTW-RPG
	Developers:   		Mr_Moose

	Source code:		https://github.com/GTWCode/GTW-RPG/
	Bugtracker: 		http://forum.404rq.com/bug-reports/
	Suggestions:		http://forum.404rq.com/mta-servers-development/

	Version:    		Open source
	License:    		BSD 2-Clause
	Status:     		Stable release
********************************************************************************
]]--

-- Redcue damage made by minigun
setWeaponProperty(38, "pro", "damage", 2)
setWeaponProperty(38, "std", "damage", 2)
setWeaponProperty(38, "poor", "damage", 2)

addCommandHandler("gtwinfo", function(plr, cmd)
	outputChatBox("[GTW-RPG] "..getResourceName(<commit_msg>[Update] Cold water added in northern areas<commit_after>--[[
********************************************************************************
	Project owner:		RageQuit community
	Project name: 		GTW-RPG
	Developers:   		Mr_Moose

	Source code:		https://github.com/GTWCode/GTW-RPG/
	Bugtracker: 		http://forum.404rq.com/bug-reports/
	Suggestions:		http://forum.404rq.com/mta-servers-development/

	Version:    		Open source
	License:    		BSD 2-Clause
	Status:     		Stable release
********************************************************************************
]]--

-- Redcue damage made by minigun
setWeaponProperty(38, "pro", "damage", 2)
setWeaponProperty(38, "std", "damage", 2)
setWeaponProperty(38, "poor", "damage", 2)

-- Reduce health when falling into cold water
setTimer(function()
	for k,v in pairs(getElementsByType("player")) do
		if isElementInWater(v) then
			local health = getElementHealth(v)
			local new_health = health - 10
			local x,y,z = getElementPosition(v)
			-- Check if the area is north west (SF), south LS or if it's night
			local hour, minutes = getTime()
			if (y > 0 and x < 0) or (y < -2000 and x > 0) or hour > 18 or hour < 8 then
				if new_health > 0 then
					setElementHealth(v, new_health)
					exports.GTWtopbar:dm("This water is cold! get up before you die!", v, 255, 0, 0)
				else
					killPed(v)
					exports.GTWtopbar:dm("You frooze to death in the cold water", v, 100, 255, 100)
				end
			end
		end
	end
end, 3000, 0)

addCommandHandler("gtwinfo", function(plr, cmd)
	outputChatBox("[GTW-RPG] "..getResourceName(
{'fraction_non_alphanumeric': 0.24681933842239187, 'fraction_numerical': 0.02714164546225615, 'mean_word_length': 4.33710407239819, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7472555', 'n_tokens_mistral': 900, 'n_tokens_neox': 764, 'n_words': 204}