zorew Posted October 31, 2016 Share Posted October 31, 2016 (edited) addEvent("onPlayerChangeItemthree",true) -- event for displacement items addEventHandler("onPlayerChangeItemthree",root, function(p) a = PlayersItens[p][1] b = PlayersItens[p][2] if(a)and(b)then PlayersItens[p][1]=b PlayersItens[p][2]=a triggerClientEvent(client,"RefreshDraw",client) triggerClientEvent("synchronizeTablesthree",client,PlayersItens) end end) ----------- PlayersItens[p][1] - its name inventory slots server and client if(source == InventoryGui.button[1]) then if(d1 and d1~="")then if(botao == "middle")then if(source == InventoryGui.button[2]) then if(botao == "middle")then triggerServerEvent("onPlayerChangeItemthree", localPlayer,d1,1) ---------------- button[1] and button [2] - its buttons(slots) Hello. I want make displacement items in my inventory. But I dont professional in lua scripting and sorry for my badly english... Slots ib inventory - its buttons. Please,help me Edited October 31, 2016 by zorew 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