Erknneto Posted August 26, 2015 Share Posted August 26, 2015 Hi guys.. I have a problem in a Linux DayZ MTA Server. If happens everytime when a serverEvent is called... Error: Error: Client (Juquinha) triggered serverside event onPlayerChangeSkin, but event is not marked as remotly triggerable Code: client side elseif itemInfo == "Put clothes on" then triggerServerEvent("onPlayerChangeSkin",getLocalPlayer(),itemName) server side function addPlayerSkin (skin) local current = getElementData(source,"skin") local name = getSkinNameFromID(current) setElementData(source,name,getElementData(source,name)+1) setElementData(source,skin,getElementData(source,skin)-1) local id = getSkinIDFromName(skin) setElementData(source,"skin",id) setPedSkin(source,id) triggerClientEvent(source,"refreshInventoryManual",source) end addEvent("onPlayerChangeSkin",true) addEventHandler("onPlayerChangeSkin",getRootElement(),addPlayerSkin) Can someone help me to solve this problem? I happens only in the linux server. Link to comment
MTA Team ccw Posted August 26, 2015 MTA Team Share Posted August 26, 2015 There is another addEvent call with "onPlayerChangeSkin" somewhere that is missing the 'true' 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