Witam chcia?em zrobi? skrypt kt?ry zmienia nam styl chodzenia, zale?nie od skina jakiego posiadamy, pr?bowa?em robi? co?, takiego, ale nie wychodzi?o :f
Kod: function onClientResourceStart ()
local skin = getElementModel(localPlayer)
if skin == 78 then
setPedWalkingStyle(localPlayer,126)
else
setPedWalkingStyle(localPlayer,0)
end
end
addEventHandler("onClientResourceStart",resourceRoot, onClientResourceStart)
Oraz co? takiego, ale to juz ca?kiem jest ?le
Kod: local skin = getElementModel(localPlayer)
if skin == 78 then
setPedWalkingStyle(localPlayer,126)
end
if skin == 73 then
setPedWalkingStyle(localPlayer,0)
end
Nie wyzywajcie ucze si? ;f