Any way to run a player command from a plugin?
#2
Look at the API documentation for what ExecuteCommand function requires. It also requires a player object. Also, tostring(Split) isn't how you concatenate a table in Lua. You use table.concat for that.

EDIT:
Also, only functions marked in the documentation as STATIC require that you call the function with a period. Otherwise you can call the function with a colon without itself as the first argument.
Reply
Thanks given by:


Messages In This Thread
RE: Any way to run a player command from a plugin? - by NiLSPACE - 02-20-2021, 06:48 AM



Users browsing this thread: 1 Guest(s)