maybe… like this, idk :slight_smile:

MY_PED = GetPlayerPed(-1)
AREA = {}
AREA.x1 = 1700.0 -- max
AREA.y1 = 500.0 -- max
AREA.z1 = 40.0 -- max
AREA.x2 = 1500.0 -- min
AREA.y2 = 400.0 -- min
AREA.z2 = 20.0 -- min

RegisterNetEvent("BuyAmmo")
AddEventHandler("BuyAmmo", function()
	if IsEntityInArea(MY_PED,  AREA.x1,  AREA.y1,  AREA.z1,  AREA.x2,  AREA.y2,  AREA.z2) then
		--code
	else
		--code
	end
end)