Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use SteamID instead of UniqueID in DoStaredAction and SetAction functions #372

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

OffLegAz
Copy link
Contributor

According to the wiki, Player:UniqueID is deprecated and not guaranteed to be unique. So it's rellay necessary to use Player:SteamID or simmilar functions, like it's done in SetRagdolled function:

local uniqueID = "ixUnRagdoll" .. self:SteamID()

@bloodycop7
Copy link

You do realize this function is also used for entities and if so entities don't have a steamid and it will return an error.

@FlorianLeChat
Copy link
Contributor

You do realize this function is also used for entities and if so entities don't have a steamid and it will return an error.

This is wrong because the method is only available in player metatable, so this change will never cause any errors for players and will avoid any collision issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants