From c966328374890a63a1a9f43dda275ed733ca98e2 Mon Sep 17 00:00:00 2001 From: AlmTech Software Date: Fri, 17 Jan 2020 20:49:31 +0100 Subject: [PATCH] Fixed player not getting hands swep on spawn --- gamemode/engine/core/server/sv_player_init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gamemode/engine/core/server/sv_player_init.lua b/gamemode/engine/core/server/sv_player_init.lua index e30c65d..25be8cb 100644 --- a/gamemode/engine/core/server/sv_player_init.lua +++ b/gamemode/engine/core/server/sv_player_init.lua @@ -43,9 +43,6 @@ local function setUpPlayer( ply ) ply:SetCrouchedWalkSpeed( Quantum.Server.Settings.PlayerSpeeds.duck) ply:SetMaxSpeed( Quantum.Server.Settings.PlayerSpeeds.run ) - ply:Give( "quantum_hands" ) - ply:SetActiveWeapon( "quantum_hands" ) - ply:SetFOV( 80 ) Quantum.Debug( tostring( ply ) .. charnametxt ) @@ -57,6 +54,9 @@ function GM:PlayerSpawn( ply ) if( ply.isloaded == true ) then ply:UnSpectate() setUpPlayer( ply ) + + ply:Give( "quantum_hands" ) + ply:SelectWeapon( "quantum_hands" ) else ply:SetPos( Vector( -8936.411133, 8244.439453, 7744.031250 ) ) Quantum.Net.OpenMenu( ply, "main", { chars = Quantum.Server.Char.GetPlayerChars_cl( ply ) } ) -- make the player open the main menu