Button that shows unique id

Hello Guys,

i would need a button for my f4 menu that puts the unique user id to the chat box.
I tryd


RunConsoleCommand("lua_run_cl", "local PlayerID = LocalPlayer():UniqueID() chat.AddText(PlayerID)")

But lua_run_cl is forbidden :frowning:

Is there a other possibility to get the players unique id to the chat box via a button?

Thanks a lot for answers.


local PlayerID = LocalPlayer():UniqueID() chat.AddText(PlayerID)