donaldb Posted May 14, 2010 Share Posted May 14, 2010 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
Castillo Posted May 14, 2010 Share Posted May 14, 2010 To hide player blips just stop resource "playerblips" and that should work Link to comment
donaldb Posted May 14, 2010 Author Share Posted May 14, 2010 To hide player blips just stop resource "playerblips" and that should work "playerblips" isn't started anyway..... any other ideas? Link to comment
Castillo Posted May 14, 2010 Share Posted May 14, 2010 Hmm, maybe freeroam has a own blips code, i dont know how to disable then. Link to comment
dzek (varez) Posted May 14, 2010 Share Posted May 14, 2010 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
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