SnowWolf Posted November 4, 2009 Share Posted November 4, 2009 I want to change the normal white playerBlip. I dont know in which file i have to seek to find it. and what to do with it once i find it. I want it blue for instance. cause i always find my RadarBlip too hard to find.. A White blip on a White map!! I want it blue Please help me thanks. Link to comment
CallumD Posted November 5, 2009 Share Posted November 5, 2009 There is a resource called playerblips. In the script (playerblips.lua) there is a code near the very top saying: color = { 0, 255, 0 } Just change that colour code. Link to comment
SnowWolf Posted November 6, 2009 Author Share Posted November 6, 2009 yes. but then it changes ALL PLAYER BLIPS.. i want only my own to change to another color.. While i see the others as blue. Link to comment
CallumD Posted November 8, 2009 Share Posted November 8, 2009 Make a new script and make it check the players team or skin. then use this line below: createBlipAttachedTo ( source, 0, 2, 0, 0, 255 ) createBlipAttachedTo ( element, 0, 2, r, g, b ) Link to comment
SnowWolf Posted November 8, 2009 Author Share Posted November 8, 2009 Exactly. And how to make it check your 'skin' ? Link to comment
CallumD Posted November 8, 2009 Share Posted November 8, 2009 Below is how to make a team, get the skin, set team, add blip and on death or quit destroy the blip. function makeTeams () createTeam ( "Police", 0, 0, 255 ) end addEventHandler ( "onResourceStart", getRootElement(), makeTeams ) function playerStats () local skin = getElementModel ( source ) if ( skin == 280 ) then local policeTeam = getTeamFromName ( "Police" ) createBlipAttachedTo ( source, 0, 2, 0, 0, 255 ) setPlayerTeam ( source, policeTeam ) end end addEventHandler ( "onPlayerSpawn", getRootElement(), playerStats ) function onDied () setPlayerTeam ( source, nil ) local attached = getAttachedElements ( source ) if ( attached ) then for k,element in ipairs(attached) do if getElementType ( element ) == "blip" then destroyElement ( element ) end end end end addEventHandler ( "onPlayerWasted", getRootElement(), onDied ) function onQuit () local attached = getAttachedElements ( source ) if ( attached ) then for k,element in ipairs(attached) do if getElementType ( element ) == "blip" then destroyElement ( element ) end end end end addEventHandler ( "onPlayerQuit", getRootElement(), onQuit ) 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