@@ -113,20 +113,22 @@ FatedGang.add_tab(1, 'Игроки банды', 'fatedgang/tab_players.png', fun
113
113
pl_btn .avatar :SetWide (32 )
114
114
pl_btn .avatar :SetSteamID (pl_data .steamid64 , 128 )
115
115
116
- pl_btn .game_profile = vgui .Create (' DButton' , pl_btn )
117
- Mantle .ui .btn (pl_btn .game_profile , nil , nil , Color (44 , 44 , 44 ), 8 , true , Color (34 , 34 , 34 ))
118
- pl_btn .game_profile :Dock (RIGHT )
119
- pl_btn .game_profile :DockMargin (6 , 6 , 6 , 6 )
120
- pl_btn .game_profile :SetWide (140 )
121
- pl_btn .game_profile :SetText (' Игровой профиль' )
122
- pl_btn .game_profile .DoClick = function ()
123
- RunConsoleCommand (' gameprofile_get_player' , pl_steamid )
124
-
125
- timer .Simple (0.2 , function ()
126
- FatedGang .menu :Remove ()
116
+ if GameProfile then
117
+ pl_btn .game_profile = vgui .Create (' DButton' , pl_btn )
118
+ Mantle .ui .btn (pl_btn .game_profile , nil , nil , Color (44 , 44 , 44 ), 8 , true , Color (34 , 34 , 34 ))
119
+ pl_btn .game_profile :Dock (RIGHT )
120
+ pl_btn .game_profile :DockMargin (6 , 6 , 6 , 6 )
121
+ pl_btn .game_profile :SetWide (140 )
122
+ pl_btn .game_profile :SetText (' Игровой профиль' )
123
+ pl_btn .game_profile .DoClick = function ()
124
+ RunConsoleCommand (' gameprofile_get_player' , pl_steamid )
127
125
128
- GameProfile .open_profile (true )
129
- end )
126
+ timer .Simple (0.2 , function ()
127
+ FatedGang .menu :Remove ()
128
+
129
+ GameProfile .open_profile (true )
130
+ end )
131
+ end
130
132
end
131
133
end
132
134
end )
0 commit comments