Jump to content

get skin


otavio53

Recommended Posts

Posted

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
Posted
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 

  Tutorials  4x 

 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...