summaryrefslogtreecommitdiff
path: root/gamemode/init.lua
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2016-05-10 15:53:44 -0400
committerAlexander Pickering <alexandermpickering@gmail.com>2016-05-10 15:53:44 -0400
commit41ca3570c850170cc030c0048675faf8b8a514e5 (patch)
tree0e200166c42808cb8b971fecb97ce0e96c8e222c /gamemode/init.lua
parenta4b4504776c33fbe6290a672945089c6b9812fd7 (diff)
downloadgmstranded-41ca3570c850170cc030c0048675faf8b8a514e5.tar.gz
gmstranded-41ca3570c850170cc030c0048675faf8b8a514e5.tar.bz2
gmstranded-41ca3570c850170cc030c0048675faf8b8a514e5.zip
Added code to switch resources to spaces instead of underscores when loading character
Diffstat (limited to 'gamemode/init.lua')
-rw-r--r--gamemode/init.lua2
1 files changed, 1 insertions, 1 deletions
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