Santi Posted March 12, 2020 Share Posted March 12, 2020 -- 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
Moderators Patrick Posted March 12, 2020 Moderators Share Posted March 12, 2020 It must work. But 3rd arg of triggerServerEvent is unnecessary. triggerServerEvent ("Skins", getLocalPlayer() ) Link to comment
Santi Posted March 12, 2020 Author Share Posted March 12, 2020 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
Moderators Patrick Posted March 12, 2020 Moderators Share Posted March 12, 2020 Quote This function is deprecated. This means that its use is discouraged and that it might not exist in future versions. Please use setElementModel instead. 1 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