Jump to content

Hide radar


donaldb

Recommended Posts

Hi all,

I run an MTA server at home. I would likr to be able to hide the player "blips" (I think that's the correct term) that usually appear on the radar during game play.

I would also like to be able to hide the blips from the F11 map, and the map you can get via F1, but this is seconadry to hiding from the game radar.

Is this possible??? How do I achieve this? Bearing in mind I have not done any scripting so far........

Thanks,

Donald

Link to comment

this will remove blips attached to players (i didnt test it, but should work, the only problem is that after somebody join it will create blip for him/her anyway.. so maybe a little timer, removing blips every 1-5 seconds?)

function removeAttachedBlipsFromPlayers()
local players = getElementsByType('player')
for key,val in ipairs(players) do
local elements=getAttachedElements(val)
for key2,val2 in ipairs(elements) do
local theType = getElementType(val2)
if (theType=="blip") then destroyElement(val2) end
end
end
end
 
setTimer (removeAttachedBlipsFromPlayers, 2000) -- it will run every 2 sec

PS. Better idea is to edit freeroam resource, but..

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