• Player:UniqueID() Clientside
    8 replies, posted
How would I manage to do get the ply:UniqueID from server side to client side? I tried to datastream it but it killed the gamemode.
Wouldn't LocalPlayer():UniqueID() return the same value as on the server?
Yes it would.
It gives me the error: [quote]attempt to index global 'LocalPlayer' ( a function value)[/quote] Not really getting that. Here's what I have: cl_begin.lua [lua]local PlayerID = LocalPlayer:UniqueID() -- Make the Unique ID[/lua]
LocalPlayer(), instead of LocalPlayer
Hasn't LocalPlayer() been deprecated? Maybe not removed yet, though. I can't remember really since I haven't done any gmod programming for a little while...
I don't know, It still works, though. ] lua_run_cl local PlayerID = LocalPlayer():UniqueID() print(PlayerID) 679305195
Works for me, I like it, thanks guys.
[QUOTE=ph:lxyz;28771622]Hasn't LocalPlayer() been deprecated? Maybe not removed yet, though. I can't remember really since I haven't done any gmod programming for a little while...[/QUOTE] No.
Sorry, you need to Log In to post a reply to this thread.