Sasser 0 Posted June 4, 2014 Share Posted June 4, 2014 Hello I'm a total noob when its comes to lua but usually i find a solution to things but not in this case. Basically if someone can show the proper syntax for adding a user to a computer preferably with some examples. Quote Link to post Share on other sites
0 Solution SpiritedDusty 3 Posted June 4, 2014 Solution Share Posted June 4, 2014 Ive read the wiki but i dont understand it fully, so if i would add my self to the computer it would be ... computer.addUser(Sasser) Is that correct? Unless that is a variable, you have to put quotes around your name. computer.addUser('Sasser') Quote Link to post Share on other sites
0 PixelToast 5 Posted June 4, 2014 Share Posted June 4, 2014 computer.users(): string, ...A list of all users registered on this computer, as a tuple. To iterate the result as a list, use table.pack on it, first. Please see the user rights documentation. computer.addUser(name: string): boolean or nil, stringRegisters a new user with this computer. Returns true if the user was successfully added. Returns nil and an error message otherwise. The user must be currently in the game. The user will gain full access rights on the computer. computer.removeUser(name: string): booleanUnregisters a user from this computer. Returns true if the user was removed, false if they weren't registered in the first place. The user will lose all access to this computer. When the last user is removed from the user list, the computer becomes accessible to all players. so basically once you call addUser, it gives that person permission to use the computer Quote Link to post Share on other sites
0 Sasser 0 Posted June 4, 2014 Author Share Posted June 4, 2014 Ive read the wiki but i dont understand it fully, so if i would add my self to the computer it would be ... computer.addUser(Sasser) Is that correct? Quote Link to post Share on other sites
Hello
I'm a total noob when its comes to lua but usually i find a solution to things but not in this case.
Basically if someone can show the proper syntax for adding a user to a computer preferably with some examples.
Link to post
Share on other sites