• Sending invites through Lua
    7 replies, posted
Hey, is there a way how to send invites through Lua? Something like this: https://imgur.com/a/cGFN0VB Or simply sending a message with the player's consent (obviously) I can use a module if it would be possible..
I think it would be helpful if you gave more context - like how you're planning to use the lua? I'm personally curious as to why you would want to do this.
I want to create a system when you join, you get a menu showing invite your friends to get rewards. And i want it to be simpler so i want just to list all the friends of the player and add an invite button. I am just asking if this is possible..
Someone correct me if I'm wrong, please. In order to do something like this I believe you'd have to make a custom addon for your server which your players could do a custom command and enter the STEAMID of whoever they're inviting to the server (they would have to manually invite them via message) but basically when they do the custom command it would save the INVITED STEAMID to the PLAYER'S PData and basically make it so that if the INVITED STEAMIDs ever show up the REWARD would be assigned to the ORIGINAL INVITING PLAYER on their next login to your server.
yeah i know how to do the system but i am asking if it would be possible to show an interface for inviting players..
Absolutely you could tie the custom command to a derma and call the custom command on player spawn/initialize
i know how to make the ui, i want to automatically invite friends with a button. but forget it, i am using a different method now..
Again, as far as I'm aware there is no way to automatically invite steam profiles from gmod itself. There would need to be manual input.
Sorry, you need to Log In to post a reply to this thread.