Jump to content

Player blips dont show in long distance


Kors

Recommended Posts

I dont see players blips on radar when distance is long , when player going border lines radar 


function onClientResourceStart()
	local enableBlips = true
	local blip = 7
	local map = Map.getInstance():init()
	map:setLocationOnScreen(x*30,y*550,x*250,y*150)
	map:setColor(255,255,255,255)
	--map:set3DRotation(-40) -- sintax: (float rotationX, float rotationY, float rotationZ,)
	map:setVisible(true)
	
	map.switch = function()
		map:setVisible(not map:isVisible())
	end
	
	if(not isKeyBound('F11', 'down', map.switch)) then 
		bindKey('F11', 'down', map.switch) 
	end
	
	setPlayerHudComponentVisible("radar",false)
end
addEventHandler("onClientResourceStart",resourceRoot,onClientResourceStart)

function onClientResourceStop()
	setPlayerHudComponentVisible("radar",true)
end
addEventHandler("onClientResourceStop",resourceRoot,onClientResourceStop)

function isKeyBound(key, keyState, handler)
	local handlers = getFunctionsBoundToKey(key)
	for k,v in pairs(handlers or {}) do
		if(v == handler) then
			return true
		end
	end
	return false
end

 

Link to comment
  • 3 weeks later...
2 hours ago, Kors said:

when a player moves beyond borders of the  mini map , player blip disappears, only on f9 map can see , possible fix thet?

I see no blips in your code except some variables that might be related to them.

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...