TAPL Posted October 4, 2013 Share Posted October 4, 2013 This small number of words are not enough to explain what you want. But i guess you looking for something like: setElementModel Link to comment
rvteodoro Posted October 4, 2013 Author Share Posted October 4, 2013 How. can you give me the script Link to comment
myonlake Posted October 4, 2013 Share Posted October 4, 2013 We do not give you scripts, you have to make them yourself Here are the main tutorials that should get you started. If you don't seem to learn anything from them, then don't even bother trying to script. viewtopic.php?f=148&t=40809 https://wiki.multitheftauto.com/wiki/Sc ... troduction Link to comment
Chopper Posted October 4, 2013 Share Posted October 4, 2013 function changeSkin(source) --Function setPlayerSkin(source, 280) -- changes the players skin, to the police one, you can use setElementModel aswell end addCommandHandler("changeskin", changeSkin) --command Handler for the function Link to comment
Mefisto_PL Posted October 4, 2013 Share Posted October 4, 2013 function changeSkin ( thePlayer, id ) id = tonumber ( id ) if id then setElementModel ( thePlayer, id ) end end addCommandHandler ( "cs", changeSkin ) addCommandHandler ( "changeskin", changeSkin ) When you type /cs SKIN_ID then it will be changed. Link to comment
TAPL Posted October 4, 2013 Share Posted October 4, 2013 function changeSkin ( thePlayer, id ) id = tonumber ( id ) if id then setElementModel ( thePlayer, id ) end end addCommandHandler ( "cs", changeSkin ) addCommandHandler ( "changeskin", changeSkin ) When you type /cs SKIN_ID then it will be changed. The second parameter is the command name. Link to comment
Mefisto_PL Posted October 5, 2013 Share Posted October 5, 2013 @UP Ups.. Sorry , but now maybe he catched this suggestion 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