diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2016-05-10 15:53:44 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2016-05-10 15:53:44 -0400 |
| commit | 41ca3570c850170cc030c0048675faf8b8a514e5 (patch) | |
| tree | 0e200166c42808cb8b971fecb97ce0e96c8e222c | |
| parent | a4b4504776c33fbe6290a672945089c6b9812fd7 (diff) | |
| download | gmstranded-41ca3570c850170cc030c0048675faf8b8a514e5.tar.gz gmstranded-41ca3570c850170cc030c0048675faf8b8a514e5.tar.bz2 gmstranded-41ca3570c850170cc030c0048675faf8b8a514e5.zip | |
Added code to switch resources to spaces instead of underscores when loading character
| -rw-r--r-- | gamemode/init.lua | 2 |
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 |
