otavio53 Posted February 19, 2019 Posted February 19, 2019 Hello, I would like someone to help me with a script, when the player gives the command he get a CJ skin, I wanted him to pick up the previous skin he was on, sorry for my English I'm using a translator function tirarFarda(player) if isElementWithinMarker(player, pegar) then setPlayerSkin(player,0) outputChatBox("#ffffffVocê tirou sua Farda.", player, 255,255,255, true) end end addCommandHandler("tfarda", tirarFarda)
Moderators IIYAMA Posted February 20, 2019 Moderators Posted February 20, 2019 local model = getElementModel(element) https://wiki.multitheftauto.com/wiki/GetElementModel setPlayerSkin is deprecated. It might be removed in next MTA versions. Use setElementModel instead. https://wiki.multitheftauto.com/wiki/SetElementModel Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
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