The four formats
SteamID64 is a single large number (like 76561198000000000). The legacy STEAM_0:Y:Z form splits that into a parity bit and account number. SteamID3 looks like [U:1:W]. FiveM writes it as a hex identifier, steam:110000100000000. The SteamID Converter turns any one into all the others.
The base offset
SteamID64 is the account number plus a fixed base of 76561197960265728 (0x0110000100000000). Subtract that base and you are left with the raw account number that the other formats encode. Any value below the base is not a valid individual SteamID64.
The FiveM hex identifier
FiveM reports players by their SteamID64 written in hexadecimal, prefixed with steam:. In permission lines it gets an identifier. prefix, as in add_principal identifier.steam:110000112345678 group.admin. Build those lines with the FiveM ACE Permissions Generator.
The server only sees Steam identifiers when steam_webApiKey is set in server.cfg and the player has Steam running. Without that key there is no steam: identifier at all, which is why many servers key permissions to the license: or discord: identifier instead.