Hello,
Other than forcibly giving specific models, or weapons to players depending on their usergroup, I haven't actually played around much with telling players to run a specific command.
I think the code I have is right, but I'm not actually sure about the finishing touches, such as what to call the lua file and where it should go.
hook.Add( "InitPostEntity", "join_con_commands", function()
RunConsoleCommand( "pac_override_fov", "1" )
end )
That's all there is to it, and it's a rather harmless command to make users run. I just want that so that the animations & sounds that get played through pac on our server, doesn't get stopped from players who aren't looking at it (pretty silly default limitation).
I called the file join_con_commands.lua and put it in lua\autorun\server\.
I appreciate any help.
Clientside
Yes, it's absolutely a clientside command. It's an option player can tick in their pac menu.
Could you clarify what you mean when you say "run it in a clientside state"?
Thanks.
put it into lua\autorun\client\
Yes, that's what it was Ruslan.
Funny because I can promise you that's what I tried to do initially, seeing as I'm acting upon clientside stuff, but when I restarted the server yesterday and implemented the file it didn't work.
What matters is that it does work now.
Thanks for the support
Sorry, you need to Log In to post a reply to this thread.