Kors Posted April 15, 2018 Posted April 15, 2018 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
Kors Posted May 7, 2018 Author Posted May 7, 2018 (edited) when a player moves beyond borders of the mini map , player blip disappears, only on f9 map can see , possible fix thet? Edited May 7, 2018 by Kors
Hoffmann Posted May 7, 2018 Posted May 7, 2018 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now