Jump to content

I need help with run codes.


Wisam

Recommended Posts

Hi..

Im wisam, today i wanted to ask about some simple run codes... my friend gave them to me and now i lost them so i need them back... some small run codes i need:

1. hide the player name.

2. hide the player's blip

3. Hide the player.

or you can help me better, tell me where i can find ALL the runcodes.

Thank You,

Regards

Link to comment
  • Other Languages Moderators
Oh i found them,

but its it:

setPlayerNametagShowing (playerName, false) if i wanted to hide the blip?

setPlayerNametagShowing (playerName, false) will hide Player Name Tag, also playerName here is not string it must be player element.

you can hide blip using this http://wiki.multitheftauto.com/wiki/SetElementVisibleTo

This function i find it at wiki, it will help you to get the blip element.

function getBlipAttachedTo( thePlayer ) 
    local blips = getElementsByType( "blip" ) 
    for k, theBlip in ipairs( blips ) do 
        if getElementAttachedTo( theBlip ) == thePlayer then 
            return theBlip 
        end 
    end 
    return false 
end 

Link to comment
  • Other Languages Moderators
i used tis:

run setPlayerNametagShowing (Wisam, true) and didnt worked, it says:

Wisam executed command: setPlayerNametagShowing (Wisam, false)

Command results: false [boolean]

setPlayerNametagShowing (playerName, false) will hide Player Name Tag, also playerName here is not string it must be player element.

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