Gun Shop & Hospital loot locations

loot
gun
health
drop
pickup

#1

*Modified Loot locations at all Gun shops…

Drops include:
COMBATPISTOL
WEAPON_CARBINERIFLE
HEALTH_STANDARD
ARMOUR_STANDARD
SAWNOFFSHOTGUN
COMBATPDW
MOLOTOV
HATCHET

Client Scripts

--Gun Shops
Citizen.CreateThread(function()
	-- All the coordinates where loot can spawn at
	local pickupCoords = {
	{x=-328.156 , y=6085.16 , z=31.4548},
	{x=-330.255 , y=6086.64 , z=31.4548},
	{x=-332.756 , y=6083.95 , z=31.4548},

	{x=1695.69 , y=3761.02 , z=34.7053},
	{x=1693.49 , y=3762.59 , z=34.7054},
	{x=1691.09 , y=3760.36 , z=34.7054},

	{x=-1115.52 , y=2699.31 , z=18.5542},
	{x=-1117.5 , y=2701.07 , z=18.5542},
	{x=-1120.08 , y=2698.83 , z=18.5541},

	{x=-3170.03 , y=1089.49 , z=20.8387},
	{x=-3173.05 , y=1090.4 , z=20.8388},
	{x=-3174.56 , y=1087 , z=20.8387},

	{x=2565.6 , y=295.691 , z=108.735},
	{x=2566 , y=292.438 , z=108.735},
	{x=2569.31 , y=292.078 , z=108.735},

	{x=250.045 , y=-51.7883 , z=69.9411},
	{x=253.373 , y=-52.5791 , z=69.9412},
	{x=254.31 , y=-50.0694 , z=69.9411},

	{x=-1307.68 , y=-396.147 , z=36.6958},
	{x=-1304.46 , y=-369.745 , z=36.6958},
	{x=-1303.58 , y=-393.576 , z=36.6958},

	{x=-659.996 , y=-936.262 , z=21.8292},
	{x=-660.234 , y=-933.36 , z=21.8292},
	{x=-633.297 , y=-933.179 , z=21.8292},

	{x=840.036 , y=-1032.48 , z=28.1949},
	{x=840.083 , y=-1035.71 , z=28.1949},
	{x=843.368 , y=-1035.76 , z=28.1949},

	{x=23.535 , y=-1108.82 , z=29.797},
	{x=24.2454 , y=-1105.97 , z=29.797},
	{x=21.11 , y=-1104.46 , z=29.797},
	}
	-- All the blips coordinates for the map
	local blips = {
	
	}

	-- The loot available to spawn
	local loot = {
	0x8967B4F3,  -- PICKUP_COMBATPISTOL
	0xDF711959,  -- PICKUP_WEAPON_CARBINERIFLE
	0x8F707C18,  -- PICKUP_HEALTH_STANDARD
	0x4BFB42D1,  -- PICKUP_ARMOUR_STANDARD
	0x96B412A3,  -- PICKUP_SAWNOFFSHOTGUN
	0x789576E2,  -- PICKUP_COMBATPDW
	0x2DD30479,   -- PICKUP_MOLOTOV
	0xF9DCBF2D    -- HATCHET - MAY CAUSE PROLBEMS
	}


	-- lootcount
	local lootcount = 8
	-- Blips
	for _, map in pairs(blips) do
		map.blip = AddBlipForCoord(map.x, map.y, map.z)
		SetBlipSprite(map.blip, map.id)
		SetBlipAsShortRange(map.blip, true)
	end
	-- Spawn pickup items
	for _, item in pairs(pickupCoords) do
		lootitemnum = math.random(1, lootcount)
		pickup = CreatePickup(loot[lootitemnum], item.x, item.y, item.z)
		SetPickupRegenerationTime(pickup, 10)
	end
end)
--Health Drops
Citizen.CreateThread(function()
	-- Loot Coordinates
	local pickupCoords = {
	{x=-246.511 , y=6331.07 , z=32.4262},
	{x=-250.761 , y=6345.12 , z=32.4262},
	{x=-280.423 , y=6320.8 , z=32.4189},
	{x=-257.967 , y=6299.93 , z=31.721},
	{x=1826.7 , y=3693.3 , z=34.2242},
	{x=1805.13 , y=3680.99 , z=34.2243},
	{x=1844.76 , y=3703.51 , z=33.7609},
	{x=1810.82 , y=3668.76 , z=34.2781},
	{x=1856.16 , y=3682.32 , z=34.2675},
	{x=-664.961 , y=308.31 , z=83.0841},
	{x=-678.968 , y=309.976 , z=83.0842},
	{x=-699.921 , y=304.06 , z=83.0132},
	{x=-655.959 , y=299.147 , z=81.74},
	{x=-874.672 , y=-306.777 , z=39.5658},
	{x=-847.24 , y=-326.923 , z=38.0128},
	{x=-869.65 , y=-334.536 , z=38.9811},
	{x=-885.03 , y=-332.06 , z=38.9815},
	{x=-910.749 , y=-337.195 , z=38.9781},
	{x=-887.901 , y=-306.496 , z=39.5667},
	{x=-861.053 , y=-311.464 , z=39.0312},
	{x=-444.751 , y=-360.057 , z=33.51},
	{x=-448.948 , y=-329.231 , z=34.5019},
	{x=-451.897 , y=-351.036 , z=34.5017},
	{x=-497.522 , y=-345.575 , z=34.5018},
	{x=-494.662 , y=-326.337 , z=34.5016},
	{x=-469.354 , y=-279.005 , z=35.8293},
	{x=-435.253 , y=-294.899 , z=35.7542},
	{x=-516.248 , y=-326.038 , z=35.1475},
	{x=-505.869 , y=-293.036 , z=35.4276},
	{x=-507.124 , y=-351.373 , z=35.2015},
	{x=-428.796 , y=-329.108 , z=33.4112},
	{x=293.059 , y=-584.493 , z=43.1915},
	{x=295.88 , y=-615.756 , z=43.435},
	{x=310.058 , y=-608.326 , z=39.4418},
	{x=314.465 , y=-622.351 , z=35.441},
	{x=322.904 , y=-612.162 , z=31.4397},
	{x=323.98 , y=-625.435 , z=29.2928},
	{x=365.645 , y=-592.118 , z=28.6946},
	{x=340.729 , y=-561.857 , z=28.7438},
	{x=329.011 , y=-558.086 , z=28.7438},
	{x=346.36 , y=-1391.21 , z=32.5093},
	{x=336.688 , y=-1402.09 , z=32.5093},
	{x=306.561 , y=-1435.16 , z=29.8041},
	{x=320.428 , y=-1476.79 , z=29.8639},
	{x=376.03 , y=-1445.36 , z=29.4316},
	{x=364.478 , y=-147.227 , z=66.0839},
	{x=-263.381 , y=99.6528 , z=73.5727},
	{x=405.394 , y=-1420.13 , z=29.4453},
	{x=350.144 , y=-1357.8 , z=32.2959},
	{x=388.543 , y=-1391.39 , z=30.171},
	{x=1106.35 , y=-1477.55 , z=34.6925},
	{x=1116.21 , y=-1502.78 , z=34.6927},
	{x=1122.52 , y=-1519.77 , z=34.8377},
	{x=1207.87 , y=-1547.26 , z=34.6926},
	{x=1183.82 , y=-1555.73 , z=34.6926},
	{x=1173.66 , y=-1571.42 , z=34.6926},
	{x=1152.12 , y=-1527.11 , z=34.8434},
	{x=1158.18 , y=-1598.34 , z=34.6926},
	{x=1139.48 , y=-1599.49 , z=34.6926},
	{x=1103.27 , y=-1531.95 , z=34.8937},
	{x=1171.31 , y=-1564.05 , z=39.402},
	{x=1195.59 , y=-1563.13 , z=39.4012},
	{x=1189.26 , y=-1513.3 , z=34.6961},
	{x=-444.242 , y=-327.12 , z=42.224},
	{x=-424.15 , y=-329.699 , z=42.2217},
	{x=-492.945 , y=-310.766 , z=42.2217},
	{x=-347.167 , y=-362.721 , z=31.5574},
	}

	-- blips coordinates
	local blips = {
	{id=153, x=-246.511 , y=6331.07 , z=32.4262},
	{id=153, x=-250.761 , y=6345.12 , z=32.4262},
	{id=153, x=-280.423 , y=6320.8 , z=32.4189},
	{id=153, x=-257.967 , y=6299.93 , z=31.721},
	{id=153, x=1826.7 , y=3693.3 , z=34.2242},
	{id=153, x=1805.13 , y=3680.99 , z=34.2243},
	{id=153, x=1844.76 , y=3703.51 , z=33.7609},
	{id=153, x=1810.82 , y=3668.76 , z=34.2781},
	{id=153, x=1856.16 , y=3682.32 , z=34.2675},
	{id=153, x=-664.961 , y=308.31 , z=83.0841},
	{id=153, x=-678.968 , y=309.976 , z=83.0842},
	{id=153, x=-699.921 , y=304.06 , z=83.0132},
	{id=153, x=-655.959 , y=299.147 , z=81.74},
	{id=153, x=-874.672 , y=-306.777 , z=39.5658},
	{id=153, x=-847.24 , y=-326.923 , z=38.0128},
	{id=153, x=-869.65 , y=-334.536 , z=38.9811},
	{id=153, x=-885.03 , y=-332.06 , z=38.9815},
	{id=153, x=-910.749 , y=-337.195 , z=38.9781},
	{id=153, x=-887.901 , y=-306.496 , z=39.5667},
	{id=153, x=-861.053 , y=-311.464 , z=39.0312},
	{id=153, x=-444.751 , y=-360.057 , z=33.51},
	{id=153, x=-448.948 , y=-329.231 , z=34.5019},
	{id=153, x=-451.897 , y=-351.036 , z=34.5017},
	{id=153, x=-497.522 , y=-345.575 , z=34.5018},
	{id=153, x=-494.662 , y=-326.337 , z=34.5016},
	{id=153, x=-469.354 , y=-279.005 , z=35.8293},
	{id=153, x=-435.253 , y=-294.899 , z=35.7542},
	{id=153, x=-516.248 , y=-326.038 , z=35.1475},
	{id=153, x=-505.869 , y=-293.036 , z=35.4276},
	{id=153, x=-507.124 , y=-351.373 , z=35.2015},
	{id=153, x=-428.796 , y=-329.108 , z=33.4112},
	{id=153, x=293.059 , y=-584.493 , z=43.1915},
	{id=153, x=295.88 , y=-615.756 , z=43.435},
	{id=153, x=310.058 , y=-608.326 , z=39.4418},
	{id=153, x=314.465 , y=-622.351 , z=35.441},
	{id=153, x=322.904 , y=-612.162 , z=31.4397},
	{id=153, x=323.98 , y=-625.435 , z=29.2928},
	{id=153, x=365.645 , y=-592.118 , z=28.6946},
	{id=153, x=340.729 , y=-561.857 , z=28.7438},
	{id=153, x=329.011 , y=-558.086 , z=28.7438},
	{id=153, x=346.36 , y=-1391.21 , z=32.5093},
	{id=153, x=336.688 , y=-1402.09 , z=32.5093},
	{id=153, x=306.561 , y=-1435.16 , z=29.8041},
	{id=153, x=320.428 , y=-1476.79 , z=29.8639},
	{id=153, x=376.03 , y=-1445.36 , z=29.4316},
	{id=153, x=364.478 , y=-147.227 , z=66.0839},
	{id=153, x=-263.381 , y=99.6528 , z=73.5727},
	{id=153, x=405.394 , y=-1420.13 , z=29.4453},
	{id=153, x=350.144 , y=-1357.8 , z=32.2959},
	{id=153, x=388.543 , y=-1391.39 , z=30.171},
	{id=153, x=1106.35 , y=-1477.55 , z=34.6925},
	{id=153, x=1116.21 , y=-1502.78 , z=34.6927},
	{id=153, x=1122.52 , y=-1519.77 , z=34.8377},
	{id=153, x=1207.87 , y=-1547.26 , z=34.6926},
	{id=153, x=1183.82 , y=-1555.73 , z=34.6926},
	{id=153, x=1173.66 , y=-1571.42 , z=34.6926},
	{id=153, x=1152.12 , y=-1527.11 , z=34.8434},
	{id=153, x=1158.18 , y=-1598.34 , z=34.6926},
	{id=153, x=1139.48 , y=-1599.49 , z=34.6926},
	{id=153, x=1103.27 , y=-1531.95 , z=34.8937},
	{id=153, x=1171.31 , y=-1564.05 , z=39.402},
	{id=153, x=1195.59 , y=-1563.13 , z=39.4012},
	{id=153, x=1189.26 , y=-1513.3 , z=34.6961},
	{id=153, x=-444.242 , y=-327.12 , z=42.224},
	{id=153, x=-424.15 , y=-329.699 , z=42.2217},
	{id=153, x=-492.945 , y=-310.766 , z=42.2217},
	{id=153, x=-347.167 , y=-362.721 , z=31.5574},
	}

	local loot = {
		0x8F707C18,  -- PICKUP_HEALTH_STANDARD
	}
	local lootcount = 1

	-- blips
	Citizen.CreateThread(function()
		while true do
			Wait(100)
			local playerCoords = GetEntityCoords(GetPlayerPed(-1))
			for _, map in ipairs(blips) do
				if GetDistanceBetweenCoords(playerCoords, map.x, map.y, map.z) <= 50 then
					map.blip = AddBlipForCoord(map.x, map.y, map.z)
					SetBlipSprite(map.blip, map.id)
					SetBlipAsShortRange(map.blip, true)
					Wait(400)
					RemoveBlip(map.blip)
				end 
			end 
		end
	end)
	-- Spawn items
	for _, item in pairs(pickupCoords) do
		lootitemnum = math.random(1, lootcount)
		pickup = CreatePickup(loot[lootitemnum], item.x, item.y, item.z)
		SetPickupRegenerationTime(pickup, 10)
	end
end)

Armor
#2

hi @J_Sickness do i put both txt in seperate lua? and name them whatever i want? or?


#3

You can paste them into the same Lua if you are going to use both (just paste one, add a blank line and then paste the other).


#4

thanks im having trouble using different weapons. i tried pickups. anyway to get the revolver hash? or how did you get your hashes and pickup names? it seems to be weird.
https://wiki.fivem.net/wiki/Weapons


#5

This works great! thanks! Is any way to change how much ammo comes with it? when I pickup an RPG there is only 1. When I pickup a grenade there is only 1.


#6

Great release, thank you!