Jump to content

How to find where to change PlayerBlips.


SnowWolf

Recommended Posts

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

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

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