Jump to content

Unknow error


Santi

Recommended Posts

-- server
addEvent("Skins",true) 
addEventHandler("Skins",root,function()
    setPedSkin( source, 310 )
end)

-- client
triggerServerEvent ("Skins", getLocalPlayer(), Skins )

I tried many differents way to solve  this. I just want to set player skin from client-side to server side

Link to comment
6 minutes ago, Patrick said:

It must work.

But 3rd arg of triggerServerEvent is unnecessary.


triggerServerEvent ("Skins", getLocalPlayer() )

 

When I click the button nothing happens. And when it works then the map bug.

Solved! I was using sedPedSkin instead SetPlayerSkin

Link to comment

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