I want a backpack skript but per player and not serverwide, rn this doesnt even save what I put in
command /bp:
trigger:
backpack(player)
function backpack(P: player):
set {_u} to {_P}'s uuid
open chest inventory with 6 rows named "&e&lBACKPACK" to {_p}
loop {backpack::%{_U}%::*}:
add 1 to {_N}
set {_I} to loop-value
set slot {_N} - 1 of {_P}'s current inventory to {_I}
on inventory click:
if name of player's current inventory contains "&e&lBACKPACK":
set {backpack::%player's uuid%::*} to all items in player's current inventory