Agis Posted June 19, 2015 Share 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 ) Link to comment
Anubhav Posted June 19, 2015 Share 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. Link to comment
Agis Posted June 19, 2015 Author Share Posted June 19, 2015 Thank you, it works flawlessly and i've learnt something! Link to comment
Anubhav Posted June 20, 2015 Share Posted June 20, 2015 Welcome! I am so happy you learned something new! Link to comment
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