K4stic Posted July 24, 2013 Posted July 24, 2013 (edited) addEventHandler( "onClientRender", root, function () for i, theBlip in pairs( getElementsByType("player") ) do if ( isElement( i ) ) and not ( i == localPlayer ) then if ( getElementData( localPlayer, "gang" ) ) and ( getElementData( i, "gang" ) ) then if ( getElementData( localPlayer, "gang" ) == getElementData( i, "gang" ) and ( i ~= localPlayer ) and not groupBlips[theBlip]) then if not ( groupBlips[i] ) then local Tx, Ty, Tz = getElementPosition( theBlip ) groupBlips[i] = exports.customblips:createCustomBlip(Tx, Ty, 10, 10, "blips/groupblip.png", 1500) attachElements ( groupBlips[i], i ) exports.customblips:setCustomBlipRadarScale ( groupBlips[i], 2 ) end end end else if ( isElement( groupBlips[i] ) ) then exports.customblips:destroyCustomBlip ( groupBlips[i] ) groupBlips[thePlayer] = nil end end if ( getElementAlpha( i ) == 0 ) then setBlipColor( theBlip, 225, 225, 225, 0 ) if ( isElement( groupBlips[i] ) ) then exports.customblips:destroyCustomBlip ( groupBlips[i] ) groupBlips[i] = nil end else local R, G, B = getTeamColor( getPlayerTeam( i ) ) setBlipColor( theBlip, R, G, B, 225 ) end end end ) No error's nothing just then resource start they create blip but no attach it :3 Edited July 25, 2013 by Guest Giving a Fuck? Nope, That isn't in My Skill Set
TAPL Posted July 24, 2013 Posted July 24, 2013 For attaching custom blip i don't think attachElements will work. Probably you will have to update the position with the function setCustomBlipPosition. https://wiki.multitheftauto.com/index.php?title=Resource:Customblips
Castillo Posted July 24, 2013 Posted July 24, 2013 This code is from CSG server, have you got permission to use it? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
K4stic Posted July 25, 2013 Author Posted July 25, 2013 kidding me? :3 Giving a Fuck? Nope, That isn't in My Skill Set
Castillo Posted July 25, 2013 Posted July 25, 2013 No, I'm not, and by renaming the variables after I said it was from CSG, doesn't make it yours either. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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