Agis Posted June 19, 2015 Posted June 19, 2015 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 )
Anubhav Posted June 19, 2015 Posted June 19, 2015 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.
Agis Posted June 19, 2015 Author Posted June 19, 2015 Thank you, it works flawlessly and i've learnt something!
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