I have a few commands set up in ServerRewards, for example I have backpacks set up as "oxide.usergroup add $player.name backpacks" ('backpacks' being the name of the group which has permission to use Backpacks, so the player would be added to that group upon purchase of the command). It works perfectly fine for most players, but there seems to be an issue with players with spaces in their name attempting to buy a command, as when they try and buy it the console says "Multiple players were found, please specify" as it is only reading the first half of their name before the space. Adding quotation marks around $player.name didn't work as that just messed up the format.
Is there any way of granting players the permission by Steam64ID instead? I did google around and try $steamid / $steam64id but I couldn't get anything to work.
Thanks in advance :)
Merged post
(Couldn't figure out how to delete) resolved by using $player.id instead of $player.name
Is there any way of granting players the permission by Steam64ID instead? I did google around and try $steamid / $steam64id but I couldn't get anything to work.
Thanks in advance :)
Merged post
(Couldn't figure out how to delete) resolved by using $player.id instead of $player.name