From 41ca3570c850170cc030c0048675faf8b8a514e5 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Tue, 10 May 2016 15:53:44 -0400 Subject: Added code to switch resources to spaces instead of underscores when loading character --- gamemode/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gamemode/init.lua') diff --git a/gamemode/init.lua b/gamemode/init.lua index ce2cddd..da59bc3 100644 --- a/gamemode/init.lua +++ b/gamemode/init.lua @@ -981,7 +981,7 @@ function GM:PlayerInitialSpawn( ply ) end*/ if ( tbl["resources"] ) then - for k, v in pairs( tbl["resources"] ) do ply:SetResource( k, v ) end + for k, v in pairs( tbl["resources"] ) do ply:SetResource( string.Replace(k,"_"," "), v ) end end if ( tbl["weapons"] ) then -- cgit v1.2.3-70-g09d2