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. See my some resources: Skin shop: https://community.multitheftauto.com/in ... ls&id=8008 Note script: https://community.multitheftauto.com/in ... ls&id=8009 Rules Panel: https://community.multitheftauto.com/in ... ls&id=8246 Random Money: https://community.multitheftauto.com/in ... ls&id=8718
Agis Posted June 19, 2015 Author Posted June 19, 2015 Thank you, it works flawlessly and i've learnt something!
Anubhav Posted June 20, 2015 Posted June 20, 2015 Welcome! I am so happy you learned something new! See my some resources: Skin shop: https://community.multitheftauto.com/in ... ls&id=8008 Note script: https://community.multitheftauto.com/in ... ls&id=8009 Rules Panel: https://community.multitheftauto.com/in ... ls&id=8246 Random Money: https://community.multitheftauto.com/in ... ls&id=8718
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