Jump to content

marker not showen


Best-Killer

Recommended Posts

local shootingRangeLocations = {
	{138.43, -67.37, 1.57, 0, 0},
	{137.37, -69.13, 1.43, 0, 0},
	{137.37, -69.13, 1.43, 0, 0},
	{137.37, -69.13, 1.43, 0, 0},
	{138.43, -67.37, 1.57, 0, 0},
	{138.43, -67.37, 1.57, 0, 0},
	{138.43, -67.37, 1.57, 0, 0},
	{138.43, -67.37, 1.57, 0, 0}
}

local invalidWeaponTypes = {[0] = true, [1] = true, [8] = true, [9] = true, [10] = true, [11] = true, [12] = true, [6] = true}

addEventHandler("onResourceStart", resourceRoot,
function ()
	for i,v in pairs(shootingRangeLocations) do
	local marker = createMarker(tostring(v[1]), tostring(v[2]), tostring(v[3]), "cylinder", 1.2, 255, 255, 255, 0)
		if marker then
			setElementInterior(marker, tonumber(v[4]))
			setElementDimension(marker, tonumber(v[5]))
			addEventHandler("onMarkerHit", marker, onMarkerHit)
		end
	end
end)

0 errors but no markers what is the problem ?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...