Jump to content

بدي كود مهم


Recommended Posts

بدي اول ماضغط علي زر يحط شخصية 124 مثلا

شوفو انا حاولت بذا الكود

--client 
addCommandHandler("onClientGUIClick",resourceRoot, 
function 124 ( commandName ) 
  if source == GUIEditor.button[3] then 
  end 
addCommandHandler ( "skin", 124 ) 
end 
) 

Link to comment

client

addEventHandler("onClientGUIClick", resourceRoot, function( ) 
    if source == GUIEditor.button[3] then 
        triggerServerEvent("changePlayerSkin", localPlayer, 124) 
    end 
end) 

server

addEvent("changePlayerSkin", true) 
addEventHandler("changePlayerSkin", root, function(id) 
    setElementModel(source, id) 
end) 

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