[SOLVED] Player UUID from command
#1
I need UUID in function running after user input some command. Can I get it?

I have Info.lua code:
Code:
Name = "Plug1",
  Version = "0",
  Date = "2015-08-31",
  Description = [[Plug1]],

  Commands = {
    ["/cmd1"] = {
      HelpString = "cmd1 desc",

      Subcommands = {

        sub1= {
          HelpString = "sub1 desc",
          Handler = Commandsub1,
        },
      },
    },
  }

Handler function:
Code:
function Commandsub1(Split)
  -- cPlayer:GetUUID() -- <---???????
end

Thank you.
Reply
Thanks given by:
#2
The handler looks like this:
function MyCommandHandler(Split, Player)
   local UUID = Player:GetUUID()
end
Reply
Thanks given by:
#3
I feel like a fool. Thank you.
Reply
Thanks given by:
#4
No problem Smile
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)