local sql = nrequire("core/database/sv_setup.lua") print("in sv_loadplayer.lua sql is", sql) local models = {} for k = 1,9 do models[#models + 1] = "models/player/Group01/male_0" .. k .. ".mdl" models[#models + 1] = "models/player/Group02/Male_0" .. k .. ".mdl" end local function delayplayerload(ply) if ply:Alive() and IsValid(ply) then sql.GetPlayerData(ply) else timer.Simple(1,function() delayplayerload(ply) end) end end hook.Add("PlayerInitialSpawn","ArteryPlayerLoad",function(pl) local modelnum = pl:UniqueID() % (#models) timer.Simple(10,function() delayplayerload(pl) end) pl:SetModel(models[modelnum]) pl:Give("hands") pl:SelectWeapon("hands") end)