There's two things I want to do and can't quite figure out
Firstly, I want to make it so whenever a player hits the F2 button, they'll run the console command "ulx thirdperson"
Here's the code I got on my own. Th problem is, there was only a few things I could put in that part where it says "IN_ALT1", and none of them were F2, according to the list I was looking at. So how would I do this?
function KeyPress( ply, key )
if ( key == IN_ALT1 ) then
ply:RunConsoleCommand( "ulx", "thirdperson" )
end
end
Secondly, it became a problem on my DeathRun server where people could prespeed their way past traps and the deaths would never be able to catch up to them, so how would I set a max velocity? I wasn't able to figure this out on my own.