// Execute when player spawnsfunction GM:PlayerInitialSpawn (pl) // Get all other player's weapons if there is more than one player on the server if (table.Count(player.GetAll()) >= 2) then for a, selected_pl in pairs(player.GetAll()) do allweapons = table.Add(selected_pl.GetWeapons()) // Get the weapon names for b,c in pairs(allweapons) do allweapons[b] = c:GetClass() end end // Give new player all those weapons for d, weapon_name in pairs(allweapons) do pl:Give(weapon_name) end // Spawn a vehicle for the user if needed vtable = vehicles.GetTable() if (table.Count(vtable) >= 1) then newvehicle = vehicles.PlayerSpawn(pl, vtable[1].vname, player:GetPos() + player:GetAngles():Forward() * 64, player:GetAngles():Up()) end endend