Jump to content

getElementModel problem


Agis

Recommended Posts

Hello,

i was wondering, how to create a command that sends you your current id of skin in the chat box.

That's my current code, that isn't working.

  
function checkSkin ( player ) 
    outputChatBox ( "Your skin ID is: " .. getElementModel ( player ) ) 
end 
addCommandHandler ( "skin", checkSkin ) 

Link to comment

First of all use: [ lua] tags. ( remove space )

  
 function checkSkin ( player ) 
    outputChatBox ( "Your skin ID is: " .. tostring( getElementModel ( player ) ), player ) 
end 
addCommandHandler ( "skin", checkSkin ) 
  

Problems:

1. outputChatBox requires string not a mixed argument.

2. You will output it too every single player.

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