Sign in to follow this  
Montis.

Simple help

Recommended Posts

I create command but when I use command nothing happen.

Script:

function Skinas(commandName) 
    outputChatBox ( "Tavo skin id: " .. getPedSkin ( getLocalPlayer() ) ) 
end 
addCommandHandler ( "skin",Skinas) 

Share this post


Link to post

Client side

addCommandHandler ( "skin", 
    function( ) 
        outputChatBox ( "Tavo skin id: " ..tostring( getElementModel( localPlayer ) ) ) 
    end 
)    

Use /debugscript 3.

Edited by Guest

Share this post


Link to post

1 . Make sure it's clientside

2.Here it's the updated one

  
function skinas( commandName ) 
local skin = getElementModel( localPlayer ) 
    outputChatBox ( "Tavo skin id: " ..tostring(skin).."!"  ) 
end 
addCommandHandler ( "skin",skinas) 

Edited by Guest

Share this post


Link to post

GanJaRuleZ,Your code incorrect.

Share this post


Link to post

I try this script:

function skinas(thePlayer,command) 
local skin = getPedSkin( thePlayer ) 
    outputChatBox ( "Tavo skin id: " ..tostring(skin).."!"  ) 
end 
addCommandHandler ( "skinas",skinas) 

And result: Tavo skin id: 126!

Share this post


Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.