Getting npc to run command on player
is there anyplugin out there to where if the player presses e on the npc that it could then run the command /at as if the player wrote the command there self?

what i am trying to do instead of the player having to type /at in chat and join a event i want them to press e on the npc and the npc then run that command on the player so it puts the player into the event is that possible?
player.SendConsoleCommand("chat.say \"/tpa\"");
so it would just be 
player.SendConsoleCommand("chat.say \"/at\"");

? thanks Orange

thank you Orange i appreciate it
In response to Synergy ():
so it would just be player.SendConsoleCommand("chat.say \"/at\"");

? thanks Orange
...
yeah, that as it must be in code

Merged post

It must work like that

{
// OnPlayerInput

// Check for NPC by raycast

// Get command from data

// Send console command to player
}
see i want to use it with this https://umod.org/plugins/npc-tp

it gives you the option on that plugin to add a command on player pressing e on the npc how would i put the command for it to work?

it looks like this in the console.

"282663615": {
"NpcName": "<color=orange>Npc</color> : ",
"SpawnFile": null,
"Cooldown": 0,
"CanUse": false,
"useUI": false,
"Cost": 0.0,
"permission": "npctp.default",
"useItem": false,
"ItemShortName": "ammo.rifle.hv",
"ItemAmount": 0,
"UseCommand": true,
"CommandOnPlayer": true,
"Command": "say",
"Arrangements": "this is a test",
"useMessage": false,
"MessageNpc": "none",
"EnableDead": false,
"DeadOnPlayer": false,
"DeadCmd": "jail.send",
"DeadArgs": "5",
"OpenDoor": false,
"DoorLocX": 0.0,
"DoorLocY": 0.0,
"DoorLocZ": 0.0,
"DoorId": 0,
"NoPermKill": false,
"KillSleep": false

You can put your command in

void OnUseNPC(BasePlayer npc, BasePlayer player, Vector3 destination)

has anyone gotten back to you about this im in dire need of help aswell