Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello,
I've seen that these functions don't exist on gmod and this could be useful in certain cases, like converting SteamID64 if you have a steamid32, or directly retrieving account ID without having to have the player connected.
I decided to recreate the pull request in order to clean up the unnecessary commits made previously. Old Pull Request : #2246
Function added
util.IsSteamID
Description : Checks whether the steamid entered is in the correct format. It sets true for bot
Args : sSteamID (String)
Return : boolean
Info : Concerning this function, I have a doubt about the number of characters that the SteamID32 can contain (19 Char), if someone can correct me I'm a taker ;)
util.IsSteamID64
Description : Checks whether the steamid64 entered is in the correct format. It sets true for bot
Args : sSteamID64 (String)
Return : boolean
util.SteamIDToAccountID
Description : Converts SteamID32 to AccountID. Returns 0 if it's a bot
Args : sSteamID (String)
Return : Int
util.SteamID64ToAccountID
Description : Converts SteamID64 to AccountID. Returns 0 if it's a bot
Args : sSteamID64 (String)
Return : Int
All these functions are on the Shared side (i.e. Client and Server).
Thanks to those who take the time to read and to those who improve the code.
You can see commits on the net.lua file this is an error I changed branch with a modified net.lua file, normally everything is back to normal