Montis. Posted February 5, 2012 Share Posted February 5, 2012 I create command but when I use command nothing happen. Script: function Skinas(commandName) outputChatBox ( "Tavo skin id: " .. getPedSkin ( getLocalPlayer() ) ) end addCommandHandler ( "skin",Skinas) Link to comment
Kenix Posted February 5, 2012 Share Posted February 5, 2012 (edited) Client side addCommandHandler ( "skin", function( ) outputChatBox ( "Tavo skin id: " ..tostring( getElementModel( localPlayer ) ) ) end ) Use /debugscript 3. Edited February 5, 2012 by Guest Link to comment
GanJaRuleZ Posted February 5, 2012 Share Posted February 5, 2012 (edited) 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 February 5, 2012 by Guest Link to comment
Kenix Posted February 5, 2012 Share Posted February 5, 2012 GanJaRuleZ,Your code incorrect. Link to comment
GanJaRuleZ Posted February 5, 2012 Share Posted February 5, 2012 GanJaRuleZ,Your code incorrect. I saw it , ty Link to comment
Montis. Posted February 5, 2012 Author Share Posted February 5, 2012 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! Link to comment
Montis. Posted February 5, 2012 Author Share Posted February 5, 2012 And what the problem? Nothinng thanks for help ;D 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