All pastes #382893 Raw Edit

hhhhhfghghjg

public lua v1 · immutable
·published 2007-03-05 23:51 UTC
rendered paste body
function LoadProfile(Player,directory)	local loaded	local ID = Player:UniqueID()	local ID2 = string.sub(ID,11)	local Name = directory.."/"..ID2..".txt"	if file.Exists(Name) then		loaded = util.KeyValuesToTable(file.Read(Name))	endreturn loaded end--Save the profile.function SaveProfile(Player,directory,tbl)	local ID = Player:UniqueID()	local ID2 = string.sub(ID,11)	local Name = directory.."/"..ID2..".txt"	file.Write(Name, util.TableToKeyValues(tbl))end